diff --git a/docs/WrapperCmdlets-V1.0-Summary.csv b/docs/WrapperCmdlets-V1.0-Summary.csv index 6a4ebb306e3..cc02291bfb7 100644 --- a/docs/WrapperCmdlets-V1.0-Summary.csv +++ b/docs/WrapperCmdlets-V1.0-Summary.csv @@ -1,39 +1,39 @@ "Module","Cmdlets","WorkerFiles","Get","New","Update","Remove" -"Identity.Governance","1048","290","563","119","162","156" -"Sites","1030","268","528","120","157","147" -"Teams","848","246","327","113","114","131" -"Files","712","74","468","31","51","52" +"Identity.Governance","1555","470","831","170","218","234" +"Sites","1028","268","526","120","157","147" +"Teams","842","246","325","113","114","129" +"Files","637","74","455","31","51","51" "Devices.CorporateManagement","625","256","269","96","106","106" -"Security","500","168","234","68","84","85" -"Identity.SignIns","467","150","209","65","79","86" +"Security","500","168","233","68","84","85" +"Identity.SignIns","482","154","214","67","82","89" "Notes","396","84","177","42","45","57" -"Identity.DirectoryManagement","385","156","221","37","40","57" +"Identity.DirectoryManagement","390","158","223","38","41","58" "Education","354","96","154","50","52","58" "Applications","293","96","148","31","27","47" "CloudCommunications","248","60","95","29","32","44" "DeviceManagement","229","68","84","34","45","45" "Groups","217","102","127","25","13","26" -"Users","207","92","120","20","26","34" +"Users","209","94","122","20","26","34" "BackupRestore","203","88","96","31","33","33" "Calendar","199","72","89","34","27","33" "Reports","195","22","160","3","12","12" +"Bookings","159","58","65","27","29","29" "DeviceManagement.Administration","149","50","65","21","25","23" -"Bookings","143","52","58","25","26","26" "Devices.CloudPrint","119","34","55","19","17","19" "Mail","118","28","36","26","12","22" "PersonalContacts","62","16","27","8","11","16" "Search","54","18","22","9","11","9" "Planner","46","22","24","3","12","7" -"ConfigurationManagement","31","10","12","5","7","7" "DeviceManagement.Enrollment","30","8","10","4","6","5" "Identity.Partner","30","12","12","6","6","6" "Compliance","27","8","18","2","5","2" -"Devices.ServiceAnnouncement","22","10","12","0","0","1" +"Devices.ServiceAnnouncement","20","10","12","0","0","0" "Users.Actions","17","0","4","0","1","1" +"ConfigurationManagement","13","10","9","1","1","2" "DirectoryObjects","13","2","7","1","1","1" "CrossDeviceExperiences","12","4","5","2","2","2" "Users.Functions","7","0","6","0","0","0" -"ChangeNotifications","5","2","1","1","1","1" "SchemaExtensions","5","2","2","1","1","1" +"ChangeNotifications","5","2","1","1","1","1" "DeviceManagement.Functions","3","0","2","0","0","0" "People","2","2","2","0","0","0" diff --git a/docs/WrapperCmdlets-V1.0.csv b/docs/WrapperCmdlets-V1.0.csv index 1ad6e8ab09c..dfd251c1d2f 100644 --- a/docs/WrapperCmdlets-V1.0.csv +++ b/docs/WrapperCmdlets-V1.0.csv @@ -742,6 +742,19 @@ "Bookings","v1.0","Get-MgVirtualEventTownhallPresenter_Get","Get","MgVirtualEventTownhallPresenter_Get","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters[VirtualEventPresenterId]","True","GetMgVirtualEventTownhallPresenter_Get.g.cs" "Bookings","v1.0","Get-MgVirtualEventTownhallPresenter_List","Get","MgVirtualEventTownhallPresenter_List","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters","True","GetMgVirtualEventTownhallPresenter_List.g.cs" "Bookings","v1.0","Get-MgVirtualEventTownhallPresenterCount","Get","MgVirtualEventTownhallPresenterCount","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters.Count","False","GetMgVirtualEventTownhallPresenterCount.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistration","Get","MgVirtualEventTownhallRegistration","(dispatcher)","False","GetMgVirtualEventTownhallRegistration.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistration_Get","Get","MgVirtualEventTownhallRegistration_Get","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId]","True","GetMgVirtualEventTownhallRegistration_Get.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistration_List","Get","MgVirtualEventTownhallRegistration_List","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations","True","GetMgVirtualEventTownhallRegistration_List.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationConfiguration","Get","MgVirtualEventTownhallRegistrationConfiguration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration","False","GetMgVirtualEventTownhallRegistrationConfiguration.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationConfigurationQuestion","Get","MgVirtualEventTownhallRegistrationConfigurationQuestion","(dispatcher)","False","GetMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_Get","Get","MgVirtualEventTownhallRegistrationConfigurationQuestion_Get","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId]","True","GetMgVirtualEventTownhallRegistrationConfigurationQuestion_Get.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_List","Get","MgVirtualEventTownhallRegistrationConfigurationQuestion_List","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions","True","GetMgVirtualEventTownhallRegistrationConfigurationQuestion_List.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationConfigurationQuestionCount","Get","MgVirtualEventTownhallRegistrationConfigurationQuestionCount","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions.Count","False","GetMgVirtualEventTownhallRegistrationConfigurationQuestionCount.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationCount","Get","MgVirtualEventTownhallRegistrationCount","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations.Count","False","GetMgVirtualEventTownhallRegistrationCount.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationSession","Get","MgVirtualEventTownhallRegistrationSession","(dispatcher)","False","GetMgVirtualEventTownhallRegistrationSession.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationSession_Get","Get","MgVirtualEventTownhallRegistrationSession_Get","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions[VirtualEventSessionId]","True","GetMgVirtualEventTownhallRegistrationSession_Get.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationSession_List","Get","MgVirtualEventTownhallRegistrationSession_List","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions","True","GetMgVirtualEventTownhallRegistrationSession_List.g.cs" +"Bookings","v1.0","Get-MgVirtualEventTownhallRegistrationSessionCount","Get","MgVirtualEventTownhallRegistrationSessionCount","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions.Count","False","GetMgVirtualEventTownhallRegistrationSessionCount.g.cs" "Bookings","v1.0","Get-MgVirtualEventTownhallSession","Get","MgVirtualEventTownhallSession","(dispatcher)","False","GetMgVirtualEventTownhallSession.g.cs" "Bookings","v1.0","Get-MgVirtualEventTownhallSession_Get","Get","MgVirtualEventTownhallSession_Get","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId]","True","GetMgVirtualEventTownhallSession_Get.g.cs" "Bookings","v1.0","Get-MgVirtualEventTownhallSession_List","Get","MgVirtualEventTownhallSession_List","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions","True","GetMgVirtualEventTownhallSession_List.g.cs" @@ -789,6 +802,7 @@ "Bookings","v1.0","Get-MgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount","Get","MgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount","Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords.Count","False","GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount.g.cs" "Bookings","v1.0","Get-MgVirtualEventWebinarSessionAttendanceReportCount","Get","MgVirtualEventWebinarSessionAttendanceReportCount","Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions[VirtualEventSessionId].AttendanceReports.Count","False","GetMgVirtualEventWebinarSessionAttendanceReportCount.g.cs" "Bookings","v1.0","Get-MgVirtualEventWebinarSessionCount","Get","MgVirtualEventWebinarSessionCount","Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions.Count","False","GetMgVirtualEventWebinarSessionCount.g.cs" +"Bookings","v1.0","Invoke-MgVirtualEventTownhallRegistrationCancel","Invoke","MgVirtualEventTownhallRegistrationCancel","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Cancel","False","InvokeMgVirtualEventTownhallRegistrationCancel.g.cs" "Bookings","v1.0","New-MgBookingBusiness","New","MgBookingBusiness","Solutions.BookingBusinesses","False","NewMgBookingBusiness.g.cs" "Bookings","v1.0","New-MgBookingBusinessAppointment","New","MgBookingBusinessAppointment","Solutions.BookingBusinesses[BookingBusinessId].Appointments","False","NewMgBookingBusinessAppointment.g.cs" "Bookings","v1.0","New-MgBookingBusinessCalendarView","New","MgBookingBusinessCalendarView","Solutions.BookingBusinesses[BookingBusinessId].CalendarView","False","NewMgBookingBusinessCalendarView.g.cs" @@ -804,6 +818,8 @@ "Bookings","v1.0","New-MgVirtualEventSessionAttendanceReportAttendanceRecord","New","MgVirtualEventSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords","False","NewMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs" "Bookings","v1.0","New-MgVirtualEventTownhall","New","MgVirtualEventTownhall","Solutions.VirtualEvents.Townhalls","False","NewMgVirtualEventTownhall.g.cs" "Bookings","v1.0","New-MgVirtualEventTownhallPresenter","New","MgVirtualEventTownhallPresenter","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters","False","NewMgVirtualEventTownhallPresenter.g.cs" +"Bookings","v1.0","New-MgVirtualEventTownhallRegistration","New","MgVirtualEventTownhallRegistration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations","False","NewMgVirtualEventTownhallRegistration.g.cs" +"Bookings","v1.0","New-MgVirtualEventTownhallRegistrationConfigurationQuestion","New","MgVirtualEventTownhallRegistrationConfigurationQuestion","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions","False","NewMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs" "Bookings","v1.0","New-MgVirtualEventTownhallSession","New","MgVirtualEventTownhallSession","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions","False","NewMgVirtualEventTownhallSession.g.cs" "Bookings","v1.0","New-MgVirtualEventTownhallSessionAttendanceReport","New","MgVirtualEventTownhallSessionAttendanceReport","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports","False","NewMgVirtualEventTownhallSessionAttendanceReport.g.cs" "Bookings","v1.0","New-MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","New","MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords","False","NewMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs" @@ -831,6 +847,9 @@ "Bookings","v1.0","Remove-MgVirtualEventSessionAttendanceReportAttendanceRecord","Remove","MgVirtualEventSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId]","False","RemoveMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs" "Bookings","v1.0","Remove-MgVirtualEventTownhall","Remove","MgVirtualEventTownhall","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId]","False","RemoveMgVirtualEventTownhall.g.cs" "Bookings","v1.0","Remove-MgVirtualEventTownhallPresenter","Remove","MgVirtualEventTownhallPresenter","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters[VirtualEventPresenterId]","False","RemoveMgVirtualEventTownhallPresenter.g.cs" +"Bookings","v1.0","Remove-MgVirtualEventTownhallRegistration","Remove","MgVirtualEventTownhallRegistration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId]","False","RemoveMgVirtualEventTownhallRegistration.g.cs" +"Bookings","v1.0","Remove-MgVirtualEventTownhallRegistrationConfiguration","Remove","MgVirtualEventTownhallRegistrationConfiguration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration","False","RemoveMgVirtualEventTownhallRegistrationConfiguration.g.cs" +"Bookings","v1.0","Remove-MgVirtualEventTownhallRegistrationConfigurationQuestion","Remove","MgVirtualEventTownhallRegistrationConfigurationQuestion","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId]","False","RemoveMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs" "Bookings","v1.0","Remove-MgVirtualEventTownhallSession","Remove","MgVirtualEventTownhallSession","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId]","False","RemoveMgVirtualEventTownhallSession.g.cs" "Bookings","v1.0","Remove-MgVirtualEventTownhallSessionAttendanceReport","Remove","MgVirtualEventTownhallSessionAttendanceReport","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId]","False","RemoveMgVirtualEventTownhallSessionAttendanceReport.g.cs" "Bookings","v1.0","Remove-MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","Remove","MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId]","False","RemoveMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs" @@ -863,6 +882,9 @@ "Bookings","v1.0","Update-MgVirtualEventSessionAttendanceReportAttendanceRecord","Update","MgVirtualEventSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId]","False","UpdateMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs" "Bookings","v1.0","Update-MgVirtualEventTownhall","Update","MgVirtualEventTownhall","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId]","False","UpdateMgVirtualEventTownhall.g.cs" "Bookings","v1.0","Update-MgVirtualEventTownhallPresenter","Update","MgVirtualEventTownhallPresenter","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters[VirtualEventPresenterId]","False","UpdateMgVirtualEventTownhallPresenter.g.cs" +"Bookings","v1.0","Update-MgVirtualEventTownhallRegistration","Update","MgVirtualEventTownhallRegistration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId]","False","UpdateMgVirtualEventTownhallRegistration.g.cs" +"Bookings","v1.0","Update-MgVirtualEventTownhallRegistrationConfiguration","Update","MgVirtualEventTownhallRegistrationConfiguration","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration","False","UpdateMgVirtualEventTownhallRegistrationConfiguration.g.cs" +"Bookings","v1.0","Update-MgVirtualEventTownhallRegistrationConfigurationQuestion","Update","MgVirtualEventTownhallRegistrationConfigurationQuestion","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId]","False","UpdateMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs" "Bookings","v1.0","Update-MgVirtualEventTownhallSession","Update","MgVirtualEventTownhallSession","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId]","False","UpdateMgVirtualEventTownhallSession.g.cs" "Bookings","v1.0","Update-MgVirtualEventTownhallSessionAttendanceReport","Update","MgVirtualEventTownhallSessionAttendanceReport","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId]","False","UpdateMgVirtualEventTownhallSessionAttendanceReport.g.cs" "Bookings","v1.0","Update-MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","Update","MgVirtualEventTownhallSessionAttendanceReportAttendanceRecord","Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId]","False","UpdateMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs" @@ -1205,10 +1227,10 @@ "CloudCommunications","v1.0","Get-MgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime","Get","MgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime","(dispatcher)","False","GetMgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime","Get","MgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime","(dispatcher)","False","GetMgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordOrganizerV2","Get","MgCommunicationCallRecordOrganizerV2","Communications.CallRecords[CallRecordId].Organizer_v2","False","GetMgCommunicationCallRecordOrganizerV2.g.cs" +"CloudCommunications","v1.0","Get-MgCommunicationCallRecordParticipant","Get","MgCommunicationCallRecordParticipant","Communications.CallRecords[CallRecordId].Participants_v2.Count","False","GetMgCommunicationCallRecordParticipant.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordParticipantV2","Get","MgCommunicationCallRecordParticipantV2","(dispatcher)","False","GetMgCommunicationCallRecordParticipantV2.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordParticipantV2_Get","Get","MgCommunicationCallRecordParticipantV2_Get","Communications.CallRecords[CallRecordId].Participants_v2[ParticipantId]","True","GetMgCommunicationCallRecordParticipantV2_Get.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordParticipantV2_List","Get","MgCommunicationCallRecordParticipantV2_List","Communications.CallRecords[CallRecordId].Participants_v2","True","GetMgCommunicationCallRecordParticipantV2_List.g.cs" -"CloudCommunications","v1.0","Get-MgCommunicationCallRecordParticipantV2Count","Get","MgCommunicationCallRecordParticipantV2Count","Communications.CallRecords[CallRecordId].Participants_v2.Count","False","GetMgCommunicationCallRecordParticipantV2Count.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordSession","Get","MgCommunicationCallRecordSession","(dispatcher)","False","GetMgCommunicationCallRecordSession.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordSession_Get","Get","MgCommunicationCallRecordSession_Get","Communications.CallRecords[CallRecordId].Sessions[SessionId]","True","GetMgCommunicationCallRecordSession_Get.g.cs" "CloudCommunications","v1.0","Get-MgCommunicationCallRecordSession_List","Get","MgCommunicationCallRecordSession_List","Communications.CallRecords[CallRecordId].Sessions","True","GetMgCommunicationCallRecordSession_List.g.cs" @@ -1495,7 +1517,6 @@ "Compliance","v1.0","Update-MgPrivacySubjectRightsRequestApproverMailboxSetting","Update","MgPrivacySubjectRightsRequestApproverMailboxSetting","Privacy.SubjectRightsRequests[SubjectRightsRequestId].Approvers[UserId].MailboxSettings","False","UpdateMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs" "Compliance","v1.0","Update-MgPrivacySubjectRightsRequestCollaboratorMailboxSetting","Update","MgPrivacySubjectRightsRequestCollaboratorMailboxSetting","Privacy.SubjectRightsRequests[SubjectRightsRequestId].Collaborators[UserId].MailboxSettings","False","UpdateMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs" "Compliance","v1.0","Update-MgPrivacySubjectRightsRequestNote","Update","MgPrivacySubjectRightsRequestNote","Privacy.SubjectRightsRequests[SubjectRightsRequestId].Notes[AuthoredNoteId]","False","UpdateMgPrivacySubjectRightsRequestNote.g.cs" -"ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagement","Get","MgAdminConfigurationManagement","Admin.ConfigurationManagement","False","GetMgAdminConfigurationManagement.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationDrift","Get","MgAdminConfigurationManagementConfigurationDrift","(dispatcher)","False","GetMgAdminConfigurationManagementConfigurationDrift.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationDrift_Get","Get","MgAdminConfigurationManagementConfigurationDrift_Get","Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId]","True","GetMgAdminConfigurationManagementConfigurationDrift_Get.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationDrift_List","Get","MgAdminConfigurationManagementConfigurationDrift_List","Admin.ConfigurationManagement.ConfigurationDrifts","True","GetMgAdminConfigurationManagementConfigurationDrift_List.g.cs" @@ -1512,30 +1533,13 @@ "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshot","Get","MgAdminConfigurationManagementConfigurationSnapshot","(dispatcher)","False","GetMgAdminConfigurationManagementConfigurationSnapshot.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshot_Get","Get","MgAdminConfigurationManagementConfigurationSnapshot_Get","Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId]","True","GetMgAdminConfigurationManagementConfigurationSnapshot_Get.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshot_List","Get","MgAdminConfigurationManagementConfigurationSnapshot_List","Admin.ConfigurationManagement.ConfigurationSnapshots","True","GetMgAdminConfigurationManagementConfigurationSnapshot_List.g.cs" -"ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshotCount","Get","MgAdminConfigurationManagementConfigurationSnapshotCount","Admin.ConfigurationManagement.ConfigurationSnapshots.Count","False","GetMgAdminConfigurationManagementConfigurationSnapshotCount.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshotJob","Get","MgAdminConfigurationManagementConfigurationSnapshotJob","(dispatcher)","False","GetMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshotJob_Get","Get","MgAdminConfigurationManagementConfigurationSnapshotJob_Get","Admin.ConfigurationManagement.ConfigurationSnapshotJobs[ConfigurationSnapshotJobId]","True","GetMgAdminConfigurationManagementConfigurationSnapshotJob_Get.g.cs" "ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshotJob_List","Get","MgAdminConfigurationManagementConfigurationSnapshotJob_List","Admin.ConfigurationManagement.ConfigurationSnapshotJobs","True","GetMgAdminConfigurationManagementConfigurationSnapshotJob_List.g.cs" -"ConfigurationManagement","v1.0","Get-MgAdminConfigurationManagementConfigurationSnapshotJobCount","Get","MgAdminConfigurationManagementConfigurationSnapshotJobCount","Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count","False","GetMgAdminConfigurationManagementConfigurationSnapshotJobCount.g.cs" -"ConfigurationManagement","v1.0","New-MgAdminConfigurationManagementConfigurationDrift","New","MgAdminConfigurationManagementConfigurationDrift","Admin.ConfigurationManagement.ConfigurationDrifts","False","NewMgAdminConfigurationManagementConfigurationDrift.g.cs" "ConfigurationManagement","v1.0","New-MgAdminConfigurationManagementConfigurationMonitor","New","MgAdminConfigurationManagementConfigurationMonitor","Admin.ConfigurationManagement.ConfigurationMonitors","False","NewMgAdminConfigurationManagementConfigurationMonitor.g.cs" -"ConfigurationManagement","v1.0","New-MgAdminConfigurationManagementConfigurationMonitoringResult","New","MgAdminConfigurationManagementConfigurationMonitoringResult","Admin.ConfigurationManagement.ConfigurationMonitoringResults","False","NewMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs" -"ConfigurationManagement","v1.0","New-MgAdminConfigurationManagementConfigurationSnapshot","New","MgAdminConfigurationManagementConfigurationSnapshot","Admin.ConfigurationManagement.ConfigurationSnapshots","False","NewMgAdminConfigurationManagementConfigurationSnapshot.g.cs" -"ConfigurationManagement","v1.0","New-MgAdminConfigurationManagementConfigurationSnapshotJob","New","MgAdminConfigurationManagementConfigurationSnapshotJob","Admin.ConfigurationManagement.ConfigurationSnapshotJobs","False","NewMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs" -"ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagement","Remove","MgAdminConfigurationManagement","Admin.ConfigurationManagement","False","RemoveMgAdminConfigurationManagement.g.cs" -"ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationDrift","Remove","MgAdminConfigurationManagementConfigurationDrift","Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId]","False","RemoveMgAdminConfigurationManagementConfigurationDrift.g.cs" "ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationMonitor","Remove","MgAdminConfigurationManagementConfigurationMonitor","Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId]","False","RemoveMgAdminConfigurationManagementConfigurationMonitor.g.cs" -"ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationMonitorBaseline","Remove","MgAdminConfigurationManagementConfigurationMonitorBaseline","Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].Baseline","False","RemoveMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs" -"ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationMonitoringResult","Remove","MgAdminConfigurationManagementConfigurationMonitoringResult","Admin.ConfigurationManagement.ConfigurationMonitoringResults[ConfigurationMonitoringResultId]","False","RemoveMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs" -"ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationSnapshot","Remove","MgAdminConfigurationManagementConfigurationSnapshot","Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId]","False","RemoveMgAdminConfigurationManagementConfigurationSnapshot.g.cs" "ConfigurationManagement","v1.0","Remove-MgAdminConfigurationManagementConfigurationSnapshotJob","Remove","MgAdminConfigurationManagementConfigurationSnapshotJob","Admin.ConfigurationManagement.ConfigurationSnapshotJobs[ConfigurationSnapshotJobId]","False","RemoveMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagement","Update","MgAdminConfigurationManagement","Admin.ConfigurationManagement","False","UpdateMgAdminConfigurationManagement.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationDrift","Update","MgAdminConfigurationManagementConfigurationDrift","Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId]","False","UpdateMgAdminConfigurationManagementConfigurationDrift.g.cs" "ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationMonitor","Update","MgAdminConfigurationManagementConfigurationMonitor","Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId]","False","UpdateMgAdminConfigurationManagementConfigurationMonitor.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationMonitorBaseline","Update","MgAdminConfigurationManagementConfigurationMonitorBaseline","Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].Baseline","False","UpdateMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationMonitoringResult","Update","MgAdminConfigurationManagementConfigurationMonitoringResult","Admin.ConfigurationManagement.ConfigurationMonitoringResults[ConfigurationMonitoringResultId]","False","UpdateMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationSnapshot","Update","MgAdminConfigurationManagementConfigurationSnapshot","Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId]","False","UpdateMgAdminConfigurationManagementConfigurationSnapshot.g.cs" -"ConfigurationManagement","v1.0","Update-MgAdminConfigurationManagementConfigurationSnapshotJob","Update","MgAdminConfigurationManagementConfigurationSnapshotJob","Admin.ConfigurationManagement.ConfigurationSnapshotJobs[ConfigurationSnapshotJobId]","False","UpdateMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs" "CrossDeviceExperiences","v1.0","Get-MgUserActivity","Get","MgUserActivity","(dispatcher)","False","GetMgUserActivity.g.cs" "CrossDeviceExperiences","v1.0","Get-MgUserActivity_Get","Get","MgUserActivity_Get","Users[UserId].Activities[UserActivityId]","True","GetMgUserActivity_Get.g.cs" "CrossDeviceExperiences","v1.0","Get-MgUserActivity_List","Get","MgUserActivity_List","Users[UserId].Activities","True","GetMgUserActivity_List.g.cs" @@ -3123,8 +3127,6 @@ "Devices.CorporateManagement","v1.0","Update-MgUserManagedDeviceWindowsDeviceAccount","Update","MgUserManagedDeviceWindowsDeviceAccount","Users[UserId].ManagedDevices[ManagedDeviceId].UpdateWindowsDeviceAccount","False","UpdateMgUserManagedDeviceWindowsDeviceAccount.g.cs" "Devices.CorporateManagement","v1.0","Update-MgUserManagedDeviceWindowsProtectionState","Update","MgUserManagedDeviceWindowsProtectionState","Users[UserId].ManagedDevices[ManagedDeviceId].WindowsProtectionState","False","UpdateMgUserManagedDeviceWindowsProtectionState.g.cs" "Devices.CorporateManagement","v1.0","Update-MgUserManagedDeviceWindowsProtectionStateDetectedMalwareState","Update","MgUserManagedDeviceWindowsProtectionStateDetectedMalwareState","Users[UserId].ManagedDevices[ManagedDeviceId].WindowsProtectionState.DetectedMalwareState[WindowsDeviceMalwareStateId]","False","UpdateMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs" -"Devices.ServiceAnnouncement","v1.0","Get-MgAdminServiceAnnouncementMessageAttachmentArchive","Get","MgAdminServiceAnnouncementMessageAttachmentArchive","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].AttachmentsArchive","False","GetMgAdminServiceAnnouncementMessageAttachmentArchive.g.cs" -"Devices.ServiceAnnouncement","v1.0","Get-MgAdminServiceAnnouncementMessageAttachmentContent","Get","MgAdminServiceAnnouncementMessageAttachmentContent","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content","False","GetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementHealthOverview","Get","MgServiceAnnouncementHealthOverview","(dispatcher)","False","GetMgServiceAnnouncementHealthOverview.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementHealthOverview_Get","Get","MgServiceAnnouncementHealthOverview_Get","Admin.ServiceAnnouncement.HealthOverviews[ServiceHealthId]","True","GetMgServiceAnnouncementHealthOverview_Get.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementHealthOverview_List","Get","MgServiceAnnouncementHealthOverview_List","Admin.ServiceAnnouncement.HealthOverviews","True","GetMgServiceAnnouncementHealthOverview_List.g.cs" @@ -3143,6 +3145,8 @@ "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachment","Get","MgServiceAnnouncementMessageAttachment","(dispatcher)","False","GetMgServiceAnnouncementMessageAttachment.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachment_Get","Get","MgServiceAnnouncementMessageAttachment_Get","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId]","True","GetMgServiceAnnouncementMessageAttachment_Get.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachment_List","Get","MgServiceAnnouncementMessageAttachment_List","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments","True","GetMgServiceAnnouncementMessageAttachment_List.g.cs" +"Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachmentArchive","Get","MgServiceAnnouncementMessageAttachmentArchive","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].AttachmentsArchive","False","GetMgServiceAnnouncementMessageAttachmentArchive.g.cs" +"Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachmentContent","Get","MgServiceAnnouncementMessageAttachmentContent","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content","False","GetMgServiceAnnouncementMessageAttachmentContent.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageAttachmentCount","Get","MgServiceAnnouncementMessageAttachmentCount","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments.Count","False","GetMgServiceAnnouncementMessageAttachmentCount.g.cs" "Devices.ServiceAnnouncement","v1.0","Get-MgServiceAnnouncementMessageCount","Get","MgServiceAnnouncementMessageCount","Admin.ServiceAnnouncement.Messages.Count","False","GetMgServiceAnnouncementMessageCount.g.cs" "Devices.ServiceAnnouncement","v1.0","Invoke-MgArchiveServiceAnnouncementMessage","Invoke","MgArchiveServiceAnnouncementMessage","(dispatcher)","False","InvokeMgArchiveServiceAnnouncementMessage.g.cs" @@ -3153,8 +3157,6 @@ "Devices.ServiceAnnouncement","v1.0","Invoke-MgReportServiceAnnouncementIssueIncident","Invoke","MgReportServiceAnnouncementIssueIncident","Admin.ServiceAnnouncement.Issues[ServiceHealthIssueId].IncidentReport","False","InvokeMgReportServiceAnnouncementIssueIncident.g.cs" "Devices.ServiceAnnouncement","v1.0","Invoke-MgUnarchiveServiceAnnouncementMessage","Invoke","MgUnarchiveServiceAnnouncementMessage","(dispatcher)","False","InvokeMgUnarchiveServiceAnnouncementMessage.g.cs" "Devices.ServiceAnnouncement","v1.0","Invoke-MgUnfavoriteServiceAnnouncementMessage","Invoke","MgUnfavoriteServiceAnnouncementMessage","(dispatcher)","False","InvokeMgUnfavoriteServiceAnnouncementMessage.g.cs" -"Devices.ServiceAnnouncement","v1.0","Remove-MgAdminServiceAnnouncementMessageAttachmentContent","Remove","MgAdminServiceAnnouncementMessageAttachmentContent","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content","False","RemoveMgAdminServiceAnnouncementMessageAttachmentContent.g.cs" -"Devices.ServiceAnnouncement","v1.0","Set-MgAdminServiceAnnouncementMessageAttachmentContent","Set","MgAdminServiceAnnouncementMessageAttachmentContent","Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content","False","SetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs" "DirectoryObjects","v1.0","Confirm-MgDirectoryObjectMemberGroup","Confirm","MgDirectoryObjectMemberGroup","(dispatcher)","False","ConfirmMgDirectoryObjectMemberGroup.g.cs" "DirectoryObjects","v1.0","Confirm-MgDirectoryObjectMemberObject","Confirm","MgDirectoryObjectMemberObject","(dispatcher)","False","ConfirmMgDirectoryObjectMemberObject.g.cs" "DirectoryObjects","v1.0","Get-MgDirectoryObject","Get","MgDirectoryObject","(dispatcher)","False","GetMgDirectoryObject.g.cs" @@ -3660,7 +3662,6 @@ "Files","v1.0","Get-MgDriveItemAnalyticItemActivityStatActivity","Get","MgDriveItemAnalyticItemActivityStatActivity","(dispatcher)","False","GetMgDriveItemAnalyticItemActivityStatActivity.g.cs" "Files","v1.0","Get-MgDriveItemAnalyticItemActivityStatActivity_Get","Get","MgDriveItemAnalyticItemActivityStatActivity_Get","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId]","True","GetMgDriveItemAnalyticItemActivityStatActivity_Get.g.cs" "Files","v1.0","Get-MgDriveItemAnalyticItemActivityStatActivity_List","Get","MgDriveItemAnalyticItemActivityStatActivity_List","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities","True","GetMgDriveItemAnalyticItemActivityStatActivity_List.g.cs" -"Files","v1.0","Get-MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Get","MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content","False","GetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs" "Files","v1.0","Get-MgDriveItemAnalyticItemActivityStatCount","Get","MgDriveItemAnalyticItemActivityStatCount","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats.Count","False","GetMgDriveItemAnalyticItemActivityStatCount.g.cs" "Files","v1.0","Get-MgDriveItemAnalyticLastSevenDay","Get","MgDriveItemAnalyticLastSevenDay","Drives[DriveId].Items[DriveItemId].Analytics.LastSevenDays","False","GetMgDriveItemAnalyticLastSevenDay.g.cs" "Files","v1.0","Get-MgDriveItemAnalyticTime","Get","MgDriveItemAnalyticTime","Drives[DriveId].Items[DriveItemId].Analytics.AllTime","False","GetMgDriveItemAnalyticTime.g.cs" @@ -3676,7 +3677,6 @@ "Files","v1.0","Get-MgDriveItemCreatedByUserServiceProvisioningError","Get","MgDriveItemCreatedByUserServiceProvisioningError","Drives[DriveId].Items[DriveItemId].CreatedByUser.ServiceProvisioningErrors","False","GetMgDriveItemCreatedByUserServiceProvisioningError.g.cs" "Files","v1.0","Get-MgDriveItemCreatedByUserServiceProvisioningErrorCount","Get","MgDriveItemCreatedByUserServiceProvisioningErrorCount","Drives[DriveId].Items[DriveItemId].CreatedByUser.ServiceProvisioningErrors.Count","False","GetMgDriveItemCreatedByUserServiceProvisioningErrorCount.g.cs" "Files","v1.0","Get-MgDriveItemDelta","Get","MgDriveItemDelta","(dispatcher)","False","GetMgDriveItemDelta.g.cs" -"Files","v1.0","Get-MgDriveItemDeltaWithToken","Get","MgDriveItemDeltaWithToken","(dispatcher)","False","GetMgDriveItemDeltaWithToken.g.cs" "Files","v1.0","Get-MgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval","Get","MgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval","(dispatcher)","False","GetMgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs" "Files","v1.0","Get-MgDriveItemLastModifiedByUser","Get","MgDriveItemLastModifiedByUser","Drives[DriveId].Items[DriveItemId].LastModifiedByUser","False","GetMgDriveItemLastModifiedByUser.g.cs" "Files","v1.0","Get-MgDriveItemLastModifiedByUserMailboxSetting","Get","MgDriveItemLastModifiedByUserMailboxSetting","Drives[DriveId].Items[DriveItemId].LastModifiedByUser.MailboxSettings","False","GetMgDriveItemLastModifiedByUserMailboxSetting.g.cs" @@ -3715,7 +3715,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookNameRangeRowWithRow","Get","MgDriveItemWorkbookNameRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookNameRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookSessionInfoResourceWithKey","Get","MgDriveItemWorkbookSessionInfoResourceWithKey","(dispatcher)","False","GetMgDriveItemWorkbookSessionInfoResourceWithKey.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookTableColumnCount","Get","MgDriveItemWorkbookTableColumnCount","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount","Get","MgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount.g.cs" @@ -3765,7 +3764,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount","Get","MgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow","Get","MgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookTableCount","Get","MgDriveItemWorkbookTableCount","(dispatcher)","False","GetMgDriveItemWorkbookTableCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount","Get","MgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount","(dispatcher)","False","GetMgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount.g.cs" @@ -3803,7 +3801,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookTableRangeRowsBelowWithCount","Get","MgDriveItemWorkbookTableRangeRowsBelowWithCount","(dispatcher)","False","GetMgDriveItemWorkbookTableRangeRowsBelowWithCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableRangeRowWithRow","Get","MgDriveItemWorkbookTableRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookTableRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookTableRowCount","Get","MgDriveItemWorkbookTableRowCount","(dispatcher)","False","GetMgDriveItemWorkbookTableRowCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableRowItemAtWithIndex","Get","MgDriveItemWorkbookTableRowItemAtWithIndex","(dispatcher)","False","GetMgDriveItemWorkbookTableRowItemAtWithIndex.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableRowOperationResultWithKey","Get","MgDriveItemWorkbookTableRowOperationResultWithKey","(dispatcher)","False","GetMgDriveItemWorkbookTableRowOperationResultWithKey.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange.g.cs" @@ -3831,15 +3828,12 @@ "Files","v1.0","Get-MgDriveItemWorkbookTableTotalRowRangeRowWithRow","Get","MgDriveItemWorkbookTableTotalRowRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookTableTotalRowRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetCellWithRowWithColumn","Get","MgDriveItemWorkbookWorksheetCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetCellWithRowWithColumn.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartCount","Get","MgDriveItemWorkbookWorksheetChartCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartImageWithWidth","Get","MgDriveItemWorkbookWorksheetChartImageWithWidth","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartImageWithWidth.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight","Get","MgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode","Get","MgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartItemAtWithIndex","Get","MgDriveItemWorkbookWorksheetChartItemAtWithIndex","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartItemAtWithIndex.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartItemWithName","Get","MgDriveItemWorkbookWorksheetChartItemWithName","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartItemWithName.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartSeryCount","Get","MgDriveItemWorkbookWorksheetChartSeryCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartSeryCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex","Get","MgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartSeryPointCount","Get","MgDriveItemWorkbookWorksheetChartSeryPointCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartSeryPointCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex","Get","MgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn.g.cs" @@ -3866,7 +3860,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookWorksheetRangeRowWithRow","Get","MgDriveItemWorkbookWorksheetRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetRangeWithAddress","Get","MgDriveItemWorkbookWorksheetRangeWithAddress","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetRangeWithAddress.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnCount","Get","MgDriveItemWorkbookWorksheetTableColumnCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount","Get","MgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount.g.cs" @@ -3916,7 +3909,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount","Get","MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow","Get","MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableCount","Get","MgDriveItemWorkbookWorksheetTableCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount","Get","MgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount.g.cs" @@ -3954,7 +3946,6 @@ "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount","Get","MgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRangeRowWithRow","Get","MgDriveItemWorkbookWorksheetTableRangeRowWithRow","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRangeRowWithRow.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly","Get","MgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly.g.cs" -"Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRowCount","Get","MgDriveItemWorkbookWorksheetTableRowCount","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRowCount.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRowItemAtWithIndex","Get","MgDriveItemWorkbookWorksheetTableRowItemAtWithIndex","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRowItemAtWithIndex.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange","Get","MgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange.g.cs" "Files","v1.0","Get-MgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn","Get","MgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn","(dispatcher)","False","GetMgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn.g.cs" @@ -4036,7 +4027,6 @@ "Files","v1.0","Get-MgDriveListItemCreatedByUserServiceProvisioningError","Get","MgDriveListItemCreatedByUserServiceProvisioningError","Drives[DriveId].List.Items[ListItemId].CreatedByUser.ServiceProvisioningErrors","False","GetMgDriveListItemCreatedByUserServiceProvisioningError.g.cs" "Files","v1.0","Get-MgDriveListItemCreatedByUserServiceProvisioningErrorCount","Get","MgDriveListItemCreatedByUserServiceProvisioningErrorCount","Drives[DriveId].List.Items[ListItemId].CreatedByUser.ServiceProvisioningErrors.Count","False","GetMgDriveListItemCreatedByUserServiceProvisioningErrorCount.g.cs" "Files","v1.0","Get-MgDriveListItemDelta","Get","MgDriveListItemDelta","(dispatcher)","False","GetMgDriveListItemDelta.g.cs" -"Files","v1.0","Get-MgDriveListItemDeltaWithToken","Get","MgDriveListItemDeltaWithToken","(dispatcher)","False","GetMgDriveListItemDeltaWithToken.g.cs" "Files","v1.0","Get-MgDriveListItemDocumentSetVersion","Get","MgDriveListItemDocumentSetVersion","(dispatcher)","False","GetMgDriveListItemDocumentSetVersion.g.cs" "Files","v1.0","Get-MgDriveListItemDocumentSetVersion_Get","Get","MgDriveListItemDocumentSetVersion_Get","Drives[DriveId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId]","True","GetMgDriveListItemDocumentSetVersion_Get.g.cs" "Files","v1.0","Get-MgDriveListItemDocumentSetVersion_List","Get","MgDriveListItemDocumentSetVersion_List","Drives[DriveId].List.Items[ListItemId].DocumentSetVersions","True","GetMgDriveListItemDocumentSetVersion_List.g.cs" @@ -4137,7 +4127,6 @@ "Files","v1.0","Get-MgShareListItemCreatedByUserServiceProvisioningError","Get","MgShareListItemCreatedByUserServiceProvisioningError","Shares[SharedDriveItemId].List.Items[ListItemId].CreatedByUser.ServiceProvisioningErrors","False","GetMgShareListItemCreatedByUserServiceProvisioningError.g.cs" "Files","v1.0","Get-MgShareListItemCreatedByUserServiceProvisioningErrorCount","Get","MgShareListItemCreatedByUserServiceProvisioningErrorCount","Shares[SharedDriveItemId].List.Items[ListItemId].CreatedByUser.ServiceProvisioningErrors.Count","False","GetMgShareListItemCreatedByUserServiceProvisioningErrorCount.g.cs" "Files","v1.0","Get-MgShareListItemDelta","Get","MgShareListItemDelta","(dispatcher)","False","GetMgShareListItemDelta.g.cs" -"Files","v1.0","Get-MgShareListItemDeltaWithToken","Get","MgShareListItemDeltaWithToken","(dispatcher)","False","GetMgShareListItemDeltaWithToken.g.cs" "Files","v1.0","Get-MgShareListItemDocumentSetVersion","Get","MgShareListItemDocumentSetVersion","(dispatcher)","False","GetMgShareListItemDocumentSetVersion.g.cs" "Files","v1.0","Get-MgShareListItemDocumentSetVersion_Get","Get","MgShareListItemDocumentSetVersion_Get","Shares[SharedDriveItemId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId]","True","GetMgShareListItemDocumentSetVersion_Get.g.cs" "Files","v1.0","Get-MgShareListItemDocumentSetVersion_List","Get","MgShareListItemDocumentSetVersion_List","Shares[SharedDriveItemId].List.Items[ListItemId].DocumentSetVersions","True","GetMgShareListItemDocumentSetVersion_List.g.cs" @@ -4173,66 +4162,6 @@ "Files","v1.0","Grant-MgSharePermission","Grant","MgSharePermission","(dispatcher)","False","GrantMgSharePermission.g.cs" "Files","v1.0","Invoke-MgCheckinDriveItem","Invoke","MgCheckinDriveItem","Drives[DriveId].Items[DriveItemId].Checkin","False","InvokeMgCheckinDriveItem.g.cs" "Files","v1.0","Invoke-MgCheckoutDriveItem","Invoke","MgCheckoutDriveItem","Drives[DriveId].Items[DriveItemId].Checkout","False","InvokeMgCheckoutDriveItem.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionBeta_Dist","Invoke","MgDriveItemWorkbookFunctionBeta_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Beta_Dist","False","InvokeMgDriveItemWorkbookFunctionBeta_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionBeta_Inv","Invoke","MgDriveItemWorkbookFunctionBeta_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Beta_Inv","False","InvokeMgDriveItemWorkbookFunctionBeta_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionBinom_Dist","Invoke","MgDriveItemWorkbookFunctionBinom_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Dist","False","InvokeMgDriveItemWorkbookFunctionBinom_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionBinom_Dist_Range","Invoke","MgDriveItemWorkbookFunctionBinom_Dist_Range","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Dist_Range","False","InvokeMgDriveItemWorkbookFunctionBinom_Dist_Range.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionBinom_Inv","Invoke","MgDriveItemWorkbookFunctionBinom_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Inv","False","InvokeMgDriveItemWorkbookFunctionBinom_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionCeiling_Math","Invoke","MgDriveItemWorkbookFunctionCeiling_Math","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ceiling_Math","False","InvokeMgDriveItemWorkbookFunctionCeiling_Math.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionCeiling_Precise","Invoke","MgDriveItemWorkbookFunctionCeiling_Precise","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ceiling_Precise","False","InvokeMgDriveItemWorkbookFunctionCeiling_Precise.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionChiSq_Dist","Invoke","MgDriveItemWorkbookFunctionChiSq_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Dist","False","InvokeMgDriveItemWorkbookFunctionChiSq_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionChiSq_Dist_RT","Invoke","MgDriveItemWorkbookFunctionChiSq_Dist_RT","Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Dist_RT","False","InvokeMgDriveItemWorkbookFunctionChiSq_Dist_RT.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionChiSq_Inv","Invoke","MgDriveItemWorkbookFunctionChiSq_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Inv","False","InvokeMgDriveItemWorkbookFunctionChiSq_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionChiSq_Inv_RT","Invoke","MgDriveItemWorkbookFunctionChiSq_Inv_RT","Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Inv_RT","False","InvokeMgDriveItemWorkbookFunctionChiSq_Inv_RT.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionConfidence_Norm","Invoke","MgDriveItemWorkbookFunctionConfidence_Norm","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Confidence_Norm","False","InvokeMgDriveItemWorkbookFunctionConfidence_Norm.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionConfidence_T","Invoke","MgDriveItemWorkbookFunctionConfidence_T","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Confidence_T","False","InvokeMgDriveItemWorkbookFunctionConfidence_T.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionCount","Invoke","MgDriveItemWorkbookFunctionCount","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Count","False","InvokeMgDriveItemWorkbookFunctionCount.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionEcma_Ceiling","Invoke","MgDriveItemWorkbookFunctionEcma_Ceiling","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ecma_Ceiling","False","InvokeMgDriveItemWorkbookFunctionEcma_Ceiling.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionErf_Precise","Invoke","MgDriveItemWorkbookFunctionErf_Precise","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Erf_Precise","False","InvokeMgDriveItemWorkbookFunctionErf_Precise.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionErfC_Precise","Invoke","MgDriveItemWorkbookFunctionErfC_Precise","Drives[DriveId].Items[DriveItemId].Workbook.Functions.ErfC_Precise","False","InvokeMgDriveItemWorkbookFunctionErfC_Precise.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionError_Type","Invoke","MgDriveItemWorkbookFunctionError_Type","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Error_Type","False","InvokeMgDriveItemWorkbookFunctionError_Type.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionExpon_Dist","Invoke","MgDriveItemWorkbookFunctionExpon_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Expon_Dist","False","InvokeMgDriveItemWorkbookFunctionExpon_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionF_Dist","Invoke","MgDriveItemWorkbookFunctionF_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Dist","False","InvokeMgDriveItemWorkbookFunctionF_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionF_Dist_RT","Invoke","MgDriveItemWorkbookFunctionF_Dist_RT","Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Dist_RT","False","InvokeMgDriveItemWorkbookFunctionF_Dist_RT.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionF_Inv","Invoke","MgDriveItemWorkbookFunctionF_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Inv","False","InvokeMgDriveItemWorkbookFunctionF_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionF_Inv_RT","Invoke","MgDriveItemWorkbookFunctionF_Inv_RT","Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Inv_RT","False","InvokeMgDriveItemWorkbookFunctionF_Inv_RT.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionFloor_Math","Invoke","MgDriveItemWorkbookFunctionFloor_Math","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Floor_Math","False","InvokeMgDriveItemWorkbookFunctionFloor_Math.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionFloor_Precise","Invoke","MgDriveItemWorkbookFunctionFloor_Precise","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Floor_Precise","False","InvokeMgDriveItemWorkbookFunctionFloor_Precise.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionGamma_Dist","Invoke","MgDriveItemWorkbookFunctionGamma_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Gamma_Dist","False","InvokeMgDriveItemWorkbookFunctionGamma_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionGamma_Inv","Invoke","MgDriveItemWorkbookFunctionGamma_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Gamma_Inv","False","InvokeMgDriveItemWorkbookFunctionGamma_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionGammaLn_Precise","Invoke","MgDriveItemWorkbookFunctionGammaLn_Precise","Drives[DriveId].Items[DriveItemId].Workbook.Functions.GammaLn_Precise","False","InvokeMgDriveItemWorkbookFunctionGammaLn_Precise.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionHypGeom_Dist","Invoke","MgDriveItemWorkbookFunctionHypGeom_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.HypGeom_Dist","False","InvokeMgDriveItemWorkbookFunctionHypGeom_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionIso_Ceiling","Invoke","MgDriveItemWorkbookFunctionIso_Ceiling","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Iso_Ceiling","False","InvokeMgDriveItemWorkbookFunctionIso_Ceiling.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionLogNorm_Dist","Invoke","MgDriveItemWorkbookFunctionLogNorm_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.LogNorm_Dist","False","InvokeMgDriveItemWorkbookFunctionLogNorm_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionLogNorm_Inv","Invoke","MgDriveItemWorkbookFunctionLogNorm_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.LogNorm_Inv","False","InvokeMgDriveItemWorkbookFunctionLogNorm_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNegBinom_Dist","Invoke","MgDriveItemWorkbookFunctionNegBinom_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.NegBinom_Dist","False","InvokeMgDriveItemWorkbookFunctionNegBinom_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNetworkDays_Intl","Invoke","MgDriveItemWorkbookFunctionNetworkDays_Intl","Drives[DriveId].Items[DriveItemId].Workbook.Functions.NetworkDays_Intl","False","InvokeMgDriveItemWorkbookFunctionNetworkDays_Intl.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNorm_Dist","Invoke","MgDriveItemWorkbookFunctionNorm_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_Dist","False","InvokeMgDriveItemWorkbookFunctionNorm_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNorm_Inv","Invoke","MgDriveItemWorkbookFunctionNorm_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_Inv","False","InvokeMgDriveItemWorkbookFunctionNorm_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNorm_S_Dist","Invoke","MgDriveItemWorkbookFunctionNorm_S_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_S_Dist","False","InvokeMgDriveItemWorkbookFunctionNorm_S_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionNorm_S_Inv","Invoke","MgDriveItemWorkbookFunctionNorm_S_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_S_Inv","False","InvokeMgDriveItemWorkbookFunctionNorm_S_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionPercentile_Exc","Invoke","MgDriveItemWorkbookFunctionPercentile_Exc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Percentile_Exc","False","InvokeMgDriveItemWorkbookFunctionPercentile_Exc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionPercentile_Inc","Invoke","MgDriveItemWorkbookFunctionPercentile_Inc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Percentile_Inc","False","InvokeMgDriveItemWorkbookFunctionPercentile_Inc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionPercentRank_Exc","Invoke","MgDriveItemWorkbookFunctionPercentRank_Exc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.PercentRank_Exc","False","InvokeMgDriveItemWorkbookFunctionPercentRank_Exc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionPercentRank_Inc","Invoke","MgDriveItemWorkbookFunctionPercentRank_Inc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.PercentRank_Inc","False","InvokeMgDriveItemWorkbookFunctionPercentRank_Inc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionPoisson_Dist","Invoke","MgDriveItemWorkbookFunctionPoisson_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Poisson_Dist","False","InvokeMgDriveItemWorkbookFunctionPoisson_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionQuartile_Exc","Invoke","MgDriveItemWorkbookFunctionQuartile_Exc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Quartile_Exc","False","InvokeMgDriveItemWorkbookFunctionQuartile_Exc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionQuartile_Inc","Invoke","MgDriveItemWorkbookFunctionQuartile_Inc","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Quartile_Inc","False","InvokeMgDriveItemWorkbookFunctionQuartile_Inc.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionRank_Avg","Invoke","MgDriveItemWorkbookFunctionRank_Avg","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Rank_Avg","False","InvokeMgDriveItemWorkbookFunctionRank_Avg.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionRank_Eq","Invoke","MgDriveItemWorkbookFunctionRank_Eq","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Rank_Eq","False","InvokeMgDriveItemWorkbookFunctionRank_Eq.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionSkew_p","Invoke","MgDriveItemWorkbookFunctionSkew_p","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Skew_p","False","InvokeMgDriveItemWorkbookFunctionSkew_p.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionStDev_P","Invoke","MgDriveItemWorkbookFunctionStDev_P","Drives[DriveId].Items[DriveItemId].Workbook.Functions.StDev_P","False","InvokeMgDriveItemWorkbookFunctionStDev_P.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionStDev_S","Invoke","MgDriveItemWorkbookFunctionStDev_S","Drives[DriveId].Items[DriveItemId].Workbook.Functions.StDev_S","False","InvokeMgDriveItemWorkbookFunctionStDev_S.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionT_Dist","Invoke","MgDriveItemWorkbookFunctionT_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist","False","InvokeMgDriveItemWorkbookFunctionT_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionT_Dist_2T","Invoke","MgDriveItemWorkbookFunctionT_Dist_2T","Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist_2T","False","InvokeMgDriveItemWorkbookFunctionT_Dist_2T.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionT_Dist_RT","Invoke","MgDriveItemWorkbookFunctionT_Dist_RT","Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist_RT","False","InvokeMgDriveItemWorkbookFunctionT_Dist_RT.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionT_Inv","Invoke","MgDriveItemWorkbookFunctionT_Inv","Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Inv","False","InvokeMgDriveItemWorkbookFunctionT_Inv.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionT_Inv_2T","Invoke","MgDriveItemWorkbookFunctionT_Inv_2T","Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Inv_2T","False","InvokeMgDriveItemWorkbookFunctionT_Inv_2T.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionVar_P","Invoke","MgDriveItemWorkbookFunctionVar_P","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Var_P","False","InvokeMgDriveItemWorkbookFunctionVar_P.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionVar_S","Invoke","MgDriveItemWorkbookFunctionVar_S","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Var_S","False","InvokeMgDriveItemWorkbookFunctionVar_S.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionWeibull_Dist","Invoke","MgDriveItemWorkbookFunctionWeibull_Dist","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Weibull_Dist","False","InvokeMgDriveItemWorkbookFunctionWeibull_Dist.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionWorkDay_Intl","Invoke","MgDriveItemWorkbookFunctionWorkDay_Intl","Drives[DriveId].Items[DriveItemId].Workbook.Functions.WorkDay_Intl","False","InvokeMgDriveItemWorkbookFunctionWorkDay_Intl.g.cs" -"Files","v1.0","Invoke-MgDriveItemWorkbookFunctionZ_Test","Invoke","MgDriveItemWorkbookFunctionZ_Test","Drives[DriveId].Items[DriveItemId].Workbook.Functions.Z_Test","False","InvokeMgDriveItemWorkbookFunctionZ_Test.g.cs" "Files","v1.0","Invoke-MgExtractDriveItemSensitivityLabel","Invoke","MgExtractDriveItemSensitivityLabel","Drives[DriveId].Items[DriveItemId].ExtractSensitivityLabels","False","InvokeMgExtractDriveItemSensitivityLabel.g.cs" "Files","v1.0","Invoke-MgFollowDriveItem","Invoke","MgFollowDriveItem","Drives[DriveId].Items[DriveItemId].Follow","False","InvokeMgFollowDriveItem.g.cs" "Files","v1.0","Invoke-MgGraphDrive","Invoke","MgGraphDrive","(dispatcher)","False","InvokeMgGraphDrive.g.cs" @@ -4284,7 +4213,6 @@ "Files","v1.0","Remove-MgDriveItem","Remove","MgDriveItem","Drives[DriveId].Items[DriveItemId]","False","RemoveMgDriveItem.g.cs" "Files","v1.0","Remove-MgDriveItemAnalytic","Remove","MgDriveItemAnalytic","Drives[DriveId].Items[DriveItemId].Analytics","False","RemoveMgDriveItemAnalytic.g.cs" "Files","v1.0","Remove-MgDriveItemAnalyticItemActivityStat","Remove","MgDriveItemAnalyticItemActivityStat","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId]","False","RemoveMgDriveItemAnalyticItemActivityStat.g.cs" -"Files","v1.0","Remove-MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Remove","MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content","False","RemoveMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs" "Files","v1.0","Remove-MgDriveItemCheckout","Remove","MgDriveItemCheckout","Drives[DriveId].Items[DriveItemId].DiscardCheckout","False","RemoveMgDriveItemCheckout.g.cs" "Files","v1.0","Remove-MgDriveItemChildContent","Remove","MgDriveItemChildContent","Drives[DriveId].Items[DriveItemId].Children[DriveItemId1].Content","False","RemoveMgDriveItemChildContent.g.cs" "Files","v1.0","Remove-MgDriveItemContent","Remove","MgDriveItemContent","Drives[DriveId].Items[DriveItemId].Content","False","RemoveMgDriveItemContent.g.cs" @@ -4338,7 +4266,6 @@ "Files","v1.0","Restore-MgShareListItemVersion","Restore","MgShareListItemVersion","Shares[SharedDriveItemId].List.Items[ListItemId].Versions[ListItemVersionId].RestoreVersion","False","RestoreMgShareListItemVersion.g.cs" "Files","v1.0","Set-MgDriveBundleContent","Set","MgDriveBundleContent","Drives[DriveId].Bundles[DriveItemId].Content","False","SetMgDriveBundleContent.g.cs" "Files","v1.0","Set-MgDriveFollowingContent","Set","MgDriveFollowingContent","Drives[DriveId].Following[DriveItemId].Content","False","SetMgDriveFollowingContent.g.cs" -"Files","v1.0","Set-MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Set","MgDriveItemAnalyticItemActivityStatActivityDriveItemContent","Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content","False","SetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs" "Files","v1.0","Set-MgDriveItemChildContent","Set","MgDriveItemChildContent","Drives[DriveId].Items[DriveItemId].Children[DriveItemId1].Content","False","SetMgDriveItemChildContent.g.cs" "Files","v1.0","Set-MgDriveItemContent","Set","MgDriveItemContent","Drives[DriveId].Items[DriveItemId].Content","False","SetMgDriveItemContent.g.cs" "Files","v1.0","Set-MgDriveItemSensitivityLabel","Set","MgDriveItemSensitivityLabel","Drives[DriveId].Items[DriveItemId].AssignSensitivityLabel","False","SetMgDriveItemSensitivityLabel.g.cs" @@ -5006,6 +4933,10 @@ "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRecoverySnapshotRecoveryPreviewJob_Get","Get","MgDirectoryRecoverySnapshotRecoveryPreviewJob_Get","Directory.Recovery.Snapshots[SnapshotId].RecoveryPreviewJobs[RecoveryPreviewJobId]","True","GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_Get.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRecoverySnapshotRecoveryPreviewJob_List","Get","MgDirectoryRecoverySnapshotRecoveryPreviewJob_List","Directory.Recovery.Snapshots[SnapshotId].RecoveryPreviewJobs","True","GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_List.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRecoverySnapshotRecoveryPreviewJobCount","Get","MgDirectoryRecoverySnapshotRecoveryPreviewJobCount","Directory.Recovery.Snapshots[SnapshotId].RecoveryPreviewJobs.Count","False","GetMgDirectoryRecoverySnapshotRecoveryPreviewJobCount.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgDirectoryRemoteTenantGroup","Get","MgDirectoryRemoteTenantGroup","(dispatcher)","False","GetMgDirectoryRemoteTenantGroup.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgDirectoryRemoteTenantGroup_Get","Get","MgDirectoryRemoteTenantGroup_Get","Directory.RemoteTenantGroups[RemoteTenantGroupId]","True","GetMgDirectoryRemoteTenantGroup_Get.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgDirectoryRemoteTenantGroup_List","Get","MgDirectoryRemoteTenantGroup_List","Directory.RemoteTenantGroups","True","GetMgDirectoryRemoteTenantGroup_List.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgDirectoryRemoteTenantGroupCount","Get","MgDirectoryRemoteTenantGroupCount","Directory.RemoteTenantGroups.Count","False","GetMgDirectoryRemoteTenantGroupCount.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRole","Get","MgDirectoryRole","(dispatcher)","False","GetMgDirectoryRole.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRole_Get","Get","MgDirectoryRole_Get","DirectoryRoles[DirectoryRoleId]","True","GetMgDirectoryRole_Get.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgDirectoryRole_List","Get","MgDirectoryRole_List","DirectoryRoles","True","GetMgDirectoryRole_List.g.cs" @@ -5084,7 +5015,7 @@ "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBranding","Get","MgOrganizationBranding","Organization[OrganizationId].Branding","False","GetMgOrganizationBranding.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingBackgroundImage","Get","MgOrganizationBrandingBackgroundImage","Organization[OrganizationId].Branding.BackgroundImage","False","GetMgOrganizationBrandingBackgroundImage.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingBannerLogo","Get","MgOrganizationBrandingBannerLogo","Organization[OrganizationId].Branding.BannerLogo","False","GetMgOrganizationBrandingBannerLogo.g.cs" -"Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingCustomCSS","Get","MgOrganizationBrandingCustomCSS","Organization[OrganizationId].Branding.CustomCSS","False","GetMgOrganizationBrandingCustomCSS.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingCustomCss","Get","MgOrganizationBrandingCustomCss","Organization[OrganizationId].Branding.CustomCSS","False","GetMgOrganizationBrandingCustomCss.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingFavicon","Get","MgOrganizationBrandingFavicon","Organization[OrganizationId].Branding.Favicon","False","GetMgOrganizationBrandingFavicon.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingHeaderLogo","Get","MgOrganizationBrandingHeaderLogo","Organization[OrganizationId].Branding.HeaderLogo","False","GetMgOrganizationBrandingHeaderLogo.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalization","Get","MgOrganizationBrandingLocalization","(dispatcher)","False","GetMgOrganizationBrandingLocalization.g.cs" @@ -5093,7 +5024,7 @@ "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationBackgroundImage","Get","MgOrganizationBrandingLocalizationBackgroundImage","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].BackgroundImage","False","GetMgOrganizationBrandingLocalizationBackgroundImage.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationBannerLogo","Get","MgOrganizationBrandingLocalizationBannerLogo","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].BannerLogo","False","GetMgOrganizationBrandingLocalizationBannerLogo.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationCount","Get","MgOrganizationBrandingLocalizationCount","Organization[OrganizationId].Branding.Localizations.Count","False","GetMgOrganizationBrandingLocalizationCount.g.cs" -"Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationCustomCSS","Get","MgOrganizationBrandingLocalizationCustomCSS","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].CustomCSS","False","GetMgOrganizationBrandingLocalizationCustomCSS.g.cs" +"Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationCustomCss","Get","MgOrganizationBrandingLocalizationCustomCss","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].CustomCSS","False","GetMgOrganizationBrandingLocalizationCustomCss.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationFavicon","Get","MgOrganizationBrandingLocalizationFavicon","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].Favicon","False","GetMgOrganizationBrandingLocalizationFavicon.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationHeaderLogo","Get","MgOrganizationBrandingLocalizationHeaderLogo","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].HeaderLogo","False","GetMgOrganizationBrandingLocalizationHeaderLogo.g.cs" "Identity.DirectoryManagement","v1.0","Get-MgOrganizationBrandingLocalizationSquareLogo","Get","MgOrganizationBrandingLocalizationSquareLogo","Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].SquareLogo","False","GetMgOrganizationBrandingLocalizationSquareLogo.g.cs" @@ -5146,6 +5077,7 @@ "Identity.DirectoryManagement","v1.0","New-MgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority","New","MgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority","Directory.PublicKeyInfrastructure.CertificateBasedAuthConfigurations[CertificateBasedAuthPkiId].CertificateAuthorities","False","NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs" "Identity.DirectoryManagement","v1.0","New-MgDirectoryRecoveryJob","New","MgDirectoryRecoveryJob","Directory.Recovery.Jobs","False","NewMgDirectoryRecoveryJob.g.cs" "Identity.DirectoryManagement","v1.0","New-MgDirectoryRecoverySnapshot","New","MgDirectoryRecoverySnapshot","Directory.Recovery.Snapshots","False","NewMgDirectoryRecoverySnapshot.g.cs" +"Identity.DirectoryManagement","v1.0","New-MgDirectoryRemoteTenantGroup","New","MgDirectoryRemoteTenantGroup","Directory.RemoteTenantGroups","False","NewMgDirectoryRemoteTenantGroup.g.cs" "Identity.DirectoryManagement","v1.0","New-MgDirectoryRole","New","MgDirectoryRole","DirectoryRoles","False","NewMgDirectoryRole.g.cs" "Identity.DirectoryManagement","v1.0","New-MgDirectoryRoleMemberByRef","New","MgDirectoryRoleMemberByRef","DirectoryRoles[DirectoryRoleId].Members.Ref","False","NewMgDirectoryRoleMemberByRef.g.cs" "Identity.DirectoryManagement","v1.0","New-MgDirectoryRoleScopedMember","New","MgDirectoryRoleScopedMember","DirectoryRoles[DirectoryRoleId].ScopedMembers","False","NewMgDirectoryRoleScopedMember.g.cs" @@ -5188,6 +5120,7 @@ "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRecovery","Remove","MgDirectoryRecovery","Directory.Recovery","False","RemoveMgDirectoryRecovery.g.cs" "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRecoveryJob","Remove","MgDirectoryRecoveryJob","Directory.Recovery.Jobs[RecoveryJobBaseId]","False","RemoveMgDirectoryRecoveryJob.g.cs" "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRecoverySnapshot","Remove","MgDirectoryRecoverySnapshot","Directory.Recovery.Snapshots[SnapshotId]","False","RemoveMgDirectoryRecoverySnapshot.g.cs" +"Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRemoteTenantGroup","Remove","MgDirectoryRemoteTenantGroup","Directory.RemoteTenantGroups[RemoteTenantGroupId]","False","RemoveMgDirectoryRemoteTenantGroup.g.cs" "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRole","Remove","MgDirectoryRole","DirectoryRoles[DirectoryRoleId]","False","RemoveMgDirectoryRole.g.cs" "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRoleMemberDirectoryObjectByRef","Remove","MgDirectoryRoleMemberDirectoryObjectByRef","DirectoryRoles[DirectoryRoleId].Members[DirectoryObjectId].Ref","False","RemoveMgDirectoryRoleMemberDirectoryObjectByRef.g.cs" "Identity.DirectoryManagement","v1.0","Remove-MgDirectoryRoleScopedMember","Remove","MgDirectoryRoleScopedMember","DirectoryRoles[DirectoryRoleId].ScopedMembers[ScopedRoleMembershipId]","False","RemoveMgDirectoryRoleScopedMember.g.cs" @@ -5252,6 +5185,7 @@ "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRecovery","Update","MgDirectoryRecovery","Directory.Recovery","False","UpdateMgDirectoryRecovery.g.cs" "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRecoveryJob","Update","MgDirectoryRecoveryJob","Directory.Recovery.Jobs[RecoveryJobBaseId]","False","UpdateMgDirectoryRecoveryJob.g.cs" "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRecoverySnapshot","Update","MgDirectoryRecoverySnapshot","Directory.Recovery.Snapshots[SnapshotId]","False","UpdateMgDirectoryRecoverySnapshot.g.cs" +"Identity.DirectoryManagement","v1.0","Update-MgDirectoryRemoteTenantGroup","Update","MgDirectoryRemoteTenantGroup","Directory.RemoteTenantGroups[RemoteTenantGroupId]","False","UpdateMgDirectoryRemoteTenantGroup.g.cs" "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRole","Update","MgDirectoryRole","DirectoryRoles[DirectoryRoleId]","False","UpdateMgDirectoryRole.g.cs" "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRoleScopedMember","Update","MgDirectoryRoleScopedMember","DirectoryRoles[DirectoryRoleId].ScopedMembers[ScopedRoleMembershipId]","False","UpdateMgDirectoryRoleScopedMember.g.cs" "Identity.DirectoryManagement","v1.0","Update-MgDirectoryRoleTemplate","Update","MgDirectoryRoleTemplate","DirectoryRoleTemplates[DirectoryRoleTemplateId]","False","UpdateMgDirectoryRoleTemplate.g.cs" @@ -5629,6 +5563,85 @@ "Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get","Get","MgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances[AccessReviewHistoryInstanceId]","True","GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List","Get","MgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances","True","GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount","Get","MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances.Count","False","GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnified","Get","MgIdentityGovernanceAccessReviewUnified","IdentityGovernance.AccessReviews.Unified","False","GetMgIdentityGovernanceAccessReviewUnified.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecision","Get","MgIdentityGovernanceAccessReviewUnifiedDecision","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecision_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDecision_Get","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDecision_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecision_List","Get","MgIdentityGovernanceAccessReviewUnifiedDecision_List","IdentityGovernance.AccessReviews.Unified.Decisions","True","GetMgIdentityGovernanceAccessReviewUnifiedDecision_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionCount","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionCount","IdentityGovernance.AccessReviews.Unified.Decisions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDecisionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights","True","GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount","Get","MgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinition","Get","MgIdentityGovernanceAccessReviewUnifiedDefinition","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinition_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinition_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinition_List","IdentityGovernance.AccessReviews.Unified.Definitions","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinition_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionCount","IdentityGovernance.AccessReviews.Unified.Definitions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights","True","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstance","Get","MgIdentityGovernanceAccessReviewUnifiedInstance","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstance_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstance_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstance_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstance_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstance_List","IdentityGovernance.AccessReviews.Unified.Instances","True","GetMgIdentityGovernanceAccessReviewUnifiedInstance_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceCount","IdentityGovernance.AccessReviews.Unified.Instances.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStage","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStage_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights","True","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn","Get","MgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentRequest","Get","MgIdentityGovernanceAppConsentRequest","(dispatcher)","False","GetMgIdentityGovernanceAppConsentRequest.g.cs" @@ -5644,12 +5657,309 @@ "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List","Get","MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages","True","GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount","Get","MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages.Count","False","GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceAppConsentRequestUserConsentRequestCount","Get","MgIdentityGovernanceAppConsentRequestUserConsentRequestCount","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests.Count","False","GetMgIdentityGovernanceAppConsentRequestUserConsentRequestCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalog","Get","MgIdentityGovernanceCatalog","(dispatcher)","False","GetMgIdentityGovernanceCatalog.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalog_Get","Get","MgIdentityGovernanceCatalog_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId]","True","GetMgIdentityGovernanceCatalog_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalog_List","Get","MgIdentityGovernanceCatalog_List","IdentityGovernance.Catalogs","True","GetMgIdentityGovernanceCatalog_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogAccessPackage","Get","MgIdentityGovernanceCatalogAccessPackage","(dispatcher)","False","GetMgIdentityGovernanceCatalogAccessPackage.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogAccessPackage_Get","Get","MgIdentityGovernanceCatalogAccessPackage_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages[AccessPackageId]","True","GetMgIdentityGovernanceCatalogAccessPackage_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogAccessPackage_List","Get","MgIdentityGovernanceCatalogAccessPackage_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages","True","GetMgIdentityGovernanceCatalogAccessPackage_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogAccessPackageCount","Get","MgIdentityGovernanceCatalogAccessPackageCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages.Count","False","GetMgIdentityGovernanceCatalogAccessPackageCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogCount","Get","MgIdentityGovernanceCatalogCount","IdentityGovernance.Catalogs.Count","False","GetMgIdentityGovernanceCatalogCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogCustomWorkflowExtension","Get","MgIdentityGovernanceCatalogCustomWorkflowExtension","(dispatcher)","False","GetMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_Get","Get","MgIdentityGovernanceCatalogCustomWorkflowExtension_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId]","True","GetMgIdentityGovernanceCatalogCustomWorkflowExtension_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_List","Get","MgIdentityGovernanceCatalogCustomWorkflowExtension_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions","True","GetMgIdentityGovernanceCatalogCustomWorkflowExtension_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogCustomWorkflowExtensionCount","Get","MgIdentityGovernanceCatalogCustomWorkflowExtensionCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions.Count","False","GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResource","Get","MgIdentityGovernanceCatalogResource","(dispatcher)","False","GetMgIdentityGovernanceCatalogResource.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResource_Get","Get","MgIdentityGovernanceCatalogResource_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId]","True","GetMgIdentityGovernanceCatalogResource_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResource_List","Get","MgIdentityGovernanceCatalogResource_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources","True","GetMgIdentityGovernanceCatalogResource_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceCount","Get","MgIdentityGovernanceCatalogResourceCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources.Count","False","GetMgIdentityGovernanceCatalogResourceCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceEnvironment","Get","MgIdentityGovernanceCatalogResourceEnvironment","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].Environment","False","GetMgIdentityGovernanceCatalogResourceEnvironment.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceCatalogResourceExternalOriginResourceConnector","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector","False","GetMgIdentityGovernanceCatalogResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceRole","Get","MgIdentityGovernanceCatalogResourceRoleResourceRole","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_Get","Get","MgIdentityGovernanceCatalogResourceRoleResourceRole_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1]","True","GetMgIdentityGovernanceCatalogResourceRoleResourceRole_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_List","Get","MgIdentityGovernanceCatalogResourceRoleResourceRole_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles","True","GetMgIdentityGovernanceCatalogResourceRoleResourceRole_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceRoleCount","Get","MgIdentityGovernanceCatalogResourceRoleResourceRoleCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles.Count","False","GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","Get","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get","Get","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1]","True","GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List","Get","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles","True","GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount","Get","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles.Count","False","GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","Get","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get","Get","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1]","True","GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List","Get","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes","True","GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount","Get","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes.Count","False","GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceScope","Get","MgIdentityGovernanceCatalogResourceScopeResourceScope","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_Get","Get","MgIdentityGovernanceCatalogResourceScopeResourceScope_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1]","True","GetMgIdentityGovernanceCatalogResourceScopeResourceScope_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_List","Get","MgIdentityGovernanceCatalogResourceScopeResourceScope_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes","True","GetMgIdentityGovernanceCatalogResourceScopeResourceScope_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceScopeResourceScopeCount","Get","MgIdentityGovernanceCatalogResourceScopeResourceScopeCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes.Count","False","GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSession","Get","MgIdentityGovernanceCatalogResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSession_Get","Get","MgIdentityGovernanceCatalogResourceUploadSession_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceCatalogResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSession_List","Get","MgIdentityGovernanceCatalogResourceUploadSession_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions","True","GetMgIdentityGovernanceCatalogResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionCount","Get","MgIdentityGovernanceCatalogResourceUploadSessionCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.Count","False","GetMgIdentityGovernanceCatalogResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionFile","Get","MgIdentityGovernanceCatalogResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceCatalogResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_Get","Get","MgIdentityGovernanceCatalogResourceUploadSessionFile_Get","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceCatalogResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_List","Get","MgIdentityGovernanceCatalogResourceUploadSessionFile_List","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceCatalogResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionFileContent","Get","MgIdentityGovernanceCatalogResourceUploadSessionFileContent","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceCatalogResourceUploadSessionFileCount","Get","MgIdentityGovernanceCatalogResourceUploadSessionFileCount","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceCatalogResourceUploadSessionFileCount.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn","Get","MgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn","Get","MgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn","Get","MgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId","Get","MgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn","Get","MgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn","Get","MgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get","Get","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId]","True","GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List","Get","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors","True","GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount","Get","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count","False","GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSession","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_Get","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSession_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","True","GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_List","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSession_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions","True","GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionCount","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile","(dispatcher)","False","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId]","True","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files","True","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount","Get","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count","False","GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflow","Get","MgIdentityGovernanceLifecycleWorkflow","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflow.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflow_Get","Get","MgIdentityGovernanceLifecycleWorkflow_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId]","True","GetMgIdentityGovernanceLifecycleWorkflow_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflow_List","Get","MgIdentityGovernanceLifecycleWorkflow_List","IdentityGovernance.LifecycleWorkflows.Workflows","True","GetMgIdentityGovernanceLifecycleWorkflow_List.g.cs" @@ -5693,8 +6003,44 @@ "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId1]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks[TaskId]","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List","Get","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks","True","GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List.g.cs" @@ -5734,6 +6080,24 @@ "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].ReprocessedRuns[RunId1]","True","GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List","Get","MgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].ReprocessedRuns","True","GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount","Get","MgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].ReprocessedRuns.Count","False","GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId1]","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask","Get","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task","False","GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get.g.cs" @@ -5761,6 +6125,24 @@ "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].TaskProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSetting","Get","MgIdentityGovernanceLifecycleWorkflowSetting","IdentityGovernance.LifecycleWorkflows.Settings","False","GetMgIdentityGovernanceLifecycleWorkflowSetting.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId]","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId]","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults","True","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs" +"Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask","Get","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task","False","GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowTask","Get","MgIdentityGovernanceLifecycleWorkflowTask","(dispatcher)","False","GetMgIdentityGovernanceLifecycleWorkflowTask.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowTask_Get","Get","MgIdentityGovernanceLifecycleWorkflowTask_Get","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId]","True","GetMgIdentityGovernanceLifecycleWorkflowTask_Get.g.cs" "Identity.Governance","v1.0","Get-MgIdentityGovernanceLifecycleWorkflowTask_List","Get","MgIdentityGovernanceLifecycleWorkflowTask_List","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks","True","GetMgIdentityGovernanceLifecycleWorkflowTask_List.g.cs" @@ -6122,12 +6504,62 @@ "Identity.Governance","v1.0","Get-MgUserAgreementAcceptanceCount","Get","MgUserAgreementAcceptanceCount","Users[UserId].AgreementAcceptances.Count","False","GetMgUserAgreementAcceptanceCount.g.cs" "Identity.Governance","v1.0","Invoke-MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation","Invoke","MgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].AcceptRecommendations","False","InvokeMgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.g.cs" "Identity.Governance","v1.0","Invoke-MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision","Invoke","MgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].BatchRecordDecisions","False","InvokeMgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations","Invoke","MgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations","False","InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions","Invoke","MgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions","False","InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].AcceptRecommendations","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ApplyDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].BatchRecordDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ResetDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].SendReminder","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Stop","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stop","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedDefinitionStop","Invoke","MgIdentityGovernanceAccessReviewUnifiedDefinitionStop","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Stop","False","InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionStop.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].AcceptRecommendations","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ApplyDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].BatchRecordDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ResetDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].SendReminder","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceStageStop","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceStageStop","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Stop","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageStop.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceAccessReviewUnifiedInstanceStop","Invoke","MgIdentityGovernanceAccessReviewUnifiedInstanceStop","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stop","False","InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStop.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceCatalogResourceRefresh","Invoke","MgIdentityGovernanceCatalogResourceRefresh","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].Refresh","False","InvokeMgIdentityGovernanceCatalogResourceRefresh.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceCatalogResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceCatalogResourceUploadSessionUploadFile","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceCatalogResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile","Invoke","MgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile","False","InvokeMgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowActivate","Invoke","MgIdentityGovernanceLifecycleWorkflowActivate","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivate","False","InvokeMgIdentityGovernanceLifecycleWorkflowActivate.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowActivateAndWait","Invoke","MgIdentityGovernanceLifecycleWorkflowActivateAndWait","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateAndWait","False","InvokeMgIdentityGovernanceLifecycleWorkflowActivateAndWait.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowActivateWithScope","Invoke","MgIdentityGovernanceLifecycleWorkflowActivateWithScope","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateWithScope","False","InvokeMgIdentityGovernanceLifecycleWorkflowActivateWithScope.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowCancelProcessing","Invoke","MgIdentityGovernanceLifecycleWorkflowCancelProcessing","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceCancelProcessing","False","InvokeMgIdentityGovernanceLifecycleWorkflowCancelProcessing.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowClearQuarantine","Invoke","MgIdentityGovernanceLifecycleWorkflowClearQuarantine","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceClearQuarantine","False","InvokeMgIdentityGovernanceLifecycleWorkflowClearQuarantine.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowCreateNewVersion","Invoke","MgIdentityGovernanceLifecycleWorkflowCreateNewVersion","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceCreateNewVersion","False","InvokeMgIdentityGovernanceLifecycleWorkflowCreateNewVersion.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivate","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateAndWait","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateWithScope","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceCancelProcessing","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceClearQuarantine","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine.g.cs" @@ -6135,8 +6567,10 @@ "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures","(dispatcher)","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernancePreviewWorkflow","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceRestore","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].TaskReports[TaskReportId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].UserProcessingResults[UserProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume.g.cs" @@ -6144,8 +6578,10 @@ "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures","Invoke","MgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures","(dispatcher)","False","InvokeMgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowPreviewWorkflow","Invoke","MgIdentityGovernanceLifecycleWorkflowPreviewWorkflow","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernancePreviewWorkflow","False","InvokeMgIdentityGovernanceLifecycleWorkflowPreviewWorkflow.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowRestore","Invoke","MgIdentityGovernanceLifecycleWorkflowRestore","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceRestore","False","InvokeMgIdentityGovernanceLifecycleWorkflowRestore.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs" +"Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].TaskReports[TaskReportId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume.g.cs" "Identity.Governance","v1.0","Invoke-MgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume","Invoke","MgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume","IdentityGovernance.LifecycleWorkflows.WorkflowTemplates[WorkflowTemplateId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume","False","InvokeMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume.g.cs" @@ -6226,9 +6662,60 @@ "Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewHistoryDefinition","New","MgIdentityGovernanceAccessReviewHistoryDefinition","IdentityGovernance.AccessReviews.HistoryDefinitions","False","NewMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","New","MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances","False","NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri","New","MgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances[AccessReviewHistoryInstanceId].GenerateDownloadUri","False","NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDecision","New","MgIdentityGovernanceAccessReviewUnifiedDecision","IdentityGovernance.AccessReviews.Unified.Decisions","False","NewMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","New","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights","False","NewMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinition","New","MgIdentityGovernanceAccessReviewUnifiedDefinition","IdentityGovernance.AccessReviews.Unified.Definitions","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","New","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights","False","NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstance","New","MgIdentityGovernanceAccessReviewUnifiedInstance","IdentityGovernance.AccessReviews.Unified.Instances","False","NewMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","New","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","New","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","New","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceStage","New","MgIdentityGovernanceAccessReviewUnifiedInstanceStage","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","New","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","New","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights","False","NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceAppConsentRequest","New","MgIdentityGovernanceAppConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests","False","NewMgIdentityGovernanceAppConsentRequest.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceAppConsentRequestUserConsentRequest","New","MgIdentityGovernanceAppConsentRequestUserConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests","False","NewMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","New","MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages","False","NewMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalog","New","MgIdentityGovernanceCatalog","IdentityGovernance.Catalogs","False","NewMgIdentityGovernanceCatalog.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogCustomWorkflowExtension","New","MgIdentityGovernanceCatalogCustomWorkflowExtension","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions","False","NewMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResource","New","MgIdentityGovernanceCatalogResource","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources","False","NewMgIdentityGovernanceCatalogResource.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResourceRoleResourceRole","New","MgIdentityGovernanceCatalogResourceRoleResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles","False","NewMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","New","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles","False","NewMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","New","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes","False","NewMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResourceScopeResourceScope","New","MgIdentityGovernanceCatalogResourceScopeResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes","False","NewMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceCatalogResourceUploadSession","New","MgIdentityGovernanceCatalogResourceUploadSession","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions","False","NewMgIdentityGovernanceCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","New","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors","False","NewMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","New-MgIdentityGovernanceEntitlementManagementResourceUploadSession","New","MgIdentityGovernanceEntitlementManagementResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions","False","NewMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceLifecycleWorkflow","New","MgIdentityGovernanceLifecycleWorkflow","IdentityGovernance.LifecycleWorkflows.Workflows","False","NewMgIdentityGovernanceLifecycleWorkflow.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","New","MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions","False","NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs" "Identity.Governance","v1.0","New-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","New","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks","False","NewMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs" @@ -6372,10 +6859,88 @@ "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight","Remove","MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewHistoryDefinition","Remove","MgIdentityGovernanceAccessReviewHistoryDefinition","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId]","False","RemoveMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","Remove","MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances[AccessReviewHistoryInstanceId]","False","RemoveMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnified","Remove","MgIdentityGovernanceAccessReviewUnified","IdentityGovernance.AccessReviews.Unified","False","RemoveMgIdentityGovernanceAccessReviewUnified.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDecision","Remove","MgIdentityGovernanceAccessReviewUnifiedDecision","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","Remove","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinition","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinition","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","Remove","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstance","Remove","MgIdentityGovernanceAccessReviewUnifiedInstance","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceStage","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceStage","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","Remove","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAppConsentRequest","Remove","MgIdentityGovernanceAppConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId]","False","RemoveMgIdentityGovernanceAppConsentRequest.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequest","Remove","MgIdentityGovernanceAppConsentRequestUserConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId]","False","RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApproval","Remove","MgIdentityGovernanceAppConsentRequestUserConsentRequestApproval","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval","False","RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","Remove","MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages[ApprovalStageId]","False","RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalog","Remove","MgIdentityGovernanceCatalog","IdentityGovernance.Catalogs[AccessPackageCatalogId]","False","RemoveMgIdentityGovernanceCatalog.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogCustomWorkflowExtension","Remove","MgIdentityGovernanceCatalogCustomWorkflowExtension","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId]","False","RemoveMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResource","Remove","MgIdentityGovernanceCatalogResource","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId]","False","RemoveMgIdentityGovernanceCatalogResource.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceRoleResourceRole","Remove","MgIdentityGovernanceCatalogResourceRoleResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1]","False","RemoveMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","Remove","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1]","False","RemoveMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","Remove","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1]","False","RemoveMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceScopeResourceScope","Remove","MgIdentityGovernanceCatalogResourceScopeResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1]","False","RemoveMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceUploadSession","Remove","MgIdentityGovernanceCatalogResourceUploadSession","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceCatalogResourceUploadSessionFileContent","Remove","MgIdentityGovernanceCatalogResourceUploadSessionFileContent","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","Remove","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId]","False","RemoveMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceUploadSession","Remove","MgIdentityGovernanceEntitlementManagementResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Remove-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent","Remove","MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content","False","RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceLifecycleWorkflow","Remove","MgIdentityGovernanceLifecycleWorkflow","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId]","False","RemoveMgIdentityGovernanceLifecycleWorkflow.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","Remove","MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId]","False","RemoveMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs" "Identity.Governance","v1.0","Remove-MgIdentityGovernanceLifecycleWorkflowDeletedItem","Remove","MgIdentityGovernanceLifecycleWorkflowDeletedItem","IdentityGovernance.LifecycleWorkflows.DeletedItems","False","RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs" @@ -6538,21 +7103,77 @@ "Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight","Update","MgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewHistoryDefinition","Update","MgIdentityGovernanceAccessReviewHistoryDefinition","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId]","False","UpdateMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","Update","MgIdentityGovernanceAccessReviewHistoryDefinitionInstance","IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances[AccessReviewHistoryInstanceId]","False","UpdateMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnified","Update","MgIdentityGovernanceAccessReviewUnified","IdentityGovernance.AccessReviews.Unified","False","UpdateMgIdentityGovernanceAccessReviewUnified.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDecision","Update","MgIdentityGovernanceAccessReviewUnifiedDecision","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","Update","MgIdentityGovernanceAccessReviewUnifiedDecisionInsight","IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinition","Update","MgIdentityGovernanceAccessReviewUnifiedDefinition","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","Update","MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstance","Update","MgIdentityGovernanceAccessReviewUnifiedInstance","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceStage","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceStage","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","Update","MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight","IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId]","False","UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAppConsentRequest","Update","MgIdentityGovernanceAppConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId]","False","UpdateMgIdentityGovernanceAppConsentRequest.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAppConsentRequestUserConsentRequest","Update","MgIdentityGovernanceAppConsentRequestUserConsentRequest","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId]","False","UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApproval","Update","MgIdentityGovernanceAppConsentRequestUserConsentRequestApproval","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval","False","UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","Update","MgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage","IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages[ApprovalStageId]","False","UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalog","Update","MgIdentityGovernanceCatalog","IdentityGovernance.Catalogs[AccessPackageCatalogId]","False","UpdateMgIdentityGovernanceCatalog.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogCustomWorkflowExtension","Update","MgIdentityGovernanceCatalogCustomWorkflowExtension","IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId]","False","UpdateMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResource","Update","MgIdentityGovernanceCatalogResource","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId]","False","UpdateMgIdentityGovernanceCatalogResource.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResourceRoleResourceRole","Update","MgIdentityGovernanceCatalogResourceRoleResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1]","False","UpdateMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","Update","MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1]","False","UpdateMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","Update","MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1]","False","UpdateMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResourceScopeResourceScope","Update","MgIdentityGovernanceCatalogResourceScopeResourceScope","IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1]","False","UpdateMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceCatalogResourceUploadSession","Update","MgIdentityGovernanceCatalogResourceUploadSession","IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","Update","MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector","IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId]","False","UpdateMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceEntitlementManagementResourceUploadSession","Update","MgIdentityGovernanceEntitlementManagementResourceUploadSession","IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId]","False","UpdateMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflow","Update","MgIdentityGovernanceLifecycleWorkflow","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId]","False","UpdateMgIdentityGovernanceLifecycleWorkflow.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].CreatedBy.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","Update","MgIdentityGovernanceLifecycleWorkflowCustomTaskExtension","IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId]","False","UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting","IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId].CreatedBy.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting","IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId].LastModifiedBy.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","Update","MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask","IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks[TaskId]","False","UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowInsight","Update","MgIdentityGovernanceLifecycleWorkflowInsight","IdentityGovernance.LifecycleWorkflows.Insights","False","UpdateMgIdentityGovernanceLifecycleWorkflowInsight.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].LastModifiedBy.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowSetting","Update","MgIdentityGovernanceLifecycleWorkflowSetting","IdentityGovernance.LifecycleWorkflows.Settings","False","UpdateMgIdentityGovernanceLifecycleWorkflowSetting.g.cs" +"Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowTask","Update","MgIdentityGovernanceLifecycleWorkflowTask","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId]","False","UpdateMgIdentityGovernanceLifecycleWorkflowTask.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs" "Identity.Governance","v1.0","Update-MgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting","Update","MgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting","IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].TaskReports[TaskReportId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings","False","UpdateMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs" @@ -6857,11 +7478,20 @@ "Identity.SignIns","v1.0","Get-MgPolicyConditionalAccessPolicyCount","Get","MgPolicyConditionalAccessPolicyCount","Policies.ConditionalAccessPolicies.Count","False","GetMgPolicyConditionalAccessPolicyCount.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicy","Get","MgPolicyCrossTenantAccessPolicy","Policies.CrossTenantAccessPolicy","False","GetMgPolicyCrossTenantAccessPolicy.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyDefault","Get","MgPolicyCrossTenantAccessPolicyDefault","Policies.CrossTenantAccessPolicy.Default","False","GetMgPolicyCrossTenantAccessPolicyDefault.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Get","MgPolicyCrossTenantAccessPolicyDefaultM365Capability","(dispatcher)","False","GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get","Get","MgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get","Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName]","True","GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_List","Get","MgPolicyCrossTenantAccessPolicyDefaultM365Capability_List","Policies.CrossTenantAccessPolicy.Default.M365Capabilities","True","GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_List.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount","Get","MgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount","Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count","False","GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartner","Get","MgPolicyCrossTenantAccessPolicyPartner","(dispatcher)","False","GetMgPolicyCrossTenantAccessPolicyPartner.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartner_Get","Get","MgPolicyCrossTenantAccessPolicyPartner_Get","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId]","True","GetMgPolicyCrossTenantAccessPolicyPartner_Get.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartner_List","Get","MgPolicyCrossTenantAccessPolicyPartner_List","Policies.CrossTenantAccessPolicy.Partners","True","GetMgPolicyCrossTenantAccessPolicyPartner_List.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerCount","Get","MgPolicyCrossTenantAccessPolicyPartnerCount","Policies.CrossTenantAccessPolicy.Partners.Count","False","GetMgPolicyCrossTenantAccessPolicyPartnerCount.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization","Get","MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].IdentitySynchronization","False","GetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Get","MgPolicyCrossTenantAccessPolicyPartnerM365Capability","(dispatcher)","False","GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get","Get","MgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName]","True","GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_List","Get","MgPolicyCrossTenantAccessPolicyPartnerM365Capability_List","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities","True","GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_List.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount","Get","MgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities.Count","False","GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount.g.cs" +"Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Get","MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints","False","GetMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyTemplate","Get","MgPolicyCrossTenantAccessPolicyTemplate","Policies.CrossTenantAccessPolicy.Templates","False","GetMgPolicyCrossTenantAccessPolicyTemplate.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Get","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization","False","GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs" "Identity.SignIns","v1.0","Get-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Get","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration","False","GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs" @@ -7015,6 +7645,8 @@ "Identity.SignIns","v1.0","Invoke-MgCreationUserAuthenticationFido2MethodOption","Invoke","MgCreationUserAuthenticationFido2MethodOption","Users[UserId].Authentication.Fido2Methods.CreationOptions","False","InvokeMgCreationUserAuthenticationFido2MethodOption.g.cs" "Identity.SignIns","v1.0","Invoke-MgDismissRiskyServicePrincipal","Invoke","MgDismissRiskyServicePrincipal","IdentityProtection.RiskyServicePrincipals.Dismiss","False","InvokeMgDismissRiskyServicePrincipal.g.cs" "Identity.SignIns","v1.0","Invoke-MgDismissRiskyUser","Invoke","MgDismissRiskyUser","IdentityProtection.RiskyUsers.Dismiss","False","InvokeMgDismissRiskyUser.g.cs" +"Identity.SignIns","v1.0","Invoke-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings","Invoke","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings","False","InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings.g.cs" +"Identity.SignIns","v1.0","Invoke-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings","Invoke","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings","False","InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings.g.cs" "Identity.SignIns","v1.0","Invoke-MgUploadIdentityApiConnectorClientCertificate","Invoke","MgUploadIdentityApiConnectorClientCertificate","Identity.ApiConnectors[IdentityApiConnectorId].UploadClientCertificate","False","InvokeMgUploadIdentityApiConnectorClientCertificate.g.cs" "Identity.SignIns","v1.0","Invoke-MgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate","Invoke","MgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate","Identity.B2xUserFlows[B2xIdentityUserFlowId].ApiConnectorConfiguration.PostAttributeCollection.UploadClientCertificate","False","InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate.g.cs" "Identity.SignIns","v1.0","Invoke-MgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate","Invoke","MgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate","Identity.B2xUserFlows[B2xIdentityUserFlowId].ApiConnectorConfiguration.PostFederationSignup.UploadClientCertificate","False","InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate.g.cs" @@ -7058,7 +7690,9 @@ "Identity.SignIns","v1.0","New-MgPolicyAuthenticationStrengthPolicy","New","MgPolicyAuthenticationStrengthPolicy","Policies.AuthenticationStrengthPolicies","False","NewMgPolicyAuthenticationStrengthPolicy.g.cs" "Identity.SignIns","v1.0","New-MgPolicyAuthenticationStrengthPolicyCombinationConfiguration","New","MgPolicyAuthenticationStrengthPolicyCombinationConfiguration","Policies.AuthenticationStrengthPolicies[AuthenticationStrengthPolicyId].CombinationConfigurations","False","NewMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs" "Identity.SignIns","v1.0","New-MgPolicyClaimMappingPolicy","New","MgPolicyClaimMappingPolicy","Policies.ClaimsMappingPolicies","False","NewMgPolicyClaimMappingPolicy.g.cs" +"Identity.SignIns","v1.0","New-MgPolicyCrossTenantAccessPolicyDefaultM365Capability","New","MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Policies.CrossTenantAccessPolicy.Default.M365Capabilities","False","NewMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs" "Identity.SignIns","v1.0","New-MgPolicyCrossTenantAccessPolicyPartner","New","MgPolicyCrossTenantAccessPolicyPartner","Policies.CrossTenantAccessPolicy.Partners","False","NewMgPolicyCrossTenantAccessPolicyPartner.g.cs" +"Identity.SignIns","v1.0","New-MgPolicyCrossTenantAccessPolicyPartnerM365Capability","New","MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities","False","NewMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs" "Identity.SignIns","v1.0","New-MgPolicyFeatureRolloutPolicy","New","MgPolicyFeatureRolloutPolicy","Policies.FeatureRolloutPolicies","False","NewMgPolicyFeatureRolloutPolicy.g.cs" "Identity.SignIns","v1.0","New-MgPolicyFeatureRolloutPolicyApplyTo","New","MgPolicyFeatureRolloutPolicyApplyTo","Policies.FeatureRolloutPolicies[FeatureRolloutPolicyId].AppliesTo","False","NewMgPolicyFeatureRolloutPolicyApplyTo.g.cs" "Identity.SignIns","v1.0","New-MgPolicyFeatureRolloutPolicyApplyToByRef","New","MgPolicyFeatureRolloutPolicyApplyToByRef","Policies.FeatureRolloutPolicies[FeatureRolloutPolicyId].AppliesTo.Ref","False","NewMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs" @@ -7134,8 +7768,11 @@ "Identity.SignIns","v1.0","Remove-MgPolicyClaimMappingPolicy","Remove","MgPolicyClaimMappingPolicy","Policies.ClaimsMappingPolicies[ClaimsMappingPolicyId]","False","RemoveMgPolicyClaimMappingPolicy.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicy","Remove","MgPolicyCrossTenantAccessPolicy","Policies.CrossTenantAccessPolicy","False","RemoveMgPolicyCrossTenantAccessPolicy.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyDefault","Remove","MgPolicyCrossTenantAccessPolicyDefault","Policies.CrossTenantAccessPolicy.Default","False","RemoveMgPolicyCrossTenantAccessPolicyDefault.g.cs" +"Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Remove","MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName]","False","RemoveMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyPartner","Remove","MgPolicyCrossTenantAccessPolicyPartner","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId]","False","RemoveMgPolicyCrossTenantAccessPolicyPartner.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization","Remove","MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].IdentitySynchronization","False","RemoveMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs" +"Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Remove","MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName]","False","RemoveMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs" +"Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Remove","MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints","False","RemoveMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyTemplate","Remove","MgPolicyCrossTenantAccessPolicyTemplate","Policies.CrossTenantAccessPolicy.Templates","False","RemoveMgPolicyCrossTenantAccessPolicyTemplate.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Remove","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization","False","RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs" "Identity.SignIns","v1.0","Remove-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Remove","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration","False","RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs" @@ -7230,7 +7867,10 @@ "Identity.SignIns","v1.0","Update-MgPolicyClaimMappingPolicy","Update","MgPolicyClaimMappingPolicy","Policies.ClaimsMappingPolicies[ClaimsMappingPolicyId]","False","UpdateMgPolicyClaimMappingPolicy.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicy","Update","MgPolicyCrossTenantAccessPolicy","Policies.CrossTenantAccessPolicy","False","UpdateMgPolicyCrossTenantAccessPolicy.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyDefault","Update","MgPolicyCrossTenantAccessPolicyDefault","Policies.CrossTenantAccessPolicy.Default","False","UpdateMgPolicyCrossTenantAccessPolicyDefault.g.cs" +"Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Update","MgPolicyCrossTenantAccessPolicyDefaultM365Capability","Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName]","False","UpdateMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyPartner","Update","MgPolicyCrossTenantAccessPolicyPartner","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId]","False","UpdateMgPolicyCrossTenantAccessPolicyPartner.g.cs" +"Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Update","MgPolicyCrossTenantAccessPolicyPartnerM365Capability","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName]","False","UpdateMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs" +"Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Update","MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint","Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints","False","UpdateMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyTemplate","Update","MgPolicyCrossTenantAccessPolicyTemplate","Policies.CrossTenantAccessPolicy.Templates","False","UpdateMgPolicyCrossTenantAccessPolicyTemplate.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Update","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization","False","UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs" "Identity.SignIns","v1.0","Update-MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Update","MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration","Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration","False","UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs" @@ -8344,7 +8984,6 @@ "Security","v1.0","Get-MgSecurityAlertV2","Get","MgSecurityAlertV2","(dispatcher)","False","GetMgSecurityAlertV2.g.cs" "Security","v1.0","Get-MgSecurityAlertV2_Get","Get","MgSecurityAlertV2_Get","Security.Alerts_v2[AlertId]","True","GetMgSecurityAlertV2_Get.g.cs" "Security","v1.0","Get-MgSecurityAlertV2_List","Get","MgSecurityAlertV2_List","Security.Alerts_v2","True","GetMgSecurityAlertV2_List.g.cs" -"Security","v1.0","Get-MgSecurityAlertV2CommentCount","Get","MgSecurityAlertV2CommentCount","Security.Alerts_v2[AlertId].Comments.Count","False","GetMgSecurityAlertV2CommentCount.g.cs" "Security","v1.0","Get-MgSecurityAlertV2Count","Get","MgSecurityAlertV2Count","Security.Alerts_v2.Count","False","GetMgSecurityAlertV2Count.g.cs" "Security","v1.0","Get-MgSecurityAttackSimulation","Get","MgSecurityAttackSimulation","(dispatcher)","False","GetMgSecurityAttackSimulation.g.cs" "Security","v1.0","Get-MgSecurityAttackSimulation_Get","Get","MgSecurityAttackSimulation_Get","Security.AttackSimulation.Simulations[SimulationId]","True","GetMgSecurityAttackSimulation_Get.g.cs" @@ -8741,6 +9380,7 @@ "Security","v1.0","Get-MgSecurityTriggerTypeRetentionEventTypeCount","Get","MgSecurityTriggerTypeRetentionEventTypeCount","Security.TriggerTypes.RetentionEventTypes.Count","False","GetMgSecurityTriggerTypeRetentionEventTypeCount.g.cs" "Security","v1.0","Invoke-MgAndSecurityDataSecurityAndGovernanceSensitivityLabel","Invoke","MgAndSecurityDataSecurityAndGovernanceSensitivityLabel","Security.DataSecurityAndGovernance.SensitivityLabels.ComputeRightsAndInheritance","False","InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs" "Security","v1.0","Invoke-MgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel","Invoke","MgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel","Security.DataSecurityAndGovernance.SensitivityLabels[SensitivityLabelId].Sublabels.ComputeRightsAndInheritance","False","InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs" +"Security","v1.0","Invoke-MgCommentSecurityAlert","Invoke","MgCommentSecurityAlert","Security.Alerts_v2[AlertId].Comments.Count","False","InvokeMgCommentSecurityAlert.g.cs" "Security","v1.0","Invoke-MgComputeSecurityDataSecurityAndGovernanceProtectionScope","Invoke","MgComputeSecurityDataSecurityAndGovernanceProtectionScope","(dispatcher)","False","InvokeMgComputeSecurityDataSecurityAndGovernanceProtectionScope.g.cs" "Security","v1.0","Invoke-MgProcessSecurityDataSecurityAndGovernanceContentAsync","Invoke","MgProcessSecurityDataSecurityAndGovernanceContentAsync","(dispatcher)","False","InvokeMgProcessSecurityDataSecurityAndGovernanceContentAsync.g.cs" "Security","v1.0","Invoke-MgSecurityAlertV2MoveAlerts","Invoke","MgSecurityAlertV2MoveAlerts","Security.Alerts_v2.MicrosoftGraphSecurityMoveAlerts","False","InvokeMgSecurityAlertV2MoveAlerts.g.cs" @@ -9152,7 +9792,6 @@ "Sites","v1.0","Get-MgGroupSiteListItemCreatedByUserServiceProvisioningError","Get","MgGroupSiteListItemCreatedByUserServiceProvisioningError","Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.ServiceProvisioningErrors","False","GetMgGroupSiteListItemCreatedByUserServiceProvisioningError.g.cs" "Sites","v1.0","Get-MgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount","Get","MgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount","Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.ServiceProvisioningErrors.Count","False","GetMgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs" "Sites","v1.0","Get-MgGroupSiteListItemDelta","Get","MgGroupSiteListItemDelta","(dispatcher)","False","GetMgGroupSiteListItemDelta.g.cs" -"Sites","v1.0","Get-MgGroupSiteListItemDeltaWithToken","Get","MgGroupSiteListItemDeltaWithToken","(dispatcher)","False","GetMgGroupSiteListItemDeltaWithToken.g.cs" "Sites","v1.0","Get-MgGroupSiteListItemDocumentSetVersion","Get","MgGroupSiteListItemDocumentSetVersion","(dispatcher)","False","GetMgGroupSiteListItemDocumentSetVersion.g.cs" "Sites","v1.0","Get-MgGroupSiteListItemDocumentSetVersion_Get","Get","MgGroupSiteListItemDocumentSetVersion_Get","Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId]","True","GetMgGroupSiteListItemDocumentSetVersion_Get.g.cs" "Sites","v1.0","Get-MgGroupSiteListItemDocumentSetVersion_List","Get","MgGroupSiteListItemDocumentSetVersion_List","Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions","True","GetMgGroupSiteListItemDocumentSetVersion_List.g.cs" @@ -9586,7 +10225,6 @@ "Sites","v1.0","Get-MgSiteListItemCreatedByUserServiceProvisioningError","Get","MgSiteListItemCreatedByUserServiceProvisioningError","Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.ServiceProvisioningErrors","False","GetMgSiteListItemCreatedByUserServiceProvisioningError.g.cs" "Sites","v1.0","Get-MgSiteListItemCreatedByUserServiceProvisioningErrorCount","Get","MgSiteListItemCreatedByUserServiceProvisioningErrorCount","Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.ServiceProvisioningErrors.Count","False","GetMgSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs" "Sites","v1.0","Get-MgSiteListItemDelta","Get","MgSiteListItemDelta","(dispatcher)","False","GetMgSiteListItemDelta.g.cs" -"Sites","v1.0","Get-MgSiteListItemDeltaWithToken","Get","MgSiteListItemDeltaWithToken","(dispatcher)","False","GetMgSiteListItemDeltaWithToken.g.cs" "Sites","v1.0","Get-MgSiteListItemDocumentSetVersion","Get","MgSiteListItemDocumentSetVersion","(dispatcher)","False","GetMgSiteListItemDocumentSetVersion.g.cs" "Sites","v1.0","Get-MgSiteListItemDocumentSetVersion_Get","Get","MgSiteListItemDocumentSetVersion_Get","Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId]","True","GetMgSiteListItemDocumentSetVersion_Get.g.cs" "Sites","v1.0","Get-MgSiteListItemDocumentSetVersion_List","Get","MgSiteListItemDocumentSetVersion_List","Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions","True","GetMgSiteListItemDocumentSetVersion_List.g.cs" @@ -10901,8 +11539,6 @@ "Teams","v1.0","Get-MgUserJoinedTeam","Get","MgUserJoinedTeam","(dispatcher)","False","GetMgUserJoinedTeam.g.cs" "Teams","v1.0","Get-MgUserJoinedTeam_Get","Get","MgUserJoinedTeam_Get","Users[UserId].JoinedTeams[TeamId]","True","GetMgUserJoinedTeam_Get.g.cs" "Teams","v1.0","Get-MgUserJoinedTeam_List","Get","MgUserJoinedTeam_List","Users[UserId].JoinedTeams","True","GetMgUserJoinedTeam_List.g.cs" -"Teams","v1.0","Get-MgUserJoinedTeamChannelFileFolderContent","Get","MgUserJoinedTeamChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content","False","GetMgUserJoinedTeamChannelFileFolderContent.g.cs" -"Teams","v1.0","Get-MgUserJoinedTeamPrimaryChannelFileFolderContent","Get","MgUserJoinedTeamPrimaryChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content","False","GetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs" "Teams","v1.0","Get-MgUserTeamwork","Get","MgUserTeamwork","Users[UserId].Teamwork","False","GetMgUserTeamwork.g.cs" "Teams","v1.0","Get-MgUserTeamworkAssociatedTeam","Get","MgUserTeamworkAssociatedTeam","(dispatcher)","False","GetMgUserTeamworkAssociatedTeam.g.cs" "Teams","v1.0","Get-MgUserTeamworkAssociatedTeam_Get","Get","MgUserTeamworkAssociatedTeam_Get","Users[UserId].Teamwork.AssociatedTeams[AssociatedTeamInfoId]","True","GetMgUserTeamworkAssociatedTeam_Get.g.cs" @@ -11215,8 +11851,6 @@ "Teams","v1.0","Remove-MgUserChatTargetedMessageHostedContent","Remove","MgUserChatTargetedMessageHostedContent","Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].HostedContents[ChatMessageHostedContentId]","False","RemoveMgUserChatTargetedMessageHostedContent.g.cs" "Teams","v1.0","Remove-MgUserChatTargetedMessageReply","Remove","MgUserChatTargetedMessageReply","Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId]","False","RemoveMgUserChatTargetedMessageReply.g.cs" "Teams","v1.0","Remove-MgUserChatTargetedMessageReplyHostedContent","Remove","MgUserChatTargetedMessageReplyHostedContent","Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].HostedContents[ChatMessageHostedContentId]","False","RemoveMgUserChatTargetedMessageReplyHostedContent.g.cs" -"Teams","v1.0","Remove-MgUserJoinedTeamChannelFileFolderContent","Remove","MgUserJoinedTeamChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content","False","RemoveMgUserJoinedTeamChannelFileFolderContent.g.cs" -"Teams","v1.0","Remove-MgUserJoinedTeamPrimaryChannelFileFolderContent","Remove","MgUserJoinedTeamPrimaryChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content","False","RemoveMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs" "Teams","v1.0","Remove-MgUserTeamwork","Remove","MgUserTeamwork","Users[UserId].Teamwork","False","RemoveMgUserTeamwork.g.cs" "Teams","v1.0","Remove-MgUserTeamworkAssociatedTeam","Remove","MgUserTeamworkAssociatedTeam","Users[UserId].Teamwork.AssociatedTeams[AssociatedTeamInfoId]","False","RemoveMgUserTeamworkAssociatedTeam.g.cs" "Teams","v1.0","Remove-MgUserTeamworkInstalledApp","Remove","MgUserTeamworkInstalledApp","Users[UserId].Teamwork.InstalledApps[UserScopeTeamsAppInstallationId]","False","RemoveMgUserTeamworkInstalledApp.g.cs" @@ -11251,8 +11885,6 @@ "Teams","v1.0","Set-MgUserChatMessageReaction","Set","MgUserChatMessageReaction","Users[UserId].Chats[ChatId].Messages[ChatMessageId].SetReaction","False","SetMgUserChatMessageReaction.g.cs" "Teams","v1.0","Set-MgUserChatMessageReplyReaction","Set","MgUserChatMessageReplyReaction","Users[UserId].Chats[ChatId].Messages[ChatMessageId].Replies[ChatMessageId1].SetReaction","False","SetMgUserChatMessageReplyReaction.g.cs" "Teams","v1.0","Set-MgUserChatTargetedMessageReplyReaction","Set","MgUserChatTargetedMessageReplyReaction","Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].SetReaction","False","SetMgUserChatTargetedMessageReplyReaction.g.cs" -"Teams","v1.0","Set-MgUserJoinedTeamChannelFileFolderContent","Set","MgUserJoinedTeamChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content","False","SetMgUserJoinedTeamChannelFileFolderContent.g.cs" -"Teams","v1.0","Set-MgUserJoinedTeamPrimaryChannelFileFolderContent","Set","MgUserJoinedTeamPrimaryChannelFileFolderContent","Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content","False","SetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs" "Teams","v1.0","Start-MgChatMigration","Start","MgChatMigration","Chats[ChatId].StartMigration","False","StartMgChatMigration.g.cs" "Teams","v1.0","Start-MgGroupTeamChannelMigration","Start","MgGroupTeamChannelMigration","Groups[GroupId].Team.Channels[ChannelId].StartMigration","False","StartMgGroupTeamChannelMigration.g.cs" "Teams","v1.0","Start-MgGroupTeamPrimaryChannelMigration","Start","MgGroupTeamPrimaryChannelMigration","Groups[GroupId].Team.PrimaryChannel.StartMigration","False","StartMgGroupTeamPrimaryChannelMigration.g.cs" @@ -11555,6 +12187,10 @@ "Users","v1.0","Get-MgUserSponsor","Get","MgUserSponsor","Users[UserId].Sponsors","False","GetMgUserSponsor.g.cs" "Users","v1.0","Get-MgUserSponsorByRef","Get","MgUserSponsorByRef","Users[UserId].Sponsors.Ref","False","GetMgUserSponsorByRef.g.cs" "Users","v1.0","Get-MgUserSponsorCount","Get","MgUserSponsorCount","Users[UserId].Sponsors.Count","False","GetMgUserSponsorCount.g.cs" +"Users","v1.0","Get-MgUserSponsorOf","Get","MgUserSponsorOf","(dispatcher)","False","GetMgUserSponsorOf.g.cs" +"Users","v1.0","Get-MgUserSponsorOf_Get","Get","MgUserSponsorOf_Get","Users[UserId].SponsorOf[DirectoryObjectId]","True","GetMgUserSponsorOf_Get.g.cs" +"Users","v1.0","Get-MgUserSponsorOf_List","Get","MgUserSponsorOf_List","Users[UserId].SponsorOf","True","GetMgUserSponsorOf_List.g.cs" +"Users","v1.0","Get-MgUserSponsorOfCount","Get","MgUserSponsorOfCount","Users[UserId].SponsorOf.Count","False","GetMgUserSponsorOfCount.g.cs" "Users","v1.0","Get-MgUserTodoList","Get","MgUserTodoList","(dispatcher)","False","GetMgUserTodoList.g.cs" "Users","v1.0","Get-MgUserTodoList_Get","Get","MgUserTodoList_Get","Users[UserId].Todo.Lists[TodoTaskListId]","True","GetMgUserTodoList_Get.g.cs" "Users","v1.0","Get-MgUserTodoList_List","Get","MgUserTodoList_List","Users[UserId].Todo.Lists","True","GetMgUserTodoList_List.g.cs" @@ -11564,7 +12200,6 @@ "Users","v1.0","Get-MgUserTodoListExtension_Get","Get","MgUserTodoListExtension_Get","Users[UserId].Todo.Lists[TodoTaskListId].Extensions[ExtensionId]","True","GetMgUserTodoListExtension_Get.g.cs" "Users","v1.0","Get-MgUserTodoListExtension_List","Get","MgUserTodoListExtension_List","Users[UserId].Todo.Lists[TodoTaskListId].Extensions","True","GetMgUserTodoListExtension_List.g.cs" "Users","v1.0","Get-MgUserTodoListExtensionCount","Get","MgUserTodoListExtensionCount","Users[UserId].Todo.Lists[TodoTaskListId].Extensions.Count","False","GetMgUserTodoListExtensionCount.g.cs" -"Users","v1.0","Get-MgUserTodoListTaskAttachmentSessionContent","Get","MgUserTodoListTaskAttachmentSessionContent","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId].Content","False","GetMgUserTodoListTaskAttachmentSessionContent.g.cs" "Users","v1.0","Get-MgUserTodoTask","Get","MgUserTodoTask","(dispatcher)","False","GetMgUserTodoTask.g.cs" "Users","v1.0","Get-MgUserTodoTask_Get","Get","MgUserTodoTask_Get","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId]","True","GetMgUserTodoTask_Get.g.cs" "Users","v1.0","Get-MgUserTodoTask_List","Get","MgUserTodoTask_List","Users[UserId].Todo.Lists[TodoTaskListId].Tasks","True","GetMgUserTodoTask_List.g.cs" @@ -11576,6 +12211,7 @@ "Users","v1.0","Get-MgUserTodoTaskAttachmentSession","Get","MgUserTodoTaskAttachmentSession","(dispatcher)","False","GetMgUserTodoTaskAttachmentSession.g.cs" "Users","v1.0","Get-MgUserTodoTaskAttachmentSession_Get","Get","MgUserTodoTaskAttachmentSession_Get","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId]","True","GetMgUserTodoTaskAttachmentSession_Get.g.cs" "Users","v1.0","Get-MgUserTodoTaskAttachmentSession_List","Get","MgUserTodoTaskAttachmentSession_List","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions","True","GetMgUserTodoTaskAttachmentSession_List.g.cs" +"Users","v1.0","Get-MgUserTodoTaskAttachmentSessionContent","Get","MgUserTodoTaskAttachmentSessionContent","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId].Content","False","GetMgUserTodoTaskAttachmentSessionContent.g.cs" "Users","v1.0","Get-MgUserTodoTaskAttachmentSessionCount","Get","MgUserTodoTaskAttachmentSessionCount","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions.Count","False","GetMgUserTodoTaskAttachmentSessionCount.g.cs" "Users","v1.0","Get-MgUserTodoTaskChecklistItem","Get","MgUserTodoTaskChecklistItem","(dispatcher)","False","GetMgUserTodoTaskChecklistItem.g.cs" "Users","v1.0","Get-MgUserTodoTaskChecklistItem_Get","Get","MgUserTodoTaskChecklistItem_Get","Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].ChecklistItems[ChecklistItemId]","True","GetMgUserTodoTaskChecklistItem_Get.g.cs" diff --git a/src/Applications/wrapper/v1.0/Client/Models/Chat.cs b/src/Applications/wrapper/v1.0/Client/Models/Chat.cs index 3433e2fa11a..3bf67fa3f29 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Applications.Clie #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Applications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Applications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..0f58bb20602 --- /dev/null +++ b/src/Applications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Applications.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Applications.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Applications.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Applications/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Applications/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..263debd95ad --- /dev/null +++ b/src/Applications/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Applications.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Applications/wrapper/v1.0/Client/Models/Group.cs b/src/Applications/wrapper/v1.0/Client/Models/Group.cs index ea5f909b22b..6d98a74d4c1 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Applications.Cli #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Applications.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Applications/wrapper/v1.0/Client/Models/List.cs b/src/Applications/wrapper/v1.0/Client/Models/List.cs index fd4a73a96fd..ed190d8686c 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/List.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Applications.Clie #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Applications/wrapper/v1.0/Client/Models/ListItem.cs b/src/Applications/wrapper/v1.0/Client/Models/ListItem.cs index 7ca79c5efff..944aa58e35e 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Applications. #else public global::Microsoft.Graph.PowerShell.Applications.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 067df09275b..46a7eb29e01 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Appl #nullable restore #else public global::Microsoft.Graph.PowerShell.Applications.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Appl #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..46f1b53d914 --- /dev/null +++ b/src/Applications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Applications.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Applications/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Applications/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 512fb04bb43..5628cf9566e 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Applications.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Applications.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Applications/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Applications/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 7b9f839ed4d..8b01e69123b 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Applications.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Applications.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Applications.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Applications/wrapper/v1.0/Client/Models/User.cs b/src/Applications/wrapper/v1.0/Client/Models/User.cs index 6dc64538922..09f1b01ae55 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/User.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Applications.Clie #nullable restore #else public global::Microsoft.Graph.PowerShell.Applications.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Applications.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Applications.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Applications.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Applications/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Applications/wrapper/v1.0/Client/Models/UserActivityType.cs index 1c027632a6e..86cd9df36eb 100644 --- a/src/Applications/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Applications/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Applications/wrapper/v1.0/Client/kiota-lock.json b/src/Applications/wrapper/v1.0/Client/kiota-lock.json index d6e00c65acc..57f950ecd31 100644 --- a/src/Applications/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Applications/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "A6B597877C6786DD32C07BBAB1D3E2701E5F3B57FBEBA95E14CBA180100EE0B8277B52931989EE4300328C28FAE27D4CD9A24A70E4784E3D658F4A70E513F725", + "descriptionHash": "624A7B72246233217711E3656F22F551FF344C18E98CA4B609A294AA5B673A6BABE5FAA6579F71F449DB7B7B3A3D89FF6F25031C305117F10DF3E4DAFAD39649", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Applications.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationKey.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationKey.g.cs index 3e12dc54c37..08d46247976 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationKey.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationKey.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationPassword.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationPassword.g.cs index 7722bde84bc..342906f81fb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationPassword.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/AddMgApplicationPassword.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalKey.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalKey.g.cs index 68879949853..2e71d0f1df4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalKey.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalKey.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalPassword.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalPassword.g.cs index c5a44f2b1fe..98f2abec67e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalPassword.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalPassword.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalTokenSigningCertificate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalTokenSigningCertificate.g.cs index 7bdeb18ffad..6452a82a372 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalTokenSigningCertificate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/AddMgServicePrincipalTokenSigningCertificate.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/ClearMgApplicationVerifiedPublisher.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/ClearMgApplicationVerifiedPublisher.g.cs index 8266925f0de..535545c00fc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/ClearMgApplicationVerifiedPublisher.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/ClearMgApplicationVerifiedPublisher.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberGroup.g.cs index 884539c0920..47129a1723b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberObject.g.cs index a9fd0b9460a..f3c5ecf7bcd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgApplicationMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberGroup.g.cs index 65439cdbc9e..a7803d10854 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberObject.g.cs index 0a1306805db..0e619847805 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/ConfirmMgServicePrincipalMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationJobSchemaDirectory.g.cs index 8684b08fd2f..575dd34375a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationJobSchemaDirectory.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationTemplateSchemaDirectory.g.cs index b08ccf7ff4a..29ebd4bf731 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/FindMgApplicationSynchronizationTemplateSchemaDirectory.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs index 088e8e477f9..331f1f37c19 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs index 1ed3936b377..772db88966c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/FindMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication.g.cs index 0c683033025..e5a6e6f3e06 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApplicationId : null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicy.g.cs index 545732ce2f8..de0f75af64e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyByRef.g.cs index 006d860bc85..a4267fdd594 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyCount.g.cs index 3ba9f89eb4a..877c77edcf8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationAppManagementPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationById.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationById.g.cs index 5adc72f2a64..a6798550075 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationById.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCount.g.cs index c524fa7ff84..6abed556f73 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCreatedOnBehalfOf.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCreatedOnBehalfOf.g.cs index df54eefcbfd..f2a5dc1a5e1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCreatedOnBehalfOf.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationCreatedOnBehalfOf.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationDelta.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationDelta.g.cs index 82d6d754d30..a2081749058 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationDelta.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty.g.cs index 517bc7dc7db..f6a25e7692a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionPropertyId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionPropertyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionPropertyCount.g.cs index 919e76c19cb..92e7a7baf35 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionPropertyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionPropertyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_Get.g.cs index 7719192c57b..6c06f4ecd3a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionPropertyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_List.g.cs index fbe5a5052cd..cfba952f8d7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationExtensionProperty_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential.g.cs index aebf668671b..2e5be5430fc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FederatedIdentityCredentialId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredentialCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredentialCount.g.cs index 12b45185e97..99e587c5760 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredentialCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredentialCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_Get.g.cs index a49e8b5ade9..df3342113ad 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FederatedIdentityCredentialId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_List.g.cs index 742611bfa29..202a5e7163f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationFederatedIdentityCredential_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy.g.cs index 232b159d0b3..4dee6080e44 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HomeRealmDiscoveryPolicyId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicyCount.g.cs index be26639831b..25cb48723b0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_Get.g.cs index 36776355163..79e7f8a86ff 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_List.g.cs index 01240c531fb..78e061c6a8b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationHomeRealmDiscoveryPolicy_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationLogo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationLogo.g.cs index 72154fcfd34..4e2184a13f2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationLogo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationLogo.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberGroup.g.cs index 3278b1fd184..26220bef572 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberObject.g.cs index e3400a201df..8697a707498 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwner.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwner.g.cs index cd78f3b2f51..f7f1fdab1fc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwner.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwner.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment.g.cs index 51d1448bd26..8eaca17c018 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_Get.g.cs index a544dd94354..ea7169f9ef4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_List.g.cs index dde19634901..7300bb353c8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint.g.cs index 67010309cad..d84e8d2fc3b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_Get.g.cs index fe376bc21a4..c20c7776653 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_List.g.cs index 30929579480..dbc0fce0075 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal.g.cs index 6b20be7ae6e..5e704399064 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_Get.g.cs index c2d3bd4d091..d0cee8d0889 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_List.g.cs index 13a0daa14cb..ec2b3853371 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser.g.cs index 51ed565ee6d..08966858012 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_Get.g.cs index 3c34852680c..5e5f8fec70d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_List.g.cs index ffa254de0bd..20e8774973c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerByRef.g.cs index 0403026024a..5f844cc5ff7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCount.g.cs index edf2d739e08..da8754ec331 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsAppRoleAssignment.g.cs index 189d9efe176..aafedc5d87f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsEndpoint.g.cs index f9cceaf159f..f3c6e76f811 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsServicePrincipal.g.cs index 55a45357f75..49b179a2d17 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsUser.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsUser.g.cs index fa9b48059c4..21d105c9d9d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsUser.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationOwnerCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronization.g.cs index 2a925494775..f58275a423b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationAccessToken.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationAccessToken.g.cs index 47a9e14bae1..ed0544fd6d6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationAccessToken.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationAccessToken.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob.g.cs index 9ac78c284b4..76006fdeb35 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SynchronizationJobId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUpload.g.cs index 9496df01c3a..77e9a6ba94c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUpload.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUploadContent.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUploadContent.g.cs index 1d89e891f36..645f22effde 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUploadContent.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobBulkUploadContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobCount.g.cs index ce4bac934e5..9243e59639f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchema.g.cs index 8640fcbd6cb..862b15927f2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchema.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory.g.cs index 66a791cc4ec..d95073a5aa2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryDefinitionId : SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectoryCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectoryCount.g.cs index 319a2d16984..927ebbf4825 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectoryCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectoryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_Get.g.cs index f3fa32e90bb..0777615d3cb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_List.g.cs index c523a2d33b0..ed2dffe038a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJobSchemaDirectory_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_Get.g.cs index 9ebd3baf003..f215c513155 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_List.g.cs index ffb17a55816..a3d261ff8df 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationSecretCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationSecretCount.g.cs index 327dae65e43..ea6455c6d78 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationSecretCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationSecretCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate.g.cs index 150a0d8aae7..fac03f1146c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SynchronizationTemplateId : ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateCount.g.cs index 818a3bd0e68..52b4f2bb385 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchema.g.cs index 8764244e405..4fd740c9eec 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchema.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory.g.cs index 50818f96fc9..9c9403eecbb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryDefinitionId : SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectoryCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectoryCount.g.cs index 9ba752cdccc..3ef823336fd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectoryCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectoryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_Get.g.cs index 551c511ea85..a0bbb6bf284 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_List.g.cs index 34842fe3597..59823ce808f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplateSchemaDirectory_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_Get.g.cs index 9f8ca81b6cf..043d9d3c5dd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_List.g.cs index 634c0d01df4..0314bf46f3d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationSynchronizationTemplate_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate.g.cs index 3fe2ea695ef..0d90f83c745 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApplicationTemplateId : null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplateCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplateCount.g.cs index d01090d4279..34216e56a20 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplateCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_Get.g.cs index 4339fb12b33..b5a322ff252 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_List.g.cs index 0974d2c0e9d..b268f80a986 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicy.g.cs index 08895435dd5..67eb093b1da 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyByRef.g.cs index f2ec42e15c7..b80e33c82b5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyCount.g.cs index 077851fe2c7..26de139f206 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenIssuancePolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicy.g.cs index b9ec473ad4c..940f49df8e4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyByRef.g.cs index 52260cd7871..127c3fb8bec 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyCount.g.cs index 159be49cfe1..a9bc4d86f44 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplicationTokenLifetimePolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_Get.g.cs index afd0cb24622..a657b7b3ff9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_List.g.cs index ee8a687fde9..179827fe1c0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgApplication_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment.g.cs index 76a9d2efc42..b4532907f8a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppRoleAssignmentId : GroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignmentCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignmentCount.g.cs index 4404ff0fd1e..2b752ee09ef 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignmentCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignmentCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_Get.g.cs index 0286672a173..0db6741d51b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_List.g.cs index 40e153fc94a..bd6b3361b34 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgGroupAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal.g.cs index 6e93427dcf8..50102b3541d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServicePrincipalId : null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy.g.cs index 9e5d844bc39..1807e54c4f5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppManagementPolicyId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicyCount.g.cs index e25f062e4ff..0f0bf8e226c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_Get.g.cs index db52b26c74f..fe619bc0a8f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_List.g.cs index 6a01e3c6f31..17ea3c9262b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppManagementPolicy_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo.g.cs index 48838416510..92e15e31476 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppRoleAssignmentId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedToCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedToCount.g.cs index 3f6cf8f3322..37827d5c893 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedToCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_Get.g.cs index cd8b53faa87..24f2e65e5d8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_List.g.cs index 2bf46b86776..2c0a8372fce 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignedTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment.g.cs index 7fd440a7735..521cae86cc7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppRoleAssignmentId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignmentCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignmentCount.g.cs index 451467610a2..4a5c5f3ae02 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignmentCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignmentCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_Get.g.cs index 2649852e94f..5da105d5cf1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_List.g.cs index ba2f11022da..64673563c98 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalById.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalById.g.cs index cb3687eb645..4e7e1e1b681 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalById.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicy.g.cs index 2822ea68823..2010d9133b4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyByRef.g.cs index f3869ddb0a8..4342f2e86c5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyCount.g.cs index f002f7f94f3..b8d065e1046 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalClaimMappingPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCount.g.cs index 43461b95d07..5870159f714 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject.g.cs index 5764ac20dd3..493c13424ad 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal.g.cs index 9816555e022..a3c73e51584 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_Get.g.cs index 67fc018bc7a..03e89346269 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_List.g.cs index adf713deea9..ed49196c4c5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectAsServicePrincipal_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCount.g.cs index b783339e5e4..26149d47fd3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCountAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCountAsServicePrincipal.g.cs index ad5ccae8ea5..37d88f93bbc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCountAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObjectCountAsServicePrincipal.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_Get.g.cs index fa356d7d21a..4961c3accc0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_List.g.cs index 89865044f38..134edfc1f76 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalCreatedObject_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification.g.cs index b4f13c03836..e6917e6716f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedPermissionClassificationId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassificationCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassificationCount.g.cs index b464b901946..b7cf36baddc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassificationCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassificationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_Get.g.cs index 18b38674c59..709d2c64b9b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedPermissionClassificationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_List.g.cs index 57c8bb88a7e..4908844b559 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelegatedPermissionClassification_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelta.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelta.g.cs index 00b84dd0494..1a4c237af2d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelta.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint.g.cs index ef6732e1b2f..88ce20ba63e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EndpointId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpointCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpointCount.g.cs index 3c9f1e3cedd..319788fb727 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpointCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpointCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_Get.g.cs index 46c942f6e61..564787af82a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndpointId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_List.g.cs index 3aadf12ae94..0ce8a7d48ab 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalEndpoint_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicy.g.cs index d27fad6116f..ece2d3658a6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs index a3b6413639e..fe5d1c165ae 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyCount.g.cs index 6ad41150f44..7c9a2e81a22 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalHomeRealmDiscoveryPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberGroup.g.cs index 2477c4d3515..07dec451a3e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberObject.g.cs index 437f5b5b178..c9a32d8f33b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf.g.cs index 1c8b52eb9a9..cc37c0abcec 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit.g.cs index f4f979be6e4..3c9ca2fc9f9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_Get.g.cs index 6d030fbeb8d..25053969509 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_List.g.cs index 2c9b635fc62..0e9dc7697ef 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole.g.cs index c3c68f465d8..70e4a876b4e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_Get.g.cs index 5c1e21a4591..380c2c11ab6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_List.g.cs index e05e226a84c..dd0426632ea 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsDirectoryRole_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup.g.cs index 0c43ce2a354..7968f0c2288 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_Get.g.cs index 6cb5fb06421..0ccbba95fdc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_List.g.cs index ce5d27ae5f7..112844a4a9a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCount.g.cs index 2d6e434ca41..df8e4522cef 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsAdministrativeUnit.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsAdministrativeUnit.g.cs index 88fb0db4663..e844e779115 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsDirectoryRole.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsDirectoryRole.g.cs index df99f6b3ba3..9ae32e8bdd0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsDirectoryRole.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsDirectoryRole.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsGroup.g.cs index 6bd18e9f7de..8304d9dcf3a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_Get.g.cs index b4c8cc020c6..275b0bf7fdc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_List.g.cs index 5f22f10a9b8..7aa64904820 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant.g.cs index b91ecb1cfeb..1aaee1c3f40 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OAuth2PermissionGrantId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrantCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrantCount.g.cs index a0b2b16b64a..f32906d2b22 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrantCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_Get.g.cs index 067ddaa200b..584e7585dbd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_List.g.cs index 659eb3489cf..78aa5260e7d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOauth2PermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject.g.cs index 4d690d889f3..5ce995bdb08 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment.g.cs index 0fe187087b4..335eb160df8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_Get.g.cs index 4836831a30a..63c5138683e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_List.g.cs index 352cb633391..7f2bc66f275 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsAppRoleAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication.g.cs index 456763f8c37..4ffef74d34d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_Get.g.cs index c4f5705c85a..eddff411f52 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_List.g.cs index 6e2dcbda93d..4bf71eec307 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsApplication_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint.g.cs index 18b871a2efe..5f4beccd29c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_Get.g.cs index b51139f660a..d028950a2e2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_List.g.cs index 8688546fbd4..b8d6ac816d8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsEndpoint_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup.g.cs index bde1b658323..f3bd77ebe70 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_Get.g.cs index 372cc98163e..9b85d77f286 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_List.g.cs index 38486c219ea..6de66ee5fc7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal.g.cs index c5551126ebd..6e8985c9fce 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_Get.g.cs index 33ee4a1e2dd..667f6abd96b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_List.g.cs index 56ff37ff1db..c2a6cb612d5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectAsServicePrincipal_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCount.g.cs index d8dc0fe7614..ba85d1727c3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsAppRoleAssignment.g.cs index e5209e794b8..da43995f9cd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsAppRoleAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsApplication.g.cs index 86334b561b0..dd8617ea29a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsApplication.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsEndpoint.g.cs index c7d8fb15b45..636da4d8ddd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsEndpoint.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsGroup.g.cs index 7efd65f7c6b..0cca8c9fe00 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsGroup.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsServicePrincipal.g.cs index 06da527765b..f4d812fa9ee 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObjectCountAsServicePrincipal.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_Get.g.cs index 25c19f96602..fb275660a17 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_List.g.cs index ddde58cfd4e..9a472e1d895 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnedObject_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwner.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwner.g.cs index e4d74ce279b..da474e5b335 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwner.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwner.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment.g.cs index 20a8da37aab..af8bb00d597 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_Get.g.cs index 7e3b60a34fd..6a7e66cf13a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_List.g.cs index ac13951cbaf..9f127a04970 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint.g.cs index 4f9516e56e2..c7eca84179a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_Get.g.cs index 8b4da47eab6..50098e04c4e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_List.g.cs index 530b89689fd..05a6c4989a7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal.g.cs index e0e7e70f072..6bce5215a08 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_Get.g.cs index 78689068154..8833bc74b18 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_List.g.cs index c0a8233ffdd..7904106ef07 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser.g.cs index 07a83c5e109..e62d9444056 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_Get.g.cs index bff31cc865e..07bca429a2e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_List.g.cs index c5d285c1e8f..357949537ba 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerByRef.g.cs index a1db58b62e0..37beb849c64 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCount.g.cs index d2a120ec849..ea2c3741223 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsAppRoleAssignment.g.cs index a87ab4e3686..30d92040bb0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsEndpoint.g.cs index ba4b5f0d81f..843b564abcb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsServicePrincipal.g.cs index 96ffc0e610b..4163206bc05 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsUser.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsUser.g.cs index a3c3514a9f2..78c5e92b485 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsUser.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalOwnerCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs index 5d7d70e50c6..d115cbb86ca 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs index 49396c3bf63..6c4e9c1a096 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApprovedClientAppId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientAppCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientAppCount.g.cs index 4812ab4d389..8a8e6dd9889 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientAppCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_Get.g.cs index 6f5fe3d4840..4c9abfeae6d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovedClientAppId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_List.g.cs index 0e8fa698657..0ea002ad4f8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs index adabe290477..cbb7ad6f3ec 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetDeviceGroupId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroupCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroupCount.g.cs index 837db347a24..cc8430b295f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroupCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_Get.g.cs index d6be97cfc5a..f3c3870e8d5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetDeviceGroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_List.g.cs index c12b7c85277..f728d0454ca 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronization.g.cs index 99a2885855e..83f2984a582 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationAccessToken.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationAccessToken.g.cs index 1151f8d271c..1f25e30e7a9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationAccessToken.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationAccessToken.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob.g.cs index 17a5ac85469..63b9e5093ee 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SynchronizationJobId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUpload.g.cs index 0306b26166f..e22038add2c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUpload.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs index 5ab2a873cea..db46431cb34 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobCount.g.cs index 63dd4db6a19..1fa9478fd1b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchema.g.cs index 0749c818751..c6371c988b2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchema.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs index f42e574900e..87d4bffe4db 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryDefinitionId : SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectoryCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectoryCount.g.cs index fb4bc86d6e7..98d7ebded70 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectoryCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectoryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_Get.g.cs index 5a663dfdaf8..4b02c541f01 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_List.g.cs index 87275f3b541..f94f8c6a1e5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJobSchemaDirectory_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_Get.g.cs index d2a91dbade6..2db16ca7d0a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_List.g.cs index b57c2452ebf..820a195bb08 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationSecretCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationSecretCount.g.cs index b4007433271..0d1073bd83c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationSecretCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationSecretCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate.g.cs index 338a4593956..dc5599e3aaa 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SynchronizationTemplateId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateCount.g.cs index 63eaf689cab..207a57d1225 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchema.g.cs index 61cf8cb54a2..dfe7ae4c9dc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchema.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs index b034f3b6bc9..75fe4e49b70 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryDefinitionId : SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectoryCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectoryCount.g.cs index a18dccf3caa..42358667e2e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectoryCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectoryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_Get.g.cs index 00cf4b88d5f..8fd5dd69841 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_List.g.cs index b9dbc21bf0b..cab357cd023 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplateSchemaDirectory_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_Get.g.cs index dc3ec3c08a8..63f6bae4580 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_List.g.cs index bd25c9212bf..cb381037736 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalSynchronizationTemplate_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicy.g.cs index a7e0329a017..5439efde05c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyByRef.g.cs index 3ccde854709..638a1409bf9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyCount.g.cs index 560d4139d4b..2d06385e83a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenIssuancePolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicy.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicy.g.cs index 7e97277b2fb..4ed06d1212b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicy.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyByRef.g.cs index 2bdf0b4625e..612605bf551 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyCount.g.cs index d17840db7ee..7446b536409 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTokenLifetimePolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf.g.cs index b75b48ef004..9ca81d7dfc1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit.g.cs index 31d33c310cf..ac5dbd14337 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_Get.g.cs index 064e84a4d9f..5deeeb51f8f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_List.g.cs index 10e126ee129..d3ef068258c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole.g.cs index a1ea585307b..cceae8f2ebe 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_Get.g.cs index af9a189b094..9ad0effd166 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_List.g.cs index 1e3f4ba68cd..4e521241696 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsDirectoryRole_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup.g.cs index 0bb476c0ca1..137f38b0198 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_Get.g.cs index 3523cd73688..4ef80225d19 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_List.g.cs index fca35ae8da5..1d1b91d1d36 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCount.g.cs index 0c7bde00418..5530d529e5c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsAdministrativeUnit.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsAdministrativeUnit.g.cs index b99a0074378..7d5fcc494c4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsDirectoryRole.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsDirectoryRole.g.cs index 57c4a661c72..18f330277b8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsDirectoryRole.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsDirectoryRole.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsGroup.g.cs index 72489c60c95..678cd5f91f5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_Get.g.cs index 9232d810c53..ae4bca00845 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_List.g.cs index b969c9640b4..af83fe08bc0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipalTransitiveMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_Get.g.cs index aa2c6cceb3d..df06a83954d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_List.g.cs index 4a5933426f4..10e24e49f52 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgServicePrincipal_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment.g.cs index 70c731f8b00..e2744c7fd9f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppRoleAssignmentId : UserId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignmentCount.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignmentCount.g.cs index 0b18c308590..0448b0cdf89 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignmentCount.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignmentCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_Get.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_Get.g.cs index 3bd48e47e09..789a28d2803 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_Get.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_List.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_List.g.cs index a05ecb8fb0f..f074a23c4a4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_List.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/GetMgUserAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationJobSchemaOperator.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationJobSchemaOperator.g.cs index c5d91bd4d07..9111acaa788 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationJobSchemaOperator.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationJobSchemaOperator.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationTemplateSchemaOperator.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationTemplateSchemaOperator.g.cs index 397a926f1e3..a12fa622ee6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationTemplateSchemaOperator.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterApplicationSynchronizationTemplateSchemaOperator.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationJobSchemaOperator.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationJobSchemaOperator.g.cs index 65e0a592a33..94bf344f9fb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationJobSchemaOperator.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationJobSchemaOperator.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationTemplateSchemaOperator.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationTemplateSchemaOperator.g.cs index d2c6fc54248..31dbc5bb6c0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationTemplateSchemaOperator.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFilterServicePrincipalSynchronizationTemplateSchemaOperator.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationJobSchema.g.cs index bb1dfe8ab73..6884ea19ef1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationJobSchema.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationTemplateSchema.g.cs index 9bc9270f094..09a883b9113 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionApplicationSynchronizationTemplateSchema.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationJobSchema.g.cs index b035685aefe..29f559d6e80 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationJobSchema.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationTemplateSchema.g.cs index 798163fc350..91e31a325d9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgFunctionServicePrincipalSynchronizationTemplateSchema.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgInstantiateApplicationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgInstantiateApplicationTemplate.g.cs index 33e47073e6f..1d9a198f1f1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgInstantiateApplicationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgInstantiateApplicationTemplate.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationJobSchemaExpression.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationJobSchemaExpression.g.cs index db05c00c2a0..bbdec5dd9ae 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationJobSchemaExpression.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationJobSchemaExpression.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationTemplateSchemaExpression.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationTemplateSchemaExpression.g.cs index 3d370d2c9c9..3d9f13e506f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationTemplateSchemaExpression.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseApplicationSynchronizationTemplateSchemaExpression.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationJobSchemaExpression.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationJobSchemaExpression.g.cs index 03f37785766..76e57fcca83 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationJobSchemaExpression.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationJobSchemaExpression.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationTemplateSchemaExpression.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationTemplateSchemaExpression.g.cs index 352cd00da60..7ceda1f9fe3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationTemplateSchemaExpression.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/InvokeMgParseServicePrincipalSynchronizationTemplateSchemaExpression.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplication.g.cs index 99cc663e219..2ff4760b3c2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplication.g.cs @@ -302,7 +302,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationAppManagementPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationAppManagementPolicyByRef.g.cs index 1d3ef0559aa..6e26833dffb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationAppManagementPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationAppManagementPolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationExtensionProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationExtensionProperty.g.cs index 82ab7776a13..bea3744ab8b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationExtensionProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationExtensionProperty.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationFederatedIdentityCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationFederatedIdentityCredential.g.cs index 85078aae24a..779c7c0caf5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationFederatedIdentityCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationFederatedIdentityCredential.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationOwnerByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationOwnerByRef.g.cs index fee3ef112b7..12aa7ccb44f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationOwnerByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationOwnerByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJob.g.cs index d56e9c85df4..ff0dfde4694 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJob.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobOnDemand.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobOnDemand.g.cs index 050855022c2..aebcb29f677 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobOnDemand.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobOnDemand.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobSchemaDirectory.g.cs index d27d6688ad6..a605a3e0194 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationJobSchemaDirectory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplate.g.cs index 9c925c530da..99d13df5710 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplateSchemaDirectory.g.cs index f634db5c8b0..7184ee934c7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationSynchronizationTemplateSchemaDirectory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenIssuancePolicyByRef.g.cs index 144ceda7d9b..f0d23376ade 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenIssuancePolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenLifetimePolicyByRef.g.cs index d1ecc3105c7..3bda088ac6b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgApplicationTokenLifetimePolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgGroupAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgGroupAppRoleAssignment.g.cs index 5dd2f0cc195..bed6534b7bd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgGroupAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgGroupAppRoleAssignment.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipal.g.cs index 59d08598674..093498a3b77 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipal.g.cs @@ -266,7 +266,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignedTo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignedTo.g.cs index 1c357ed401e..834c7576bc6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignedTo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignedTo.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignment.g.cs index 515f1645fa2..55c8c31546f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalAppRoleAssignment.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalClaimMappingPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalClaimMappingPolicyByRef.g.cs index 9da331474f6..4d015801868 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalClaimMappingPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalClaimMappingPolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalDelegatedPermissionClassification.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalDelegatedPermissionClassification.g.cs index 6888320c95f..7118935ebe9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalDelegatedPermissionClassification.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalDelegatedPermissionClassification.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalEndpoint.g.cs index ecee2018cf8..aef844986d5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalEndpoint.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs index eeaf040a9f7..0b386b6c650 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalHomeRealmDiscoveryPolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalOwnerByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalOwnerByRef.g.cs index f31ad819cc4..95c80c765c5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalOwnerByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalOwnerByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs index e92bf8d5f64..bf517b39fbb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs index a61c6dd95a2..d30e8a63d13 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJob.g.cs index 78b99404004..a2fdcbb08ce 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJob.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobOnDemand.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobOnDemand.g.cs index 381914516c3..4161b630bfd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobOnDemand.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobOnDemand.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs index 608862d880c..14eb1fbc35f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplate.g.cs index a752e0ed0fd..41518c2ac2b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs index e4eb3970349..847314cb7f9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenIssuancePolicyByRef.g.cs index 7b50e0fb30a..4580f37986b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenIssuancePolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenLifetimePolicyByRef.g.cs index 9a7c48106e1..c16d83ff405 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgServicePrincipalTokenLifetimePolicyByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/NewMgUserAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/NewMgUserAppRoleAssignment.g.cs index 3be0969ddd7..2a036f22666 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/NewMgUserAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/NewMgUserAppRoleAssignment.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplication.g.cs index 006e46bc552..d1f934b342a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplication.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationAppManagementPolicyAppManagementPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationAppManagementPolicyAppManagementPolicyByRef.g.cs index 2b600ec091a..fc944dcbc7e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationAppManagementPolicyAppManagementPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationAppManagementPolicyAppManagementPolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationExtensionProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationExtensionProperty.g.cs index 90f9eaa3d98..2bc4f5b6cdb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationExtensionProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationExtensionProperty.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionPropertyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationFederatedIdentityCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationFederatedIdentityCredential.g.cs index c4108cdb793..219c01466d2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationFederatedIdentityCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationFederatedIdentityCredential.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FederatedIdentityCredentialId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationKey.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationKey.g.cs index f521d6ce50b..3f4c1783d90 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationKey.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationKey.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationLogo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationLogo.g.cs index d7e40ba3fab..9211fdd2bb7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationLogo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationLogo.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationOwnerDirectoryObjectByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationOwnerDirectoryObjectByRef.g.cs index 58c7d57c5b4..baa6fc84709 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationOwnerDirectoryObjectByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationOwnerDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationPassword.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationPassword.g.cs index 8fe9b564419..15dc41ad9a6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationPassword.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationPassword.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronization.g.cs index 1ff999d7dae..3182b9a8535 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJob.g.cs index 90263fbabd3..ca8bff8d5d5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJob.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUpload.g.cs index e0e749935c7..d44e78c845a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUpload.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUploadContent.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUploadContent.g.cs index d55ce01216d..c7247a84c71 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUploadContent.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobBulkUploadContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchema.g.cs index ee00d8e10da..9708dc672d6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchema.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchemaDirectory.g.cs index 4adeb798744..d2487d4731f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationJobSchemaDirectory.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplate.g.cs index 99f0f974c10..9bffcf88bd3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplate.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchema.g.cs index f5c1cbab0e1..cc88ee46ad9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchema.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchemaDirectory.g.cs index 9b065c41f51..1ea450fe8cd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationSynchronizationTemplateSchemaDirectory.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs index 516a9445368..37232b94ae1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs index 6b1599e5466..24a5b957460 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgGroupAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgGroupAppRoleAssignment.g.cs index 083d7e11f77..49dd966abfa 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgGroupAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgGroupAppRoleAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipal.g.cs index 099dde80ed4..88d08fbfd66 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipal.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignedTo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignedTo.g.cs index d1af001282f..e1d640113bc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignedTo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignedTo.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignment.g.cs index 32edac3b146..638356fe1b0 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalAppRoleAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.g.cs index 63ec742b5eb..b37bd6f0cab 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalDelegatedPermissionClassification.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalDelegatedPermissionClassification.g.cs index ac02d976fd1..95f5260b7f3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalDelegatedPermissionClassification.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalDelegatedPermissionClassification.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedPermissionClassificationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalEndpoint.g.cs index b4e28a22e2f..b71fc58ca96 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalEndpoint.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndpointId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.g.cs index a9be377677a..5986fcbd917 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalKey.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalKey.g.cs index fee93566987..0ea4d0cdad7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalKey.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalKey.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalOwnerDirectoryObjectByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalOwnerDirectoryObjectByRef.g.cs index c01d3bd181e..601e8aea58d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalOwnerDirectoryObjectByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalOwnerDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalPassword.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalPassword.g.cs index ba2382244b2..13fb63d0be3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalPassword.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalPassword.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs index 9fdd23f29c3..0a07c492996 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs index 1dbebc13596..10a08ae77d9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovedClientAppId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs index 35e2d44fc7b..52871785164 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetDeviceGroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronization.g.cs index 41a93d294da..e1de8b41d26 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJob.g.cs index a663b0a7cbd..b1d36e5d266 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJob.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUpload.g.cs index d90c00f391c..893ef9c3530 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUpload.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs index 11b7ac05f76..e2bf411b73c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobBulkUploadContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchema.g.cs index f8ba086541a..7b2e6dbccb3 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchema.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs index 09b21131d13..692c92d0914 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplate.g.cs index ee9c0560a05..2def81897c8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplate.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchema.g.cs index 934d338b19f..3d4ec7c2b87 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchema.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs index 8a43afe4351..70431e23940 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyByRef.g.cs index ba11dca5947..aa2add53133 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs index b5a61aa1344..bcde5514283 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenIssuancePolicyTokenIssuancePolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyByRef.g.cs index f2e3593d2f8..52031773c48 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs index 36ab635d10f..add794b11ae 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgUserAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgUserAppRoleAssignment.g.cs index a23b429789c..bda6ab9bfd7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgUserAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RemoveMgUserAppRoleAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RestartMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RestartMgApplicationSynchronizationJob.g.cs index b017e08fe80..7ca24937692 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RestartMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RestartMgApplicationSynchronizationJob.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/RestartMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/RestartMgServicePrincipalSynchronizationJob.g.cs index 49a30d7345e..993487abb4f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/RestartMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/RestartMgServicePrincipalSynchronizationJob.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationSynchronization.g.cs index 48c6df2b2c8..ba96f31bf3f 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationSynchronization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationVerifiedPublisher.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationVerifiedPublisher.g.cs index f89063b47f0..1f1f0794da1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationVerifiedPublisher.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/SetMgApplicationVerifiedPublisher.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/SetMgServicePrincipalSynchronization.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/SetMgServicePrincipalSynchronization.g.cs index 7e9d8ecb59b..dc1a794c68d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/SetMgServicePrincipalSynchronization.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/SetMgServicePrincipalSynchronization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/StartMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/StartMgApplicationSynchronizationJob.g.cs index d834437e43e..59edb3d8891 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/StartMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/StartMgApplicationSynchronizationJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/StartMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/StartMgServicePrincipalSynchronizationJob.g.cs index 8bee6b435ce..200c31b2ac4 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/StartMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/StartMgServicePrincipalSynchronizationJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgApplicationSynchronizationJob.g.cs index eda82359155..a83af54c413 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgApplicationSynchronizationJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgServicePrincipalSynchronizationJob.g.cs index 605aa1dbbb7..42917c5679c 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/SuspendMgServicePrincipalSynchronizationJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationProperty.g.cs index 0bf91eef4cd..037f3c59ce9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationSynchronizationJobCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationSynchronizationJobCredential.g.cs index 1e8c03594ed..25f49d8d6a2 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationSynchronizationJobCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/TestMgApplicationSynchronizationJobCredential.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalProperty.g.cs index c2957d7e67c..a588594bcd8 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalSynchronizationJobCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalSynchronizationJobCredential.g.cs index 218955b7291..fbe8b593ee1 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalSynchronizationJobCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/TestMgServicePrincipalSynchronizationJobCredential.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplication.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplication.g.cs index 6345a9d4385..9db24cb758a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplication.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplication.g.cs @@ -303,7 +303,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; @@ -317,7 +317,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApplicationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationExtensionProperty.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationExtensionProperty.g.cs index a991b72231b..5db1e9323bb 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationExtensionProperty.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationExtensionProperty.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionPropertyId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].ExtensionProperties[ExtensionPropertyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionPropertyId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationFederatedIdentityCredential.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationFederatedIdentityCredential.g.cs index 18b50ab42aa..45e88c74357 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationFederatedIdentityCredential.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationFederatedIdentityCredential.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FederatedIdentityCredentialId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].FederatedIdentityCredentials[FederatedIdentityCredentialId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FederatedIdentityCredentialId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJob.g.cs index 87dbd7d8c55..b6d5a750664 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJob.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Jobs[SynchronizationJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobBulkUpload.g.cs index d3e070fc77a..5a691b3c715 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobBulkUpload.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Jobs[SynchronizationJobId].BulkUpload.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchema.g.cs index 263c0e57233..82e63879f3a 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchema.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Jobs[SynchronizationJobId].Schema.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchemaDirectory.g.cs index ede17552414..04f3374e22b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationJobSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Jobs[SynchronizationJobId].Schema.Directories[DirectoryDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplate.g.cs index 1288bd90e44..87ba6cfe4b7 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplate.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Templates[SynchronizationTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchema.g.cs index be17e796afa..d7af2c2473b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchema.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Templates[SynchronizationTemplateId].Schema.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchemaDirectory.g.cs index 1d28b0729fc..855c67f7b1e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgApplicationSynchronizationTemplateSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Applications[ApplicationId].Synchronization.Templates[SynchronizationTemplateId].Schema.Directories[DirectoryDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgGroupAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgGroupAppRoleAssignment.g.cs index 9e1e3cd4634..0ae2c37c5aa 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgGroupAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgGroupAppRoleAssignment.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].AppRoleAssignments[AppRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipal.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipal.g.cs index 1da5a2aa853..6cbbac22b4b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipal.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipal.g.cs @@ -267,7 +267,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; @@ -281,7 +281,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignedTo.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignedTo.g.cs index 1342ae353c5..527ad80ccc9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignedTo.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignedTo.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].AppRoleAssignedTo[AppRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignment.g.cs index 552cf9091bc..3f2ecefd654 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalAppRoleAssignment.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].AppRoleAssignments[AppRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalDelegatedPermissionClassification.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalDelegatedPermissionClassification.g.cs index df8c8066010..4daa9da8357 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalDelegatedPermissionClassification.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalDelegatedPermissionClassification.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedPermissionClassificationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].DelegatedPermissionClassifications[DelegatedPermissionClassificationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedPermissionClassificationId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalEndpoint.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalEndpoint.g.cs index 4f9c74a26e1..2b1cd5cc7c9 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalEndpoint.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalEndpoint.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndpointId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Endpoints[EndpointId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndpointId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs index 8f5aa636857..9389101cb65 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].RemoteDesktopSecurityConfiguration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs index 21d4eb7ad29..623060e16fd 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationApprovedClientApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovedClientAppId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].RemoteDesktopSecurityConfiguration.ApprovedClientApps[ApprovedClientAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovedClientAppId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs index 3f6ed1cbee2..d1753fb736e 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetDeviceGroupId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].RemoteDesktopSecurityConfiguration.TargetDeviceGroups[TargetDeviceGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetDeviceGroupId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJob.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJob.g.cs index 64ee784630b..fe7d7099ebc 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJob.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJob.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Jobs[SynchronizationJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobBulkUpload.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobBulkUpload.g.cs index e67bdb5a60f..100bfeb838d 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobBulkUpload.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobBulkUpload.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Jobs[SynchronizationJobId].BulkUpload.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchema.g.cs index b5d23f6aa4a..b04a55a99c6 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchema.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Jobs[SynchronizationJobId].Schema.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationJobId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs index 80fc9e1d341..12836211fae 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationJobSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Jobs[SynchronizationJobId].Schema.Directories[DirectoryDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplate.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplate.g.cs index a99373d2d35..461c5bffb4b 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplate.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplate.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Templates[SynchronizationTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchema.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchema.g.cs index 3dee8fbe516..41496bb9565 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchema.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchema.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Templates[SynchronizationTemplateId].Schema.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SynchronizationTemplateId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs index e9a54a02a34..132d6e899c5 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalSynchronizationTemplateSchemaDirectory.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.ServicePrincipals[ServicePrincipalId].Synchronization.Templates[SynchronizationTemplateId].Schema.Directories[DirectoryDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryDefinitionId); return; diff --git a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgUserAppRoleAssignment.g.cs b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgUserAppRoleAssignment.g.cs index f21ff8d4a4d..8a036bc7307 100644 --- a/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgUserAppRoleAssignment.g.cs +++ b/src/Applications/wrapper/v1.0/Cmdlets/UpdateMgUserAppRoleAssignment.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].AppRoleAssignments[AppRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppRoleAssignmentId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Client/kiota-lock.json b/src/BackupRestore/wrapper/v1.0/Client/kiota-lock.json index 8f7307aa2c4..d80e32bee24 100644 --- a/src/BackupRestore/wrapper/v1.0/Client/kiota-lock.json +++ b/src/BackupRestore/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "4A71ABC35326B0A761B191251337860B7B152721AE49FF306B3AE1123C7326B478918AF82829FD27F6FE26BD2CDF7651A9DD463A8E18E0232004F5EDE7603753", + "descriptionHash": "1506C68470483C7B108ADC0D456EF692BCC26D086EA98CDA6EE658BCDEB3A0AD00FB50EEDE467FCFDB2CDCA0452ED99A5DFC1DF81F2D96A2FE178EDE39DE2FD0", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/BackupRestore.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/EnableMgSolutionBackupRestore.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/EnableMgSolutionBackupRestore.g.cs index 1f5b8194a2d..d156f26a984 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/EnableMgSolutionBackupRestore.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/EnableMgSolutionBackupRestore.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestore.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestore.g.cs index 04c3e907d7b..f6ea0a630cb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestore.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestore.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession.g.cs index 7ee6225b2d9..ccd85663053 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BrowseSessionBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionBrowseWithNextFetchToken.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionBrowseWithNextFetchToken.g.cs index 4a89f2809e5..3c8ab3f1459 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionBrowseWithNextFetchToken.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionBrowseWithNextFetchToken.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionCount.g.cs index 4afefe773e2..e92554e5a17 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_Get.g.cs index 18c27baa0ac..0113c283115 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_List.g.cs index 2845462d65f..6cee630753e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreBrowseSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule.g.cs index 14d14f067fa..2266c869b34 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionRuleId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRuleCount.g.cs index 40069d74a06..e31f276a6b4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRuleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_Get.g.cs index 7280349dd88..c7803e74c97 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_List.g.cs index 84f99df559f..507f3641a84 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveInclusionRule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit.g.cs index 08d18282ac9..51cd776953b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionUnitId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs index a45f241bba6..6099380dcab 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionUnitsBulkAdditionJobId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJobCount.g.cs index 7f61d6af3fc..0ee26e22720 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJobCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_Get.g.cs index f6bebf5ee6e..57844ddbc5a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_List.g.cs index fd0d59c70e4..4bcc678b7fb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitCount.g.cs index ff1b03d5f92..ab04adb1e2d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnitCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_Get.g.cs index 0630989d857..d4b616ca0ee 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_List.g.cs index 5606d628f24..8041d79a43d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreDriveProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreEmailNotificationSetting.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreEmailNotificationSetting.g.cs index 5298f8ababf..0e78684eedf 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreEmailNotificationSetting.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreEmailNotificationSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs index 070fe8a9fa8..fdc22cc0575 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExchangeProtectionPolicyId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyCount.g.cs index 0cbf1f4eb35..f3cb0423ed3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.g.cs index f001deee928..3ea54c380df 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionRuleId : ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRuleCount.g.cs index b53dc01d386..254732b021e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_Get.g.cs index 48ec8a89b42..8a72d5c85b6 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_List.g.cs index e1943e2b7e3..1c62f608974 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxInclusionRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit.g.cs index 02e87496a73..c5ebb3a2ebb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionUnitId : ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob.g.cs index b09c280c195..5f1025b5840 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionUnitsBulkAdditionJobId : ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJobCount.g.cs index 1b13f23d18e..6e45601e42a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_Get.g.cs index bece43a3bf3..b861e37a563 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_List.g.cs index 24b89c7115a..1ee0d2e38ec 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitBulkAdditionJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitCount.g.cs index 38f49678592..6db24baacd3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnitCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_Get.g.cs index f497f38b083..bf71aa8e4e7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_List.g.cs index d56fb35b1b2..a4e6337a7df 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicyMailboxProtectionUnit_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_Get.g.cs index 3a5d02ab5a7..ee2f42d3975 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_List.g.cs index 42582d89931..8ad4f82a2da 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession.g.cs index a8dde5235a3..1bb057e1e02 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExchangeRestoreSessionId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionCount.g.cs index 25f06e5c2f1..762696be7c1 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs index 49ee3574a57..a81ddee16da 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GranularMailboxRestoreArtifactId : ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactCount.g.cs index e99096ea37f..fbc472ad6b1 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactRestorePoint.g.cs index 342d45159bd..502e14ea981 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifactRestorePoint.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularMailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_Get.g.cs index 3a15cf8f4dd..9526d0549cb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularMailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_List.g.cs index 71d2a8c43c0..eb3268ad244 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs index 016931194a0..6d6fc0ec511 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxRestoreArtifactId : ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs index 27ae80e67a3..b67b7495a3e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxRestoreArtifactsBulkAdditionRequestId : ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequestCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequestCount.g.cs index 16aa41b9d87..7d6363e855b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequestCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_Get.g.cs index 36ff611f8e1..f101294ee4d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_List.g.cs index 7ddd4a2601d..320b8aedca4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactCount.g.cs index 6439bd4ac6c..d5ee6223307 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactRestorePoint.g.cs index 2ccf29f20c8..5bdd47c9eeb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactRestorePoint.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_Get.g.cs index e559b18befb..9f7e116085d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_List.g.cs index 1d4785f7afd..7e2e053ad97 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_Get.g.cs index a518e6c328b..3d026a26f4e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_List.g.cs index e615e13a656..2622ce1e337 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreExchangeRestoreSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule.g.cs index f47a968e3ea..fb0b2893bc7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionRuleId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRuleCount.g.cs index bdbced74dee..c17669c9c6d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRuleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_Get.g.cs index c6042d86f5b..893bb6e100a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_List.g.cs index 8220030e06b..b32ece85455 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxInclusionRule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit.g.cs index 6a085f07705..3ebcfd08530 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionUnitId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs index 058c3d90a6f..427097b96c3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailboxProtectionUnitsBulkAdditionJobId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJobCount.g.cs index ad4777af419..f68aaa4ee05 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJobCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_Get.g.cs index 581b5e0ae4f..ae4c6129913 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_List.g.cs index fe89b3b2f5b..b28bbe6f356 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitCount.g.cs index 1fd0b1f3d86..76a6380b5ad 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnitCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_Get.g.cs index 728e1f38a87..489e5d9fc20 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_List.g.cs index 0d7ed522f71..a9a1300a310 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreMailboxProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs index 2ece1282690..e0475e27da5 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OneDriveForBusinessBrowseSessionId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSessionCount.g.cs index b002c3a2300..b3db4ea4899 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_Get.g.cs index a4f2ec046a4..33eea4bca09 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_List.g.cs index 7c7a396c1d5..7db5cb800ff 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessBrowseSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs index 330dd1248b9..030057e247e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OneDriveForBusinessProtectionPolicyId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyCount.g.cs index 6753e54b89d..e2abf4923fd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.g.cs index ae6a925d2b4..24b8d4b8318 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionRuleId : OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRuleCount.g.cs index a5855980889..54ec17aa7d4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_Get.g.cs index 2f5f57f17fb..a076a7fced0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_List.g.cs index 745f09bb851..717d7e187cb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveInclusionRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.g.cs index 3ebb609fab1..a84afac0b75 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionUnitId : OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob.g.cs index 65344f551a0..e5895698388 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveProtectionUnitsBulkAdditionJobId : OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJobCount.g.cs index d4bb681330c..5453f55ffc0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_Get.g.cs index 348085ebd91..441967018c5 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_List.g.cs index 99655c12e54..1c570cdb3dd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitBulkAdditionJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitCount.g.cs index ef4248791eb..2e937833a2f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnitCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_Get.g.cs index 92bd5e1cf34..c0201652ab2 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_List.g.cs index f1b7b35bc9a..4b6850dfc09 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicyDriveProtectionUnit_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_Get.g.cs index c5c84a54dc1..db541e9efa7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_List.g.cs index 9ffeeda5705..1e44ae5b59f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs index 09da671988e..bff3f3d7c8e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OneDriveForBusinessRestoreSessionId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionCount.g.cs index e4cdee364df..6e2d72c7d9e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs index 5f1de861c0c..ce60d53bcda 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveRestoreArtifactId : OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs index 90c28acca14..fd665913c0c 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveRestoreArtifactsBulkAdditionRequestId : OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequestCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequestCount.g.cs index 789b870240c..0b26ab102de 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequestCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_Get.g.cs index d25607545bf..4a28957a62d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_List.g.cs index 72c09381d0e..f930cc203e0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactCount.g.cs index 31302bed9a5..e43a5ec472d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactRestorePoint.g.cs index 308a0fea0c2..3d9cc4029b0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactRestorePoint.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_Get.g.cs index bd712c117d8..443cf1a80fb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_List.g.cs index 74624fa2d80..4f7279b74ae 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs index 3827f354d60..a5ee22989f8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GranularDriveRestoreArtifactId : OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifactCount.g.cs index 8e3b80fb914..cfc6656a6fb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_Get.g.cs index 131eeafc0d4..d2408122055 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularDriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_List.g.cs index f875e976eb8..a49a3d2f331 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_Get.g.cs index 895a90136f7..aed74244d04 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_List.g.cs index 4fa3c71f023..98b19c077cb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreOneDriveForBusinessRestoreSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint.g.cs index f9040e513b9..1bbdc9d26cf 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RestorePointId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointCount.g.cs index 14a40bb7944..42bc6ddfc41 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointProtectionUnit.g.cs index 0bbb1d0525d..9ad290192bd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePointProtectionUnit.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestorePointId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_Get.g.cs index 9c5946187a0..23795483485 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestorePointId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_List.g.cs index eb645b85335..4c477940717 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestorePoint_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy.g.cs index f20c762de63..21b068806ee 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProtectionPolicyBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicyCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicyCount.g.cs index cb14858864c..96f0399599f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicyCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_Get.g.cs index d3f234aecd4..b6eb92f7975 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_List.g.cs index 32709bd6f7c..e18529f89f2 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit.g.cs index 983a70b9a8a..e16942249b8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProtectionUnitBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit.g.cs index 64bdd78c8cf..fd052c84868 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProtectionUnitBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_Get.g.cs index ec7fa0dd7b8..849b42a3d0f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_List.g.cs index 535f9828ab4..47636f7a86b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsDriveProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit.g.cs index 3859d4c7046..5df44831971 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProtectionUnitBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_Get.g.cs index 0c88bbc3f23..653071f7e70 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_List.g.cs index 826db4c8df7..8b22ddc7d5c 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsMailboxProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit.g.cs index 29a467d809a..747c159d102 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProtectionUnitBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_Get.g.cs index 034e232d654..444f7bcb980 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_List.g.cs index 697b930d9bc..704c7058976 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitAsSiteProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCount.g.cs index 1d551805ae9..a8763d68d7c 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsDriveProtectionUnit.g.cs index e7f9b43fa36..c2f06bee586 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsDriveProtectionUnit.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsMailboxProtectionUnit.g.cs index 76c67592d65..ade01d3ab48 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsMailboxProtectionUnit.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsSiteProtectionUnit.g.cs index c4af48df913..c05d022d307 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnitCountAsSiteProtectionUnit.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_Get.g.cs index 48a6de85047..f7f9fd83e1b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_List.g.cs index 3548e8302f2..9a39a27beba 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp.g.cs index 00391ff99be..916c234e742 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceAppId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceAppCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceAppCount.g.cs index 56e2e7402c5..9ced37d2874 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceAppCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceAppCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_Get.g.cs index 3a0754ddb55..3cbc48abbbb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_List.g.cs index 39a08cff039..f9cda93bf38 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreServiceApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession.g.cs index 4fe0947e7e3..ca65118ef07 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RestoreSessionBaseId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSessionCount.g.cs index 0040a71a272..eae36783819 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_Get.g.cs index b9eae76f362..4644521e031 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestoreSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_List.g.cs index 1c16973f899..c24bedc6530 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession.g.cs index d13f5c8a7d2..14dc5554577 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharePointBrowseSessionId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSessionCount.g.cs index 5891242cd96..a12fbc41e51 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_Get.g.cs index 817f11c1c52..df050f116ca 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_List.g.cs index e094869e11b..df15d0475f5 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointBrowseSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs index 5129149b9b3..4e6175c35fa 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharePointProtectionPolicyId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicyCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicyCount.g.cs index 4977f2f2a1d..da2bccbe3c5 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicyCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule.g.cs index 5caa84c1182..2c2424b0c3f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionRuleId : SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRuleCount.g.cs index 5a973aa22f7..69581d15199 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_Get.g.cs index da937394a0a..bf580d5cad9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_List.g.cs index cadc9be152d..71c9a2853ca 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteInclusionRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit.g.cs index 8753d6bab10..8e89816bab2 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionUnitId : SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob.g.cs index fa1e1e6e085..6ca1a594528 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionUnitsBulkAdditionJobId : SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJobCount.g.cs index 85585cb1a1c..244cac2dce7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_Get.g.cs index 403fc57015a..9dddb290c80 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_List.g.cs index 7454d0f5b22..02fb43c1e60 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitBulkAdditionJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitCount.g.cs index 0b457049ec1..fe9c2347412 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnitCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_Get.g.cs index b0e51617ca1..e3e52b7e7b0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_List.g.cs index 3cca02ab7e4..a3ae4719292 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicySiteProtectionUnit_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_Get.g.cs index 7255d7940fc..7eb5d8a4cd2 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_List.g.cs index f2143479d5f..a4317aabdcf 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession.g.cs index 30aef02454f..2ae28931da8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharePointRestoreSessionId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionCount.g.cs index 996cfe61207..5c6df6b2bb9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs index 1b1fbc7cc62..b51399e304d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GranularSiteRestoreArtifactId : SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifactCount.g.cs index 8febb00a79e..bbd57fc5542 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_Get.g.cs index 1bff0c58b57..e78e3cd7d75 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularSiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_List.g.cs index 2cd08494822..df1ff67ca9d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs index b39cabff326..20fffd333aa 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteRestoreArtifactId : SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs index f90bf015153..8024a6bdad3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteRestoreArtifactsBulkAdditionRequestId : SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequestCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequestCount.g.cs index 9c19d93b78f..4aa7cd99041 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequestCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_Get.g.cs index 1da76d85677..9711585597d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_List.g.cs index c51e5c62022..12fcfa7c376 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactCount.g.cs index 06199a1c908..29a4fce0795 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactRestorePoint.g.cs index d0975a078cb..730efe153aa 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactRestorePoint.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_Get.g.cs index 4e2bd9d1465..35f68cb15f0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_List.g.cs index 937896ddfa3..1d76ce792b0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_Get.g.cs index 67c9b617e4d..c6a85599c66 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_List.g.cs index a2da2693610..7e156952f71 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSharePointRestoreSession_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule.g.cs index dada5764e46..dce061b974b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionRuleId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRuleCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRuleCount.g.cs index b1d53d62a50..33abe6b6b66 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRuleCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRuleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_Get.g.cs index adbf455e168..45a2d81523e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_List.g.cs index 89b193c06bc..0ee5fda65d0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteInclusionRule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit.g.cs index 49077c4a4c6..62778dc143a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionUnitId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs index 3003d8d0636..4b68b0d0895 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteProtectionUnitsBulkAdditionJobId : null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJobCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJobCount.g.cs index 46b97f7fda6..c18ba4f88ab 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJobCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJobCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_Get.g.cs index 19083209bf7..c8a1324d7a3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_List.g.cs index 31faa613ac9..51adc333e10 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitCount.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitCount.g.cs index bc3be4bbfa1..33a3dfcb7db 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitCount.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnitCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_Get.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_Get.g.cs index daa1aabf859..4430ba98ea6 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_Get.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_List.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_List.g.cs index 1c3d66e918d..c2ff11ae35f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_List.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/GetMgSolutionBackupRestoreSiteProtectionUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreProtectionPolicy.g.cs index c281fde340c..05a4461f7ef 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreProtectionPolicy.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreServiceApp.g.cs index ee7893623f7..502ca983699 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreServiceApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreSession.g.cs index 31a62f92815..f96c30d527d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InitializeMgSolutionBackupRestoreSession.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestoreSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgBrowseSolutionBackupRestoreBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgBrowseSolutionBackupRestoreBrowseSession.g.cs index b169bb2de35..786b654e837 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgBrowseSolutionBackupRestoreBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgBrowseSolutionBackupRestoreBrowseSession.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreProtectionPolicy.g.cs index 03af2f9ce95..4cd70914576 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreProtectionPolicy.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreServiceApp.g.cs index 14c71b9f45b..a1ab9eef6d2 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgDeactivateSolutionBackupRestoreServiceApp.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgOffboardSolutionBackupRestoreProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgOffboardSolutionBackupRestoreProtectionUnit.g.cs index 516e66b1b07..2ad4a03e249 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgOffboardSolutionBackupRestoreProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/InvokeMgOffboardSolutionBackupRestoreProtectionUnit.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreBrowseSession.g.cs index 7358f070ec0..683d65245e4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreBrowseSession.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveInclusionRule.g.cs index f0a30bfe022..523c682a9df 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveInclusionRule.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnit.g.cs index 38cec7f0f4c..57a2bf653ec 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnit.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs index 0fc5ed011d2..75bd67d304d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs index 07f9c416f11..0ea3addc0ed 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSession.g.cs index 31cd2d93bc2..ae2b966e903 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSession.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs index fa11f0fafa8..6be3bf152bf 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs index d88c1ec1ad2..8c90229f6d4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs index bb72eb4b62c..9b7dd30a58f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxInclusionRule.g.cs index b7c96e2179e..0752246e0cc 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxInclusionRule.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnit.g.cs index bff78838f24..497cbfa3e8e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnit.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs index 5e13f0643ab..31565cb09e1 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs index a0d48648002..8d0c89cd82e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs index cf5b4caea30..ab5252e48f9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs index 72521f920d8..34cd2c9d450 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs index ee75a1265e8..fe2e1cdc7af 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs index c89656b8f0a..da0fb7c1ecd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs index a67d51a84b1..80e35bd30d8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestorePoint.g.cs index df5b3ffcb7e..17026f7b28d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestorePoint.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreProtectionPolicy.g.cs index 32e1bdede84..f8c99e5ce72 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreProtectionPolicy.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreServiceApp.g.cs index f1ba2bb96d1..e7bfbd7c7ab 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreServiceApp.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSession.g.cs index 3dc5897884b..9af343f60e0 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSession.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointBrowseSession.g.cs index 811905ee010..5746417d2f8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointBrowseSession.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs index 42a36c17e73..4ef454729de 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSession.g.cs index 5eecf969a3d..c05e6f72b9b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSession.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs index ee9077ae984..cf099833828 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs index 29bf54b9a70..0ef4f62b76c 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs index 68955864718..96ed7395eea 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteInclusionRule.g.cs index 74fac38b81a..1614dd1c9ca 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteInclusionRule.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnit.g.cs index 6ffcf3425f6..5f618eb9091 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnit.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs index af555f199e5..7b781f2a385 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/NewMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestore.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestore.g.cs index c9d504322e5..4352d1ed83e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestore.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestore.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreBrowseSession.g.cs index 1aa7151e54c..dca76af5b3e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreBrowseSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveInclusionRule.g.cs index 471f1909219..2b20cd5350e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveInclusionRule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnit.g.cs index 420750e01c1..dbfa6b8a45a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnit.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs index db9393ac299..2d3223e9de9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreEmailNotificationSetting.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreEmailNotificationSetting.g.cs index ce703450343..538684322fd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreEmailNotificationSetting.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreEmailNotificationSetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs index 2ba3b64da81..e1185c827dc 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSession.g.cs index 82e18391a17..8829bb411be 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs index 1b133ee643d..fcdaef89684 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularMailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs index e408b499314..ae72caef45f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs index b02f010c7db..5a5d4afa7a6 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxInclusionRule.g.cs index f530375534e..152e6e8e3fc 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxInclusionRule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnit.g.cs index 001843e8143..42f5e5afed8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnit.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs index 16fc014d16a..6ab1d3c2a0a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs index 7c811cedc05..9aa88e90dd1 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs index b30cbf0ef1d..317589024a3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs index 69d316ec9e6..878f7f76450 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs index 2577b0d619c..e70f2d468a7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs index 3ba2f16e218..0da55f77d32 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs index 53b1fb9a5b7..69a4e38ff46 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularDriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestorePoint.g.cs index ad4c9a44399..f1e0f20527b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestorePoint.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestorePointId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreProtectionPolicy.g.cs index b20f9344171..0f6c039a81e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreServiceApp.g.cs index 4d51ed0aa80..e8d5e569ca8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreServiceApp.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSession.g.cs index 8ff1be1d3ee..9b666025ac7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestoreSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointBrowseSession.g.cs index c018d135292..4fad25b4c54 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointBrowseSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs index 594807a9cfd..160796d5598 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSession.g.cs index 074339ffc4e..66c7c8db5cb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSession.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs index 10f78856fe5..969712e2d2b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularSiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs index 346c213f66b..9524ae6f0ff 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs index 57fe5c9a58b..3f9f7ba4968 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteInclusionRule.g.cs index a6dda7cdb8c..c861080f94a 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteInclusionRule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnit.g.cs index 1fe6aaa4180..e1a8232644e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnit.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs index f0c0a5d24a5..b3cc54fcc3f 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/RemoveMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/SearchMgSolutionBackupRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/SearchMgSolutionBackupRestorePoint.g.cs index 913495222b0..27109e18f34 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/SearchMgSolutionBackupRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/SearchMgSolutionBackupRestorePoint.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/StopMgSolutionBackupRestoreProtectionUnitOffboard.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/StopMgSolutionBackupRestoreProtectionUnitOffboard.g.cs index fbf5c51fa15..a1b6407ec59 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/StopMgSolutionBackupRestoreProtectionUnitOffboard.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/StopMgSolutionBackupRestoreProtectionUnitOffboard.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionUnitBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestore.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestore.g.cs index b581b1358e0..aa4327da608 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestore.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestore.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreBrowseSession.g.cs index 433847676d3..a4934f224b5 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreBrowseSession.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.BrowseSessions[BrowseSessionBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowseSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveInclusionRule.g.cs index a5810e292ca..82a7c763468 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveInclusionRule.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionRuleId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.DriveInclusionRules[DriveProtectionRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnit.g.cs index be3224d3c08..0a16dbb65f3 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnit.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.DriveProtectionUnits[DriveProtectionUnitId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs index 7b4b59f1ae8..07c20b4fcb9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreDriveProtectionUnitBulkAdditionJob.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitsBulkAdditionJobId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.DriveProtectionUnitsBulkAdditionJobs[DriveProtectionUnitsBulkAdditionJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreEmailNotificationSetting.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreEmailNotificationSetting.g.cs index e63bb8648f1..21b31016b52 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreEmailNotificationSetting.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreEmailNotificationSetting.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -76,7 +76,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.EmailNotificationsSetting.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs index c147cad128c..e9669bc9f73 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeProtectionPolicy.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ExchangeProtectionPolicies[ExchangeProtectionPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSession.g.cs index ba43096a97b..79b658d3e51 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSession.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ExchangeRestoreSessions[ExchangeRestoreSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExchangeRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs index 03457143dab..e5eaa9ad2b4 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionGranularMailboxRestoreArtifact.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularMailboxRestoreArtifactId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ExchangeRestoreSessions[ExchangeRestoreSessionId].GranularMailboxRestoreArtifacts[GranularMailboxRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularMailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs index d201edab78b..8bd895306e9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifact.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ExchangeRestoreSessions[ExchangeRestoreSessionId].MailboxRestoreArtifacts[MailboxRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs index 25dc4f16926..ad08d92d753 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreExchangeRestoreSessionMailboxRestoreArtifactBulkAdditionRequest.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactsBulkAdditionRequestId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ExchangeRestoreSessions[ExchangeRestoreSessionId].MailboxRestoreArtifactsBulkAdditionRequests[MailboxRestoreArtifactsBulkAdditionRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxInclusionRule.g.cs index 4c3d442027d..64e7a7b11f1 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxInclusionRule.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionRuleId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.MailboxInclusionRules[MailboxProtectionRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnit.g.cs index d6351ff5a12..8eb6650af57 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnit.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.MailboxProtectionUnits[MailboxProtectionUnitId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs index d451cb1270e..21f7bdecaa8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreMailboxProtectionUnitBulkAdditionJob.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitsBulkAdditionJobId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.MailboxProtectionUnitsBulkAdditionJobs[MailboxProtectionUnitsBulkAdditionJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailboxProtectionUnitsBulkAdditionJobId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs index db1a9e7036e..f0fafd0f725 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessBrowseSession.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessBrowseSessionId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessBrowseSessions[OneDriveForBusinessBrowseSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs index 789578b0d25..9a6b26f64f9 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessProtectionPolicy.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessProtectionPolicies[OneDriveForBusinessProtectionPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs index 3cbd621527a..66cc3ec2fff 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSession.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions[OneDriveForBusinessRestoreSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OneDriveForBusinessRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs index dc91addbe92..f1139bc5c0d 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions[OneDriveForBusinessRestoreSessionId].DriveRestoreArtifacts[DriveRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs index c39f3248eaa..3c9da9246bb 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionDriveRestoreArtifactBulkAdditionRequest.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactsBulkAdditionRequestId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions[OneDriveForBusinessRestoreSessionId].DriveRestoreArtifactsBulkAdditionRequests[DriveRestoreArtifactsBulkAdditionRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs index eb3d36216f8..09c47f6b4ff 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreOneDriveForBusinessRestoreSessionGranularDriveRestoreArtifact.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularDriveRestoreArtifactId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.OneDriveForBusinessRestoreSessions[OneDriveForBusinessRestoreSessionId].GranularDriveRestoreArtifacts[GranularDriveRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularDriveRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestorePoint.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestorePoint.g.cs index 54f193bf9a8..b0c28136f59 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestorePoint.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestorePoint.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestorePointId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.RestorePoints[RestorePointId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestorePointId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreProtectionPolicy.g.cs index eead354edc0..a2ecf7dda4e 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreProtectionPolicy.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ProtectionPolicies[ProtectionPolicyBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProtectionPolicyBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreServiceApp.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreServiceApp.g.cs index d74f46da45e..b63226cbc83 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreServiceApp.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreServiceApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.ServiceApps[ServiceAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAppId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSession.g.cs index 284ea199f5d..6ae6a78cf79 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSession.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestoreSessionBaseId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.RestoreSessions[RestoreSessionBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RestoreSessionBaseId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointBrowseSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointBrowseSession.g.cs index d52f21434c3..517c0d42ff7 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointBrowseSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointBrowseSession.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointBrowseSessionId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointBrowseSessions[SharePointBrowseSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointBrowseSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs index a0c5fd2e5b8..5c815973b37 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointProtectionPolicy.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointProtectionPolicies[SharePointProtectionPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointProtectionPolicyId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSession.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSession.g.cs index 5179419c05b..7189b277a4c 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSession.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSession.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointRestoreSessions[SharePointRestoreSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharePointRestoreSessionId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs index 9cb459c3965..acee8a4ea98 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionGranularSiteRestoreArtifact.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularSiteRestoreArtifactId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointRestoreSessions[SharePointRestoreSessionId].GranularSiteRestoreArtifacts[GranularSiteRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GranularSiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs index 944225e455d..2490f989889 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointRestoreSessions[SharePointRestoreSessionId].SiteRestoreArtifacts[SiteRestoreArtifactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs index a7e815eb2fa..d22ddf619c8 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSharePointRestoreSessionSiteRestoreArtifactBulkAdditionRequest.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactsBulkAdditionRequestId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SharePointRestoreSessions[SharePointRestoreSessionId].SiteRestoreArtifactsBulkAdditionRequests[SiteRestoreArtifactsBulkAdditionRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteRestoreArtifactsBulkAdditionRequestId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteInclusionRule.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteInclusionRule.g.cs index 9b420708a98..de7056cbcfc 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteInclusionRule.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteInclusionRule.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionRuleId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SiteInclusionRules[SiteProtectionRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionRuleId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnit.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnit.g.cs index ab93edffc40..666edd22b6b 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnit.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnit.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SiteProtectionUnits[SiteProtectionUnitId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitId); return; diff --git a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs index 10531538e8f..682a18563cd 100644 --- a/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs +++ b/src/BackupRestore/wrapper/v1.0/Cmdlets/UpdateMgSolutionBackupRestoreSiteProtectionUnitBulkAdditionJob.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitsBulkAdditionJobId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.BackupRestore.SiteProtectionUnitsBulkAdditionJobs[SiteProtectionUnitsBulkAdditionJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteProtectionUnitsBulkAdditionJobId); return; diff --git a/src/Bookings/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Bookings/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..1bd39844c94 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Models/Entity.cs b/src/Bookings/wrapper/v1.0/Client/Models/Entity.cs index f629b7dbe92..b17d79461ee 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/Entity.cs @@ -105,6 +105,7 @@ public Entity() "#microsoft.graph.virtualEventSession" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession(), "#microsoft.graph.virtualEventsRoot" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventsRoot(), "#microsoft.graph.virtualEventTownhall" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhall(), + "#microsoft.graph.virtualEventTownhallRegistrationConfiguration" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration(), "#microsoft.graph.virtualEventWebinar" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventWebinar(), "#microsoft.graph.virtualEventWebinarRegistrationConfiguration" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventWebinarRegistrationConfiguration(), _ => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.Entity(), diff --git a/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 02c8303595c..e9031e35d96 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Book #nullable restore #else public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Book #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..16858523bd2 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEvent.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEvent.cs index ce296551bdd..548f133e44f 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEvent.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEvent.cs @@ -52,6 +52,8 @@ public partial class VirtualEvent : global::Microsoft.Graph.PowerShell.Bookings. #else public List ExternalEventInformation { get; set; } #endif + /// Indicates whether attendee registration is enabled for the virtual event. + public bool? IsRegistrationRequired { get; set; } /// The virtual event presenters. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -115,6 +117,7 @@ public override IDictionary> GetFieldDeserializers() { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "endDateTime", n => { EndDateTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, { "externalEventInformation", n => { ExternalEventInformation = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventExternalInformation.CreateFromDiscriminatorValue)?.AsList(); } }, + { "isRegistrationRequired", n => { IsRegistrationRequired = n.GetBoolValue(); } }, { "presenters", n => { Presenters = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventPresenter.CreateFromDiscriminatorValue)?.AsList(); } }, { "sessions", n => { Sessions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession.CreateFromDiscriminatorValue)?.AsList(); } }, { "settings", n => { Settings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSettings.CreateFromDiscriminatorValue); } }, @@ -135,6 +138,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("displayName", DisplayName); writer.WriteObjectValue("endDateTime", EndDateTime); writer.WriteCollectionOfObjectValues("externalEventInformation", ExternalEventInformation); + writer.WriteBoolValue("isRegistrationRequired", IsRegistrationRequired); writer.WriteCollectionOfObjectValues("presenters", Presenters); writer.WriteCollectionOfObjectValues("sessions", Sessions); writer.WriteObjectValue("settings", Settings); diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventRegistrationConfiguration.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventRegistrationConfiguration.cs index 2ddd94ffe92..d7831b2cfef 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventRegistrationConfiguration.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventRegistrationConfiguration.cs @@ -14,6 +14,10 @@ public partial class VirtualEventRegistrationConfiguration : global::Microsoft.G { /// Total capacity of the virtual event. public int? Capacity { get; set; } + /// Indicates whether registrations require organizer approval before a participant is confirmed. + public bool? IsManualApprovalEnabled { get; set; } + /// Indicates whether more registrants are automatically placed on a waitlist when capacity is reached. + public bool? IsWaitlistEnabled { get; set; } /// Registration questions. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -41,6 +45,7 @@ public partial class VirtualEventRegistrationConfiguration : global::Microsoft.G var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); return mappingValue switch { + "#microsoft.graph.virtualEventTownhallRegistrationConfiguration" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration(), "#microsoft.graph.virtualEventWebinarRegistrationConfiguration" => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventWebinarRegistrationConfiguration(), _ => new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationConfiguration(), }; @@ -54,6 +59,8 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { { "capacity", n => { Capacity = n.GetIntValue(); } }, + { "isManualApprovalEnabled", n => { IsManualApprovalEnabled = n.GetBoolValue(); } }, + { "isWaitlistEnabled", n => { IsWaitlistEnabled = n.GetBoolValue(); } }, { "questions", n => { Questions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue)?.AsList(); } }, { "registrationWebUrl", n => { RegistrationWebUrl = n.GetStringValue(); } }, }; @@ -67,6 +74,8 @@ public override void Serialize(ISerializationWriter writer) if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("capacity", Capacity); + writer.WriteBoolValue("isManualApprovalEnabled", IsManualApprovalEnabled); + writer.WriteBoolValue("isWaitlistEnabled", IsWaitlistEnabled); writer.WriteCollectionOfObjectValues("questions", Questions); writer.WriteStringValue("registrationWebUrl", RegistrationWebUrl); } diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventSession.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventSession.cs index eadc322f64c..33a18f88081 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventSession.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventSession.cs @@ -12,6 +12,8 @@ namespace Microsoft.Graph.PowerShell.Bookings.Client.Models public partial class VirtualEventSession : global::Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingBase, IParsable #pragma warning restore CS1591 { + /// Represents the expected number of attendees for the virtual event session. + public int? Capacity { get; set; } /// The virtual event session end time. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -61,6 +63,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + { "capacity", n => { Capacity = n.GetIntValue(); } }, { "endDateTime", n => { EndDateTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, { "startDateTime", n => { StartDateTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, { "videoOnDemandWebUrl", n => { VideoOnDemandWebUrl = n.GetStringValue(); } }, @@ -74,6 +77,7 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteIntValue("capacity", Capacity); writer.WriteObjectValue("endDateTime", EndDateTime); writer.WriteObjectValue("startDateTime", StartDateTime); writer.WriteStringValue("videoOnDemandWebUrl", VideoOnDemandWebUrl); diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhall.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhall.cs index a19a90eba2b..3517058d3a2 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhall.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhall.cs @@ -14,6 +14,8 @@ public partial class VirtualEventTownhall : global::Microsoft.Graph.PowerShell.B { /// The audience to whom the town hall is visible. The possible values are: everyone, organization, and unknownFutureValue. public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.MeetingAudience? Audience { get; set; } + /// Represents the expected number of attendees for the town hall. + public int? Capacity { get; set; } /// Identity information of the coorganizers of the town hall. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -32,6 +34,22 @@ public partial class VirtualEventTownhall : global::Microsoft.Graph.PowerShell.B #endif /// Indicates whether the town hall is only open to invited people and groups within your organization. The isInviteOnly property can only be true if the value of the audience property is set to organization. public bool? IsInviteOnly { get; set; } + /// Registration configuration of the town hall. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration? RegistrationConfiguration { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration RegistrationConfiguration { get; set; } +#endif + /// Registration records of the town hall. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Registrations { get; set; } +#nullable restore +#else + public List Registrations { get; set; } +#endif /// /// Instantiates a new and sets the default values. /// @@ -58,9 +76,12 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { { "audience", n => { Audience = n.GetEnumValue(); } }, + { "capacity", n => { Capacity = n.GetIntValue(); } }, { "coOrganizers", n => { CoOrganizers = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.CommunicationsUserIdentity.CreateFromDiscriminatorValue)?.AsList(); } }, { "invitedAttendees", n => { InvitedAttendees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.Identity.CreateFromDiscriminatorValue)?.AsList(); } }, { "isInviteOnly", n => { IsInviteOnly = n.GetBoolValue(); } }, + { "registrationConfiguration", n => { RegistrationConfiguration = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration.CreateFromDiscriminatorValue); } }, + { "registrations", n => { Registrations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -72,9 +93,12 @@ public override void Serialize(ISerializationWriter writer) if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteEnumValue("audience", Audience); + writer.WriteIntValue("capacity", Capacity); writer.WriteCollectionOfObjectValues("coOrganizers", CoOrganizers); writer.WriteCollectionOfObjectValues("invitedAttendees", InvitedAttendees); writer.WriteBoolValue("isInviteOnly", IsInviteOnly); + writer.WriteObjectValue("registrationConfiguration", RegistrationConfiguration); + writer.WriteCollectionOfObjectValues("registrations", Registrations); } } } diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhallRegistrationConfiguration.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhallRegistrationConfiguration.cs new file mode 100644 index 00000000000..e5135494668 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventTownhallRegistrationConfiguration.cs @@ -0,0 +1,46 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class VirtualEventTownhallRegistrationConfiguration : global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationConfiguration, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventWebinarRegistrationConfiguration.cs b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventWebinarRegistrationConfiguration.cs index 06bc567e975..a0c46ef6bab 100644 --- a/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventWebinarRegistrationConfiguration.cs +++ b/src/Bookings/wrapper/v1.0/Client/Models/VirtualEventWebinarRegistrationConfiguration.cs @@ -12,10 +12,6 @@ namespace Microsoft.Graph.PowerShell.Bookings.Client.Models public partial class VirtualEventWebinarRegistrationConfiguration : global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationConfiguration, IParsable #pragma warning restore CS1591 { - /// The isManualApprovalEnabled property - public bool? IsManualApprovalEnabled { get; set; } - /// The isWaitlistEnabled property - public bool? IsWaitlistEnabled { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -34,8 +30,6 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - { "isManualApprovalEnabled", n => { IsManualApprovalEnabled = n.GetBoolValue(); } }, - { "isWaitlistEnabled", n => { IsWaitlistEnabled = n.GetBoolValue(); } }, }; } /// @@ -46,8 +40,6 @@ public override void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteBoolValue("isManualApprovalEnabled", IsManualApprovalEnabled); - writer.WriteBoolValue("isWaitlistEnabled", IsWaitlistEnabled); } } } diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5f04718bb89 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrationConfiguration\questions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs new file mode 100644 index 00000000000..33679a742e3 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrationConfiguration\questions\{virtualEventRegistrationQuestionBase-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationQuestionBaseItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public VirtualEventRegistrationQuestionBaseItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public VirtualEventRegistrationQuestionBaseItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property questions for solutions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration questions. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property questions in solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property questions for solutions + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Registration questions. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property questions in solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item.VirtualEventRegistrationQuestionBaseItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item.VirtualEventRegistrationQuestionBaseItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationQuestionBaseItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Registration questions. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationQuestionBaseItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationQuestionBaseItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationQuestionBaseItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs new file mode 100644 index 00000000000..277b0be89ce --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrationConfiguration\questions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class QuestionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Bookings.Client.solutions.virtualEvents.townhalls.item.registrationConfiguration.questions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item.VirtualEventRegistrationQuestionBaseItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("virtualEventRegistrationQuestionBase%2Did", position); + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.Item.VirtualEventRegistrationQuestionBaseItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public QuestionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration/questions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Registration questions. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to questions for solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration questions. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to questions for solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.QuestionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.QuestionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Registration questions. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class QuestionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class QuestionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class QuestionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.cs new file mode 100644 index 00000000000..07036aa018c --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationConfiguration/RegistrationConfigurationRequestBuilder.cs @@ -0,0 +1,236 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrationConfiguration + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationConfigurationRequestBuilder : BaseRequestBuilder + { + /// The questions property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.QuestionsRequestBuilder Questions + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.Questions.QuestionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RegistrationConfigurationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RegistrationConfigurationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrationConfiguration{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property registrationConfiguration for solutions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property registrationConfiguration in solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property registrationConfiguration for solutions + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property registrationConfiguration in solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.RegistrationConfigurationRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.RegistrationConfigurationRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationConfigurationRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read the properties and relationships of a virtualEventTownhallRegistrationConfiguration object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationConfigurationRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationConfigurationRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationConfigurationRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Count/CountRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7fd80b64da5 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..69d90ff2bf6 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\{virtualEventRegistration-id}\cancel + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/cancel", rawUrl) + { + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action cancel + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel.CancelRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3deabd2fdb7 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\{virtualEventRegistration-id}\sessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..f61aafae4c0 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/Item/VirtualEventSessionItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\{virtualEventRegistration-id}\sessions\{virtualEventSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventSessionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public VirtualEventSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public VirtualEventSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions/{virtualEventSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Sessions for a registration. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Sessions for a registration. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item.VirtualEventSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item.VirtualEventSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Sessions for a registration. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs new file mode 100644 index 00000000000..e103f31b023 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\{virtualEventRegistration-id}\sessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Bookings.Client.solutions.virtualEvents.townhalls.item.registrations.item.sessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item.VirtualEventSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("virtualEventSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.Item.VirtualEventSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}/sessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Sessions for a registration. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Sessions for a registration. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.SessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.SessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Sessions for a registration. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.cs new file mode 100644 index 00000000000..882cb979d0e --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/Item/VirtualEventRegistrationItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations\{virtualEventRegistration-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationItemRequestBuilder : BaseRequestBuilder + { + /// The cancel property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The sessions property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.SessionsRequestBuilder Sessions + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.Sessions.SessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public VirtualEventRegistrationItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public VirtualEventRegistrationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations/{virtualEventRegistration%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property registrations for solutions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration records of the town hall. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property registrations for solutions + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Registration records of the town hall. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.VirtualEventRegistrationItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.VirtualEventRegistrationItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Registration records of the town hall. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class VirtualEventRegistrationItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/RegistrationsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/RegistrationsRequestBuilder.cs new file mode 100644 index 00000000000..e1febb8c96f --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/Registrations/RegistrationsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Bookings.Client.solutions.virtualEvents.townhalls.item.registrations.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.VirtualEventRegistrationItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("virtualEventRegistration%2Did", position); + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.Item.VirtualEventRegistrationItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RegistrationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Registration records of the town hall. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to registrations for solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration records of the town hall. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to registrations for solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.RegistrationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.RegistrationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Registration records of the town hall. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..92466579150 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(email='{email}')\cancel + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}')/cancel", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}')/cancel", rawUrl) + { + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action cancel + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel.CancelRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.cs new file mode 100644 index 00000000000..80120e827e7 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithEmail/RegistrationsWithEmailRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(email='{email}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithEmailRequestBuilder : BaseRequestBuilder + { + /// The cancel property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RegistrationsWithEmailRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}'){?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RegistrationsWithEmailRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(email='{email}'){?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property registrations for solutions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration records of the town hall. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property registrations for solutions + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Registration records of the town hall. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.RegistrationsWithEmailRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.RegistrationsWithEmailRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithEmailRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Registration records of the town hall. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithEmailRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithEmailRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithEmailRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..ffd5355c30b --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(userId='{userId}')\cancel + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}')/cancel", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}')/cancel", rawUrl) + { + } + /// + /// Invoke action cancel + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action cancel + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel.CancelRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CancelRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.cs new file mode 100644 index 00000000000..9ed7da4d6f6 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/RegistrationsWithUserId/RegistrationsWithUserIdRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId +{ + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(userId='{userId}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithUserIdRequestBuilder : BaseRequestBuilder + { + /// The cancel property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RegistrationsWithUserIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RegistrationsWithUserIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/registrations(userId='{userId}'){?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property registrations for solutions + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Registration records of the town hall. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property registrations for solutions + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Registration records of the town hall. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property registrations in solutions + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.RegistrationsWithUserIdRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.RegistrationsWithUserIdRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithUserIdRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Registration records of the town hall. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithUserIdRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithUserIdRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RegistrationsWithUserIdRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.cs index bce29703ae7..9c6897ab7f2 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Townhalls/Item/VirtualEventTownhallItemRequestBuilder.cs @@ -3,6 +3,10 @@ using Microsoft.Graph.PowerShell.Bookings.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Bookings.Client.Models; using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Presenters; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail; +using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId; using Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Sessions; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; @@ -25,6 +29,16 @@ public partial class VirtualEventTownhallItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Presenters.PresentersRequestBuilder(PathParameters, RequestAdapter); } + /// The registrationConfiguration property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.RegistrationConfigurationRequestBuilder RegistrationConfiguration + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationConfiguration.RegistrationConfigurationRequestBuilder(PathParameters, RequestAdapter); + } + /// The registrations property + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.RegistrationsRequestBuilder Registrations + { + get => new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Registrations.RegistrationsRequestBuilder(PathParameters, RequestAdapter); + } /// The sessions property public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.Sessions.SessionsRequestBuilder Sessions { @@ -119,6 +133,22 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhall.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(email='{email}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.RegistrationsWithEmailRequestBuilder RegistrationsWithEmail() + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithEmail.RegistrationsWithEmailRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Builds and executes requests for operations under \solutions\virtualEvents\townhalls\{virtualEventTownhall-id}\registrations(userId='{userId}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.RegistrationsWithUserIdRequestBuilder RegistrationsWithUserId() + { + return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Townhalls.Item.RegistrationsWithUserId.RegistrationsWithUserIdRequestBuilder(PathParameters, RequestAdapter); + } + /// /// Delete navigation property townhalls for solutions /// /// A diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs index dfa0741ef3d..5a21c3d8fa6 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/Item/VirtualEventRegistrationQuestionBaseItemRequestBuilder.cs @@ -35,7 +35,7 @@ public VirtualEventRegistrationQuestionBaseItemRequestBuilder(string rawUrl, IRe { } /// - /// Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + /// Delete a registration question from a webinar or town hall. The question can either be a predefined registration question or a custom registration question. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a registration question from a webinar. The question can either be a predefined registration question or a custom registration question. + /// Delete a registration question from a webinar or town hall. The question can either be a predefined registration question or a custom registration question. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs index dbfabcca5b3..8b7e52e570a 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationConfiguration/Questions/QuestionsRequestBuilder.cs @@ -54,7 +54,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + /// Get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. /// Find more info here /// /// A @@ -78,7 +78,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + /// Create a registration question for a webinar or town hall. You can create either a predefined registration question or a custom registration question. /// Find more info here /// /// A @@ -104,7 +104,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + /// Get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a registration question for a webinar. You can create either a predefined registration question or a custom registration question. + /// Create a registration question for a webinar or town hall. You can create either a predefined registration question or a custom registration question. /// /// A /// The request body @@ -154,7 +154,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Webinars.Item.RegistrationConfiguration.Questions.QuestionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of all registration questions for a webinar. The list can include either predefined registration questions or custom registration questions. + /// Get a list of all registration questions for a webinar or town hall. The list can include either predefined registration questions or custom registration questions. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class QuestionsRequestBuilderGetQueryParameters diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs index 6e77c3634f2..5f33b1cdfac 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Cancel/CancelRequestBuilder.cs @@ -34,7 +34,7 @@ public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -56,7 +56,7 @@ public async Task PostAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs index ca32919eacc..9b1e7e98bd1 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/Item/Sessions/SessionsRequestBuilder.cs @@ -54,7 +54,7 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + /// Get a list of sessions summaries that a registrant registered for in a webinar or town hall. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. /// Find more info here /// /// A @@ -78,7 +78,7 @@ public SessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + /// Get a list of sessions summaries that a registrant registered for in a webinar or town hall. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get a list of sessions summaries that a registrant registered for in a webinar. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. + /// Get a list of sessions summaries that a registrant registered for in a webinar or town hall. A session summary contains only the endDateTime, id, joinWebUrl, startDateTime, and subject of a virtual event session. The remaining session properties are null. To get all the properties of a virtualEventSession, use the Get virtualEventSession method. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class SessionsRequestBuilderGetQueryParameters diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/RegistrationsRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/RegistrationsRequestBuilder.cs index 6f00f0b70cc..e3256ed5838 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/RegistrationsRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/Registrations/RegistrationsRequestBuilder.cs @@ -54,7 +54,7 @@ public RegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Get a list of all registration records of a webinar. + /// Get a list of all registration records of a webinar or town hall. /// Find more info here /// /// A @@ -78,7 +78,7 @@ public RegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a registration record for a registrant of a webinar. This method registers the person for the webinar. + /// Create a registration record for a registrant of a webinar or town hall. This method registers the person for the webinar or town hall. /// Find more info here /// /// A @@ -104,7 +104,7 @@ public RegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get a list of all registration records of a webinar. + /// Get a list of all registration records of a webinar or town hall. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a registration record for a registrant of a webinar. This method registers the person for the webinar. + /// Create a registration record for a registrant of a webinar or town hall. This method registers the person for the webinar or town hall. /// /// A /// The request body @@ -154,7 +154,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Bookings.Client.Solutions.VirtualEvents.Webinars.Item.Registrations.RegistrationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get a list of all registration records of a webinar. + /// Get a list of all registration records of a webinar or town hall. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RegistrationsRequestBuilderGetQueryParameters diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs index 0c6ff9cc0c3..d54e7b90026 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithEmail/Cancel/CancelRequestBuilder.cs @@ -34,7 +34,7 @@ public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -56,7 +56,7 @@ public async Task PostAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs index 72c9785d76f..c9d577be290 100644 --- a/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs +++ b/src/Bookings/wrapper/v1.0/Client/Solutions/VirtualEvents/Webinars/Item/RegistrationsWithUserId/Cancel/CancelRequestBuilder.cs @@ -34,7 +34,7 @@ public CancelRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas { } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -56,7 +56,7 @@ public async Task PostAsync(Action> await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Cancel a registrant's registration record for a webinar. + /// Cancel a registrant's registration record for a webinar or town hall. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Bookings/wrapper/v1.0/Client/kiota-lock.json b/src/Bookings/wrapper/v1.0/Client/kiota-lock.json index 79e2e649cd1..bb35e36cc4d 100644 --- a/src/Bookings/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Bookings/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "3C9785D3652C596FAD195E5B4A37EAE2CE9EAB0D6640E9BB238733386C181ED7BD2A306E39602BBDA8016DA3237A599ED43AA0AFC3A7F2D4F98CC5730DB1D5A0", + "descriptionHash": "E899A99E1903FA2908413362E97406549E25642814D470E541CC97C97A57811B133E172B62FD0D5F036692721868CADE9C4AADD914C87D81BDCF23752F47E340", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Bookings.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness.g.cs index d12ad791f98..9a528393a5a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingBusinessId : null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment.g.cs index e1ac5e9644a..5016283ab3b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingAppointmentId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointmentCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointmentCount.g.cs index e203c013bff..05b6a0f31f3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointmentCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_Get.g.cs index 0ebe01614fa..d38ecbb4ab3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_List.g.cs index 442d1f1b24d..ff201ee7afb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessAppointment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView.g.cs index c144330439e..9f5eea67867 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingAppointmentId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarViewCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarViewCount.g.cs index b08af8080a9..bbeab75cc2a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarViewCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarViewCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_Get.g.cs index 25835855e47..59d9085d516 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_List.g.cs index 328e89c0f7d..880e56c1355 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCalendarView_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCount.g.cs index e2e66a9cfb5..86a4fa351b4 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion.g.cs index c08a98bfc18..dc992b7daae 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingCustomQuestionId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestionCount.g.cs index 78f4de08b76..098d7caa8e8 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_Get.g.cs index 20b6c1627c7..190d0872c40 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomQuestionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_List.g.cs index 1b485db4d4d..b74a1f08408 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomQuestion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer.g.cs index 73dc0f8b428..e049ce0b750 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingCustomerBaseId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomerCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomerCount.g.cs index a87452fb388..e13195fb154 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomerCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomerCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_Get.g.cs index d444e719224..69efbbed171 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomerBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_List.g.cs index 5256500b205..824ff815b37 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessCustomer_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService.g.cs index 3e8b21c76c6..a8fd7cffd82 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingServiceId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessServiceCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessServiceCount.g.cs index e4f143ec1eb..df8800463a1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessServiceCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessServiceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_Get.g.cs index 0f86515167b..22818b548f2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingServiceId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_List.g.cs index b95ab0965d8..1d3d8ef9028 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessService_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffAvailability.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffAvailability.g.cs index 2c63e251f12..e6e132bdbc4 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffAvailability.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffAvailability.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember.g.cs index 5eea004eeaf..5076dc96c2e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingStaffMemberBaseId : BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMemberCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMemberCount.g.cs index f9f64ef8324..6065e0bbd18 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMemberCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_Get.g.cs index 970f1b76a39..887400ecfb7 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingStaffMemberBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_List.g.cs index 53211e19308..839dce0355e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusinessStaffMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_Get.g.cs index d64c589b34e..c58f00ecd7a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_List.g.cs index 7a296ada1de..349e4c0aee9 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingBusiness_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency.g.cs index 3b28c59754d..3f3b4d6f7cd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookingCurrencyId : null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrencyCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrencyCount.g.cs index 3cfdfc7873e..294d84e90cb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrencyCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrencyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_Get.g.cs index ca13d78815b..2ad073ac200 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCurrencyId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_List.g.cs index 2eda9299e4c..04b038b10be 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgBookingCurrency_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent.g.cs index 1a570e0d8b6..52eca5f5546 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventId : null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventCount.g.cs index fb74b1c68ac..596ae4771fa 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter.g.cs index 72ca0c05147..10f390b3e54 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventPresenterId : VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenterCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenterCount.g.cs index 49e5403529a..152b80607e1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenterCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenterCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_Get.g.cs index 67a2aef6260..c72e82115ee 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_List.g.cs index b7b1ae7eef3..5bdd7c85f2a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventPresenter_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession.g.cs index 2391770c555..add4f410985 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventSessionId : VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport.g.cs index ae67ad50beb..2e083a84cb7 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MeetingAttendanceReportId : VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs index 7b9966f21f7..89cb5916dbc 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttendanceRecordId : MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecordCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecordCount.g.cs index cdfcd4755c4..61d55bb5fc8 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecordCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecordCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_Get.g.cs index 79489319e74..43b57f34a9f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_List.g.cs index dc2842f1574..4fd0cb137bb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportAttendanceRecord_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportCount.g.cs index a3a3a9931fe..79df63e0003 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReportCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_Get.g.cs index f07464eeedd..98206de5a44 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_List.g.cs index 7137cbc6312..86c7e10519b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionAttendanceReport_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionCount.g.cs index 599c4eafa52..888e31fc408 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSessionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_Get.g.cs index bfa21a61246..49e8a1aabf9 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_List.g.cs index fd843664ec9..a98b3ff3d40 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventSession_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall.g.cs index cabfaa3a853..fa280b20ebf 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventTownhallId : null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallCount.g.cs index c1404f3e415..8252a3f4ce4 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserIdAndRoleWithUserIdWithRole.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserIdAndRoleWithUserIdWithRole.g.cs index bfd78033412..6ae8df55a7c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserIdAndRoleWithUserIdWithRole.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserIdAndRoleWithUserIdWithRole.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserRoleWithRole.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserRoleWithRole.g.cs index ed54b3057af..e810e0736d2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserRoleWithRole.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallGetByUserRoleWithRole.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter.g.cs index b804a48b26b..47e1e276350 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventPresenterId : VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenterCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenterCount.g.cs index 0d9975f1c06..f35b449abeb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenterCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenterCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_Get.g.cs index 1a0ebed28b6..8d7a4054fef 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_List.g.cs index 8e5ad6377b6..f068c3fe933 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallPresenter_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration.g.cs new file mode 100644 index 00000000000..19f92c6b6af --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistration", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration), ParameterSetName = new[] { "Get" })] + public class GetMgVirtualEventTownhallRegistrationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgVirtualEventTownhallRegistration_Get or Get-MgVirtualEventTownhallRegistration_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgVirtualEventTownhallRegistration_Get" : "Get-MgVirtualEventTownhallRegistration_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventRegistrationId : VirtualEventTownhallId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfiguration.g.cs new file mode 100644 index 00000000000..f6f8640d2d9 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfiguration.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationConfiguration")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration))] + public class GetMgVirtualEventTownhallRegistrationConfigurationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs new file mode 100644 index 00000000000..1c3268770be --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationConfigurationQuestion", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBaseCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase), ParameterSetName = new[] { "Get" })] + public class GetMgVirtualEventTownhallRegistrationConfigurationQuestionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string VirtualEventRegistrationQuestionBaseId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_Get or Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_Get" : "Get-MgVirtualEventTownhallRegistrationConfigurationQuestion_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventRegistrationQuestionBaseId : VirtualEventTownhallId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestionCount.g.cs new file mode 100644 index 00000000000..79109f90ee5 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions/$count")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationConfigurationQuestionCount")] + [OutputType(typeof(int))] + public class GetMgVirtualEventTownhallRegistrationConfigurationQuestionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_Get.g.cs new file mode 100644 index 00000000000..223f36f265d --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase-id}")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationConfigurationQuestion_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase))] + public class GetMgVirtualEventTownhallRegistrationConfigurationQuestion_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationQuestionBaseId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_List.g.cs new file mode 100644 index 00000000000..38ac9fe16a6 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationConfigurationQuestion_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationConfigurationQuestion_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase))] + public class GetMgVirtualEventTownhallRegistrationConfigurationQuestion_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBaseCollectionResponse? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationCount.g.cs new file mode 100644 index 00000000000..aa5ade451c0 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/$count")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationCount")] + [OutputType(typeof(int))] + public class GetMgVirtualEventTownhallRegistrationCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession.g.cs new file mode 100644 index 00000000000..a257c4ecd76 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}/sessions")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession), ParameterSetName = new[] { "Get" })] + public class GetMgVirtualEventTownhallRegistrationSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string VirtualEventSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgVirtualEventTownhallRegistrationSession_Get or Get-MgVirtualEventTownhallRegistrationSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgVirtualEventTownhallRegistrationSession_Get" : "Get-MgVirtualEventTownhallRegistrationSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventSessionId : VirtualEventRegistrationId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSessionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSessionCount.g.cs new file mode 100644 index 00000000000..f455ee4b4e9 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}/sessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationSessionCount")] + [OutputType(typeof(int))] + public class GetMgVirtualEventTownhallRegistrationSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_Get.g.cs new file mode 100644 index 00000000000..b3527d08737 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}/sessions/{virtualEventSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession))] + public class GetMgVirtualEventTownhallRegistrationSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string VirtualEventSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions[VirtualEventSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_List.g.cs new file mode 100644 index 00000000000..e37f65e6755 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistrationSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}/sessions")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistrationSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSession))] + public class GetMgVirtualEventTownhallRegistrationSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventSessionCollectionResponse? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Sessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_Get.g.cs new file mode 100644 index 00000000000..f9a49293c04 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistration_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration))] + public class GetMgVirtualEventTownhallRegistration_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_List.g.cs new file mode 100644 index 00000000000..430747e1154 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallRegistration_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("GET", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations")] + [Cmdlet(VerbsCommon.Get, "MgVirtualEventTownhallRegistration_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration))] + public class GetMgVirtualEventTownhallRegistration_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationCollectionResponse? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession.g.cs index 48fc0158ac7..d12693e1bc6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventSessionId : VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport.g.cs index dad04792c16..d3596c0612c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MeetingAttendanceReportId : VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs index a49342b43d4..b9c72d9821b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttendanceRecordId : MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecordCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecordCount.g.cs index 9a15a5fc7b8..67dab05b68f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecordCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecordCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_Get.g.cs index fdcd996bbcb..ba2798a9844 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_List.g.cs index 15e1d7bd512..30bf9941f9d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportCount.g.cs index 2f5554a0575..5fc7c61ed8d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReportCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_Get.g.cs index b3b2a449396..b68ac77d6f9 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_List.g.cs index 49be885693d..91958a599b6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionAttendanceReport_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionCount.g.cs index 01380815fc3..435e1205fa3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSessionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_Get.g.cs index 2c76bea7c18..3650fe05e62 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_List.g.cs index f11a7419598..00324418794 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhallSession_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_Get.g.cs index 37a23d6d48e..1cef11b0d17 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_List.g.cs index a80de4f28be..c6136f522a9 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventTownhall_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar.g.cs index b2ea984a4b2..d8b1926ceb8 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventWebinarId : null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarCount.g.cs index 878460d2145..4a52210e35f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserIdAndRoleWithUserIdWithRole.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserIdAndRoleWithUserIdWithRole.g.cs index 17c716483d2..46fa1407578 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserIdAndRoleWithUserIdWithRole.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserIdAndRoleWithUserIdWithRole.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserRoleWithRole.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserRoleWithRole.g.cs index e8729fd6f01..837d7d28476 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserRoleWithRole.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarGetByUserRoleWithRole.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter.g.cs index dfbbc1b6493..60551bd791c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventPresenterId : VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenterCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenterCount.g.cs index be4e42c480f..8a99041b6a1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenterCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenterCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_Get.g.cs index ae605cf7ca0..b75e8be626f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_List.g.cs index 1a859e95e91..63eb91ec33c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarPresenter_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration.g.cs index b6f9e64bf06..b2d54613686 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventRegistrationId : VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfiguration.g.cs index 59cf82cdd31..9235cb977cf 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfiguration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs index 442620991a5..07c05313a93 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventRegistrationQuestionBaseId : VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestionCount.g.cs index 066017d2038..a0f57b49d22 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_Get.g.cs index 24720e61d16..1d30dcd1a5b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_List.g.cs index 028603b4b32..a82b2941ccd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationConfigurationQuestion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationCount.g.cs index 2b9f8dff15b..dcaf9eb159b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession.g.cs index 3821e7dc5ad..140f04ef10f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventSessionId : VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSessionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSessionCount.g.cs index 3693b0e0f74..9e9dfd5edab 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSessionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSessionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_Get.g.cs index 570b7676bc3..8c4f14fa316 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_List.g.cs index 242b6609169..2089a0b9c4d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistrationSession_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_Get.g.cs index 8fe50405123..1e40d7fc7b1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_List.g.cs index e3dfd896b5b..985c5a06c33 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarRegistration_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession.g.cs index f07bee9700e..303c2168003 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VirtualEventSessionId : VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport.g.cs index b29316ddbd9..801d7e31b5f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MeetingAttendanceReportId : VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs index d0b2daa3d13..20704164bc2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttendanceRecordId : MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount.g.cs index 04ff30146bf..1407873142c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecordCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_Get.g.cs index ffb3a7c5686..15f5ea254f3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_List.g.cs index d4a4711dd01..2e16fce9b7d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportCount.g.cs index 51b56ae2e65..bb885807e24 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReportCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_Get.g.cs index e9c7c76d772..b30f632a44c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_List.g.cs index 1f161660f8a..9e3f660b045 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionAttendanceReport_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionCount.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionCount.g.cs index c4855b1ad94..8ab36bdf93c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionCount.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSessionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_Get.g.cs index cbc7458ee44..4cdd06b3de4 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_List.g.cs index 64c621e3bcc..7c4d0c2abf0 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinarSession_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_Get.g.cs index 1cfc65624a7..e297f1b2802 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_List.g.cs index 19bb5803d3c..6971aee359f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEventWebinar_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_Get.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_Get.g.cs index 1be2cde09ab..62d89292738 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_Get.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_List.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_List.g.cs index f7ab13b72f1..1b9316b5dee 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_List.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/GetMgVirtualEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/InvokeMgVirtualEventTownhallRegistrationCancel.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/InvokeMgVirtualEventTownhallRegistrationCancel.g.cs new file mode 100644 index 00000000000..a8c10e3935d --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/InvokeMgVirtualEventTownhallRegistrationCancel.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("POST", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}/cancel")] + [Cmdlet(VerbsLifecycle.Invoke, "MgVirtualEventTownhallRegistrationCancel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgVirtualEventTownhallRegistrationCancelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventRegistrationId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].Cancel.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusiness.g.cs index ce63fb380c5..dd40563dfa2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusiness.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessAppointment.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessAppointment.g.cs index 48fc4bedc5a..b8b96b64da6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessAppointment.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessAppointment.g.cs @@ -225,7 +225,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCalendarView.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCalendarView.g.cs index 52170511012..4f57b3a19f6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCalendarView.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCalendarView.g.cs @@ -225,7 +225,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomQuestion.g.cs index 7bfeb88141c..b37db098cfd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomQuestion.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomer.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomer.g.cs index 6a29f3e9576..defe94fa49e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomer.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessCustomer.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessService.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessService.g.cs index c936a8f100f..e197268e2e5 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessService.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessService.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessStaffMember.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessStaffMember.g.cs index 4cae303d998..db032b5cc0e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessStaffMember.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingBusinessStaffMember.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingCurrency.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingCurrency.g.cs index 940a9df6dcd..9cd9c5898ea 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingCurrency.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgBookingCurrency.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEvent.g.cs index 3f6f91b6723..7894571af49 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEvent.g.cs @@ -22,6 +22,9 @@ public class NewMgVirtualEventCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.CommunicationsIdentitySet? CreatedBy { get; set; } @@ -58,6 +61,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + if (this.IsParameterBound(nameof(CreatedBy))) body.CreatedBy = CreatedBy; @@ -92,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventPresenter.g.cs index b6c5abd16ad..ea31dabd958 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventPresenter.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSession.g.cs index 5ace9fc43c4..69bd664a069 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSession.g.cs @@ -77,6 +77,9 @@ public class NewMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -101,6 +104,9 @@ public class NewMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -110,6 +116,9 @@ public class NewMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -194,6 +203,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -218,6 +230,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -227,6 +242,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -255,7 +273,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReport.g.cs index 0028e3ac79b..48f6f5cdb95 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReport.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs index 2918eb2f5fd..9531e1dcad1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhall.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhall.g.cs index 052d793c527..40388e24bcb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhall.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhall.g.cs @@ -22,6 +22,12 @@ public class NewMgVirtualEventTownhallCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public bool? IsInviteOnly { get; set; } @@ -70,6 +76,12 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(IsInviteOnly))) body.IsInviteOnly = IsInviteOnly; @@ -116,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallPresenter.g.cs index 7d9978deae9..d71b86b013f 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallPresenter.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistration.g.cs new file mode 100644 index 00000000000..57cf6584761 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistration.g.cs @@ -0,0 +1,123 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("POST", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations")] + [Cmdlet(VerbsCommon.New, "MgVirtualEventTownhallRegistration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration))] + public class NewMgVirtualEventTownhallRegistrationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CancelationDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Email { get; set; } + + [Parameter(Mandatory = false)] + public string? FirstName { get; set; } + + [Parameter(Mandatory = false)] + public string? LastName { get; set; } + + [Parameter(Mandatory = false)] + public string? PreferredLanguage { get; set; } + + [Parameter(Mandatory = false)] + public string? PreferredTimezone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? RegistrationDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? UserId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventExternalRegistrationInformation? ExternalRegistrationInformation { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionAnswer[]? RegistrationQuestionAnswers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventAttendeeRegistrationStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventTownhallId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration(); + + if (this.IsParameterBound(nameof(CancelationDateTime))) + body.CancelationDateTime = CancelationDateTime; + + if (this.IsParameterBound(nameof(Email))) + body.Email = Email; + + if (this.IsParameterBound(nameof(FirstName))) + body.FirstName = FirstName; + + if (this.IsParameterBound(nameof(LastName))) + body.LastName = LastName; + + if (this.IsParameterBound(nameof(PreferredLanguage))) + body.PreferredLanguage = PreferredLanguage; + + if (this.IsParameterBound(nameof(PreferredTimezone))) + body.PreferredTimezone = PreferredTimezone; + + if (this.IsParameterBound(nameof(RegistrationDateTime))) + body.RegistrationDateTime = RegistrationDateTime; + + if (this.IsParameterBound(nameof(UserId))) + body.UserId = UserId; + + if (this.IsParameterBound(nameof(ExternalRegistrationInformation))) + body.ExternalRegistrationInformation = ExternalRegistrationInformation; + + if (this.IsParameterBound(nameof(RegistrationQuestionAnswers))) + body.RegistrationQuestionAnswers = RegistrationQuestionAnswers!.ToList(); + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs new file mode 100644 index 00000000000..18a0fd7fedc --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("POST", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions")] + [Cmdlet(VerbsCommon.New, "MgVirtualEventTownhallRegistrationConfigurationQuestion", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase))] + public class NewMgVirtualEventTownhallRegistrationConfigurationQuestionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRequired { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventTownhallId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRequired))) + body.IsRequired = IsRequired; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSession.g.cs index f6235e508a1..b6dc8e4ca27 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSession.g.cs @@ -77,6 +77,9 @@ public class NewMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -101,6 +104,9 @@ public class NewMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -110,6 +116,9 @@ public class NewMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -194,6 +203,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -218,6 +230,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -227,6 +242,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -255,7 +273,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReport.g.cs index 391e8550f4c..b9feeb64bde 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReport.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs index a0c1e887c92..f737dbf25f8 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinar.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinar.g.cs index f72ee24c36c..6e1c90bcfd6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinar.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinar.g.cs @@ -22,6 +22,9 @@ public class NewMgVirtualEventWebinarCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.CommunicationsIdentitySet? CreatedBy { get; set; } @@ -64,6 +67,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + if (this.IsParameterBound(nameof(CreatedBy))) body.CreatedBy = CreatedBy; @@ -104,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarPresenter.g.cs index 778f3622460..3a624b1248c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarPresenter.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistration.g.cs index a33563ab4c0..cfb43c5a428 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistration.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs index 454a9606d66..283bd8ae204 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSession.g.cs index ed9effc9a85..059f1c9fdfd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSession.g.cs @@ -77,6 +77,9 @@ public class NewMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -101,6 +104,9 @@ public class NewMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -110,6 +116,9 @@ public class NewMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -194,6 +203,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -218,6 +230,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -227,6 +242,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -255,7 +273,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReport.g.cs index 59d73a12139..a75348467d0 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReport.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs index 1b02708e045..33b3d5d8800 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/NewMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgBookingBusiness.g.cs index 0181e57ec83..7170189c1fc 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgBookingBusiness.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgVirtualEvent.g.cs index 6c6a607d7c4..8ada9e66729 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/PublishMgVirtualEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusiness.g.cs index 00a06b400bb..9825c935b0b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusiness.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessAppointment.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessAppointment.g.cs index 06bc6caf37e..25735671677 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessAppointment.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessAppointment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCalendarView.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCalendarView.g.cs index 9bd86d61d1d..6ea8c4e8493 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCalendarView.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCalendarView.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomQuestion.g.cs index cc7b2bb6745..e3553aee4de 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomQuestion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomQuestionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomer.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomer.g.cs index be8270902f8..ebeaf6ca77d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomer.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessCustomer.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomerBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessService.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessService.g.cs index 46381f567b7..f2821da87bf 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessService.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessService.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingServiceId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessStaffMember.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessStaffMember.g.cs index f72438b8877..fc85d131954 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessStaffMember.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingBusinessStaffMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingStaffMemberBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingCurrency.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingCurrency.g.cs index 8379aa24a41..9bb8f10b120 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingCurrency.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgBookingCurrency.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCurrencyId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEvent.g.cs index 55bba463f43..34402373396 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEvent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventPresenter.g.cs index 9fc3faf6f51..00b94e43a0a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventPresenter.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSession.g.cs index 7ae02b9f93f..47b25387fc3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSession.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReport.g.cs index 4abb92dda59..13e7c38ef5a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReport.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs index 45d9315f422..b01a93a3f73 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhall.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhall.g.cs index 92e81a1c648..09e3925eee6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhall.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhall.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallPresenter.g.cs index 2b753a3c623..34e25c4a8c9 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallPresenter.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistration.g.cs new file mode 100644 index 00000000000..ce0e2f7e8e3 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistration.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("DELETE", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}")] + [Cmdlet(VerbsCommon.Remove, "MgVirtualEventTownhallRegistration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgVirtualEventTownhallRegistrationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventRegistrationId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfiguration.g.cs new file mode 100644 index 00000000000..d7dd2ed7b05 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfiguration.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("DELETE", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration")] + [Cmdlet(VerbsCommon.Remove, "MgVirtualEventTownhallRegistrationConfiguration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgVirtualEventTownhallRegistrationConfigurationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventTownhallId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs new file mode 100644 index 00000000000..9b96722e0c1 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("DELETE", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase-id}")] + [Cmdlet(VerbsCommon.Remove, "MgVirtualEventTownhallRegistrationConfigurationQuestion", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgVirtualEventTownhallRegistrationConfigurationQuestionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationQuestionBaseId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventRegistrationQuestionBaseId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); + return; + } + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSession.g.cs index 07419b827b5..9e1c0d38c3d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSession.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReport.g.cs index 94e0f321172..e471a3e8316 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReport.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs index 749a21352c6..2fa0082963e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinar.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinar.g.cs index 77537880a92..706243560b3 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinar.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinar.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarPresenter.g.cs index 69b4874f3e3..9a8e03c4426 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarPresenter.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistration.g.cs index 8588c6d26b6..2db5dc1cd8b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfiguration.g.cs index b9ed735d960..023d13fe999 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfiguration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs index 4d2622abc69..8988520859b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSession.g.cs index d86a9861b6e..be8f5bd56d6 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSession.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReport.g.cs index 89b7892afcc..9aac9e9e390 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReport.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs index b2504a1c8fc..870d69193d0 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/RemoveMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/SetMgVirtualEventExternalEventInformation.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/SetMgVirtualEventExternalEventInformation.g.cs index 3f5cfc375d5..2530566e3c1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/SetMgVirtualEventExternalEventInformation.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/SetMgVirtualEventExternalEventInformation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessAppointment.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessAppointment.g.cs index 86d153c6bb3..74331018ee2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessAppointment.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessAppointment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessCalendarView.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessCalendarView.g.cs index 29563a36b63..63aeec5c717 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessCalendarView.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgBookingBusinessCalendarView.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEvent.g.cs index 064cb7706a7..c201d90f986 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEventWebinarRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEventWebinarRegistration.g.cs index 59a466a01e7..fbefdd45d76 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEventWebinarRegistration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/StopMgVirtualEventWebinarRegistration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UnpublishMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UnpublishMgBookingBusiness.g.cs index b9872e81533..58cdb488e08 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UnpublishMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UnpublishMgBookingBusiness.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusiness.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusiness.g.cs index 6d16bbbc360..cfcec785777 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusiness.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusiness.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingBusinessId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessAppointment.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessAppointment.g.cs index 53764028a0a..d788f7b1bcb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessAppointment.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessAppointment.g.cs @@ -227,7 +227,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; @@ -241,7 +241,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].Appointments[BookingAppointmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCalendarView.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCalendarView.g.cs index 553e3bc274d..e4591ba8259 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCalendarView.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCalendarView.g.cs @@ -227,7 +227,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; @@ -241,7 +241,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].CalendarView[BookingAppointmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingAppointmentId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomQuestion.g.cs index a34cca3126c..3f9b275cac5 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomQuestion.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomQuestionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].CustomQuestions[BookingCustomQuestionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomQuestionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomer.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomer.g.cs index 0df503c2c1b..05805542c3b 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomer.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessCustomer.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomerBaseId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].Customers[BookingCustomerBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCustomerBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessService.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessService.g.cs index 75ed69a2cec..10615f567a1 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessService.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessService.g.cs @@ -185,7 +185,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingServiceId); return; @@ -199,7 +199,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].Services[BookingServiceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingServiceId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessStaffMember.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessStaffMember.g.cs index 9ddaea4a8dc..7503cd2a3a0 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessStaffMember.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingBusinessStaffMember.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingStaffMemberBaseId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingBusinesses[BookingBusinessId].StaffMembers[BookingStaffMemberBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingStaffMemberBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingCurrency.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingCurrency.g.cs index 8b5e24ba052..f11a5760d0e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingCurrency.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgBookingCurrency.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCurrencyId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Solutions.BookingCurrencies[BookingCurrencyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookingCurrencyId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEvent.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEvent.g.cs index 02547486773..1c0b13ca547 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEvent.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEvent.g.cs @@ -23,6 +23,9 @@ public class UpdateMgVirtualEventCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.CommunicationsIdentitySet? CreatedBy { get; set; } @@ -59,6 +62,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + if (this.IsParameterBound(nameof(CreatedBy))) body.CreatedBy = CreatedBy; @@ -93,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; @@ -107,7 +113,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Events[VirtualEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventPresenter.g.cs index ab571cbb547..5d426227090 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventPresenter.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Events[VirtualEventId].Presenters[VirtualEventPresenterId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSession.g.cs index 606e24f1b42..0e7bbcce3ce 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSession.g.cs @@ -79,6 +79,9 @@ public class UpdateMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -103,6 +106,9 @@ public class UpdateMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -112,6 +118,9 @@ public class UpdateMgVirtualEventSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -196,6 +205,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -220,6 +232,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -229,6 +244,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -257,7 +275,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; @@ -271,7 +289,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReport.g.cs index 446a44a7e3b..274af0ac024 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReport.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs index 6dd9d74c515..9b5ac71f5fd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventSessionAttendanceReportAttendanceRecord.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Events[VirtualEventId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhall.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhall.g.cs index 72b7cb8ccec..67739982384 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhall.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhall.g.cs @@ -23,6 +23,12 @@ public class UpdateMgVirtualEventTownhallCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public bool? IsInviteOnly { get; set; } @@ -71,6 +77,12 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(IsInviteOnly))) body.IsInviteOnly = IsInviteOnly; @@ -117,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; @@ -131,7 +143,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventTownhallId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallPresenter.g.cs index 8e179083f06..f56472ae08e 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallPresenter.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Presenters[VirtualEventPresenterId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistration.g.cs new file mode 100644 index 00000000000..bbacd15d09f --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistration.g.cs @@ -0,0 +1,140 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("PATCH", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrations/{virtualEventRegistration-id}")] + [Cmdlet(VerbsData.Update, "MgVirtualEventTownhallRegistration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration))] + public class UpdateMgVirtualEventTownhallRegistrationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CancelationDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Email { get; set; } + + [Parameter(Mandatory = false)] + public string? FirstName { get; set; } + + [Parameter(Mandatory = false)] + public string? LastName { get; set; } + + [Parameter(Mandatory = false)] + public string? PreferredLanguage { get; set; } + + [Parameter(Mandatory = false)] + public string? PreferredTimezone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? RegistrationDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? UserId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventExternalRegistrationInformation? ExternalRegistrationInformation { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionAnswer[]? RegistrationQuestionAnswers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventAttendeeRegistrationStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventRegistrationId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration(); + + if (this.IsParameterBound(nameof(CancelationDateTime))) + body.CancelationDateTime = CancelationDateTime; + + if (this.IsParameterBound(nameof(Email))) + body.Email = Email; + + if (this.IsParameterBound(nameof(FirstName))) + body.FirstName = FirstName; + + if (this.IsParameterBound(nameof(LastName))) + body.LastName = LastName; + + if (this.IsParameterBound(nameof(PreferredLanguage))) + body.PreferredLanguage = PreferredLanguage; + + if (this.IsParameterBound(nameof(PreferredTimezone))) + body.PreferredTimezone = PreferredTimezone; + + if (this.IsParameterBound(nameof(RegistrationDateTime))) + body.RegistrationDateTime = RegistrationDateTime; + + if (this.IsParameterBound(nameof(UserId))) + body.UserId = UserId; + + if (this.IsParameterBound(nameof(ExternalRegistrationInformation))) + body.ExternalRegistrationInformation = ExternalRegistrationInformation; + + if (this.IsParameterBound(nameof(RegistrationQuestionAnswers))) + body.RegistrationQuestionAnswers = RegistrationQuestionAnswers!.ToList(); + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistration? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Registrations[VirtualEventRegistrationId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfiguration.g.cs new file mode 100644 index 00000000000..fd313cc203a --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfiguration.g.cs @@ -0,0 +1,98 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("PATCH", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration")] + [Cmdlet(VerbsData.Update, "MgVirtualEventTownhallRegistrationConfiguration", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration))] + public class UpdateMgVirtualEventTownhallRegistrationConfigurationCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsManualApprovalEnabled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWaitlistEnabled { get; set; } + + [Parameter(Mandatory = false)] + public string? RegistrationWebUrl { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventTownhallId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration(); + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + + if (this.IsParameterBound(nameof(IsManualApprovalEnabled))) + body.IsManualApprovalEnabled = IsManualApprovalEnabled; + + if (this.IsParameterBound(nameof(IsWaitlistEnabled))) + body.IsWaitlistEnabled = IsWaitlistEnabled; + + if (this.IsParameterBound(nameof(RegistrationWebUrl))) + body.RegistrationWebUrl = RegistrationWebUrl; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventTownhallRegistrationConfiguration? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventTownhallId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs new file mode 100644 index 00000000000..7d2a4806146 --- /dev/null +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallRegistrationConfigurationQuestion.g.cs @@ -0,0 +1,88 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Bookings.Client; +using Microsoft.Graph.PowerShell.Bookings.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Bookings +{ + [GraphRoute("PATCH", "/solutions/virtualEvents/townhalls/{virtualEventTownhall-id}/registrationConfiguration/questions/{virtualEventRegistrationQuestionBase-id}")] + [Cmdlet(VerbsData.Update, "MgVirtualEventTownhallRegistrationConfigurationQuestion", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase))] + public class UpdateMgVirtualEventTownhallRegistrationConfigurationQuestionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string VirtualEventTownhallId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string VirtualEventRegistrationQuestionBaseId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRequired { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(VirtualEventRegistrationQuestionBaseId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRequired))) + body.IsRequired = IsRequired; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Bookings.Client.Models.VirtualEventRegistrationQuestionBase? result; + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSession.g.cs index f1d1bb88973..439ba4accfd 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSession.g.cs @@ -79,6 +79,9 @@ public class UpdateMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -103,6 +106,9 @@ public class UpdateMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -112,6 +118,9 @@ public class UpdateMgVirtualEventTownhallSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -196,6 +205,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -220,6 +232,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -229,6 +244,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -257,7 +275,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; @@ -271,7 +289,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReport.g.cs index 7614943f9d5..c16f5d4d991 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReport.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs index cef3f727529..2900a08938d 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventTownhallSessionAttendanceReportAttendanceRecord.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Townhalls[VirtualEventTownhallId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinar.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinar.g.cs index 56f9bfab3c1..5af6b9e0696 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinar.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinar.g.cs @@ -23,6 +23,9 @@ public class UpdateMgVirtualEventWebinarCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? DisplayName { get; set; } + [Parameter(Mandatory = false)] + public bool? IsRegistrationRequired { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.CommunicationsIdentitySet? CreatedBy { get; set; } @@ -65,6 +68,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(DisplayName))) body.DisplayName = DisplayName; + if (this.IsParameterBound(nameof(IsRegistrationRequired))) + body.IsRegistrationRequired = IsRegistrationRequired; + if (this.IsParameterBound(nameof(CreatedBy))) body.CreatedBy = CreatedBy; @@ -105,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; @@ -119,7 +125,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarPresenter.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarPresenter.g.cs index 5138ae20198..c8c08104599 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarPresenter.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarPresenter.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Presenters[VirtualEventPresenterId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventPresenterId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistration.g.cs index 385405e43c4..e9426f3a6fa 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistration.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Registrations[VirtualEventRegistrationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfiguration.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfiguration.g.cs index 2739f8f7234..4e25bdf6c7a 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfiguration.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfiguration.g.cs @@ -23,15 +23,15 @@ public class UpdateMgVirtualEventWebinarRegistrationConfigurationCommand : Graph [Parameter(Mandatory = false)] public int? Capacity { get; set; } - [Parameter(Mandatory = false)] - public string? RegistrationWebUrl { get; set; } - [Parameter(Mandatory = false)] public bool? IsManualApprovalEnabled { get; set; } [Parameter(Mandatory = false)] public bool? IsWaitlistEnabled { get; set; } + [Parameter(Mandatory = false)] + public string? RegistrationWebUrl { get; set; } + @@ -48,15 +48,15 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Capacity))) body.Capacity = Capacity; - if (this.IsParameterBound(nameof(RegistrationWebUrl))) - body.RegistrationWebUrl = RegistrationWebUrl; - if (this.IsParameterBound(nameof(IsManualApprovalEnabled))) body.IsManualApprovalEnabled = IsManualApprovalEnabled; if (this.IsParameterBound(nameof(IsWaitlistEnabled))) body.IsWaitlistEnabled = IsWaitlistEnabled; + if (this.IsParameterBound(nameof(RegistrationWebUrl))) + body.RegistrationWebUrl = RegistrationWebUrl; + var requestAdapter = GetRequestAdapter(); @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].RegistrationConfiguration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventWebinarId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs index fa943cd1ac2..be0e3b37ee2 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarRegistrationConfigurationQuestion.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].RegistrationConfiguration.Questions[VirtualEventRegistrationQuestionBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventRegistrationQuestionBaseId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSession.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSession.g.cs index 281c9c570ac..a93df94bceb 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSession.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSession.g.cs @@ -79,6 +79,9 @@ public class UpdateMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? VideoTeleconferenceId { get; set; } + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + [Parameter(Mandatory = false)] public string? VideoOnDemandWebUrl { get; set; } @@ -103,6 +106,9 @@ public class UpdateMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.ItemBody? JoinInformation { get; set; } @@ -112,6 +118,9 @@ public class UpdateMgVirtualEventWebinarSessionCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Bookings.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -196,6 +205,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(VideoTeleconferenceId))) body.VideoTeleconferenceId = VideoTeleconferenceId; + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + if (this.IsParameterBound(nameof(VideoOnDemandWebUrl))) body.VideoOnDemandWebUrl = VideoOnDemandWebUrl; @@ -220,6 +232,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -229,6 +244,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -257,7 +275,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; @@ -271,7 +289,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions[VirtualEventSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VirtualEventSessionId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReport.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReport.g.cs index 08db535e2d7..cb791bb738c 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReport.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReport.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs index a724f3816c8..3b124312697 100644 --- a/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs +++ b/src/Bookings/wrapper/v1.0/Cmdlets/UpdateMgVirtualEventWebinarSessionAttendanceReportAttendanceRecord.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Solutions.VirtualEvents.Webinars[VirtualEventWebinarId].Sessions[VirtualEventSessionId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/Calendar/wrapper/v1.0/Client/kiota-lock.json b/src/Calendar/wrapper/v1.0/Client/kiota-lock.json index 3130e90656b..0437c54581a 100644 --- a/src/Calendar/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Calendar/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "A8FC68569260B7FE8398D4AB2BF1F2B065EE0ED66024FFA337B7FDACC67A0DC63B65D87235783AE43AF3DE9198458F843AF8AE78ADAAC01CFB1FE90B6A8D9341", + "descriptionHash": "E92D765EBC20862D5B42619B1C313F16545DAF9B7020588D2E73115925DE6412D64586279B1D79806DF856533EA2049D567B4B07F705E8485BC5A81E99BDFA07", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Calendar.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs index 860005c82e1..5aba11116c7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs index 0f230b7d8bf..c51e144f725 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs index e665959c8d6..4c0024acce2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EventId : GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs index 9a852594f25..94e1cd63cc1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs index 2beee828c20..950a55d22c6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs index 33c1cb10cce..4d9d634cc25 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CalendarPermissionId : GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs index 5f69bde7807..541250ada98 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs index 793acf10915..534e6ef4a5e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs index ff155b199ab..555dc10e481 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs index 5761e878f6a..12146d6e467 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs index d730cd80d5a..803efaf0dea 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs index 34815f652b5..eb19e055331 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EventId : GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs index 55eb014b71c..0b0c9d2f505 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs index 6d9005c9648..0aa3810bfad 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs index 34008aa6380..60b5d4c1788 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs index 0493005e85f..42c948c9ca8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs index 14528d57ca7..fd439bbef75 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs index a59d34dbd55..85a0badd66c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs index 60ee4337996..331e381bff1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs index c68f17c8c7a..7f4d6825a25 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs index 7c481f53f0b..f4ae3fd73c6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs index 88309dcbf13..1486b1dc391 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs index 99397c215e2..f0c1a26337a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs index 58105cd74e2..dc11b2f1d75 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs index 468c6fa73e0..4f70bc1220a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs index ae5c41abfd0..16236f9380e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs index c012a9da643..f60f7c1c162 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs index b3356120a49..8f3f297e153 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs index ae16f2ec9e0..81dd1b72177 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs index 092e4f775c5..13345384970 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs index 7a3855b0a8e..80318e0060f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs index 8bdbb0700be..2338a42333b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs index ab3ea7bd2b8..f0eb58353c9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs index 70507d71f3d..93661597773 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FootprintMapId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs index 0a12faceb38..9d4e743a200 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs index 9399579fd8d..8fc7c0712d6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FootprintMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs index f71ab57cc46..02675962dd8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs index e4a832b5a86..5c591fc6c5a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LevelMapId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs index 3d842de1b9a..f94f17199ea 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs index 50f4e1e6ec1..1f9f1c9ce36 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FixtureMapId : LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs index 5b7dc0fb224..3e1b673a25f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs index 796a395f8b5..d935b69ac09 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FixtureMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs index a09a8e3ed81..791a8ab0a94 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs index 01e6ba8a0e2..0fd8ab7e6e4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionMapId : LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs index 6cd46e25cd8..f30ed7b74ad 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs index 7daf5ede0f8..d1a1a84404c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs index b5a40600b80..6b6fd5af092 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs index bad76b05b7c..ced317b3ef0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnitMapId : LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs index 7f2dbe8907a..3db492fd891 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs index 2f21105f36b..f636f67d196 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnitMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs index 8e14bfaaf13..1afa6f39414 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs index e22d6c551cd..37a7c18d8a4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs index 15efac6c585..92a79071843 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs index 665a70ce005..14b5ddaa743 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs index d5f5b70e273..5ba23a2dcf5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs index 0d26ca384ac..a9f79b5cdc5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs index 19c2333e710..330216ec4f0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs index 92c03e086e8..cc195af070b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs index 60252543a58..17a517a18b3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs index e00c70a40b9..9f71609f781 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs index b1ee2815855..48c9d29d65d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs index 4339db7f2d8..96559480a43 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs index a224f1590c9..d3911a48d16 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs index c68db42e7c4..0023491f98a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs index 2001e00dbc6..c36582f6865 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs index d88c4c172b6..42ac2f6143b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs index 47ac3044c33..7aab502b9c3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs index 4b978967d6b..4b6054ca3b1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs index 2dce91c12ac..b2240265ac6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs index 82a2b3f2df0..1d432c433d9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs index 124bb3fecfb..096bda286f2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs index 179c0597eab..7338b797793 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs index f8430beee18..c08921be70c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs index 4f292b74ef0..068f4ed872a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs index c1bc103e07b..5ef93f76fb3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs index b3c97770c3e..3b03b27cc23 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs index a374ae703ef..12c014f8e25 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs index 16a2a208836..ce6a3b2c241 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs index f48bb38ac96..43be5f5cadd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs index d0266aa23a1..510afe02e91 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RoomId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs index 109b4259c18..be04a4bbd18 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs index a752ca9ba11..5818433b336 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs index 8cb1dafe390..d9b814ae39e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs index 9204b44d1ab..5e39cf1dcad 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs index 42760ebf93e..054edcfa41a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs index 1a562c766d4..b5c4a498e0f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs index 3d45e19d001..3edb1d42df5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs index aeb084c1acc..a905a38636f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkspaceId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs index 528ce853a0c..ff4878b5493 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs index 76e947d2943..aac3775cb4f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs index ea30bcf0c16..9d10f318513 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs index 6e36bd0de29..baaeea4c142 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs index 2a4d4133d16..e1ffdbd36d6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs index 2821c029f02..339cd505ac7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs index 16558156479..3820de80715 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs index 9b7132a94a3..31d78ccd284 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs index 8594e03ee19..f161e4f9f9a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs index aeeb8776d59..0c80c54b485 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs index 97b97006eb8..d63120b250e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs index 571d0608cdc..67e494ee425 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs index e9e83f09c91..9b14eba9f52 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs index e53b821d448..dd70bcfc98a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs index 770f3775c54..27c481b0325 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs index 07ee4d71715..343a695c87e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs index 9901193098f..47c1d587199 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs index 9b51d92b42f..61ac3f3b976 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs index 2a402a175ef..2e8d03f7edd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlaceId : null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs index b47ed0dd8e8..a1bb3652368 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs index 043c9ae0a5f..897dfabd3c6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs index 3b0726e65bb..ce09c34858c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs index d4e6c092d5f..2931d51f6da 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs index dea7bda67fa..d5622782fa2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs index 8a4bc647b5b..10fd5adf781 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs index c7cbbd6e42c..9efcc60b57d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CheckInClaimCalendarEventId : PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs index 3da1d0c3b04..fc546681805 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs index 7cfd612c84d..aae9acf16c7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs index 64832142b40..56c8a6a20c8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs index 407854787c9..5c9aff063ae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs index 4ac73034f55..aa900e54b5c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs index a8cae3a5b3f..ee49c494665 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs index 499a45e8951..f922922abde 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs index 678a6a320fa..ff09723dc9e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs index 661ea864bf3..cfedf7ba6c4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs index fc5d2b179a4..5dbafcd1baf 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs index 6fefa2dac72..f2886cff66a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs index cc97976c4ef..e94c79b5414 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CalendarId : UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs index 6a28a27bcae..4c28b5dca16 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs index ccfc4091228..2e1a92edbe8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs index bd4de9530a3..97ff5c490b9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CalendarGroupId : UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index 8d0d93852ed..eebf900b67f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CalendarId : CalendarGroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs index e8184deffca..727bc2b47cc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -88,7 +88,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs index d18be345180..3d6237a8002 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs index 3cc241294a8..a8f108c70bb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarGroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs index 85e0529f031..c02aca2cda6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs index 22b36396714..1759945a395 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarGroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs index 7c77fdfa2ed..aeff8b33a50 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs index b7b56055ec7..561ce25612b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CalendarPermissionId : UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs index eaca93e5e99..202aa14272d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs index 6767d246a76..5dee1a8e417 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs index 3643e5b6bec..7bc00d7b93a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs index bd5d05a23d3..451e7ccf7d8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs index a6a35c17a2a..ee5be114a47 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs index e939abed603..f11f64618fd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs index b2c6871dd1f..475d3c7fd2a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs index 6c02e79f02e..10dbd44ab72 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs index b8d7a7ffd83..245530664af 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EventId : UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs index 5222e31e89f..a3a27711104 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs index 079321606de..1468bc09845 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs index 91eeef799ac..58aafb4bf8d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs index 183f5482446..2e09a8ee09e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs index abca39757ad..f73dac92119 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs index 93460d9c646..1274bc78915 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs index db05ec4fc54..9d0c0040f9f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs index bd4ee785ad6..5eb4651717b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs index b905b453478..7afbe906cb6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs index 8afe1c3fc94..fba66a25ecd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs index bed58262395..1c94212e25c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs index 62dcf4469fe..ec8618ce44b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs index c935d094bde..c450c4f6fa8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs index 5234bbf2928..6bce61c8de4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs index 6cbc28ed93b..82468a1f7e6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs index fe9e396ee79..840b8ef43c7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs index e09e4fd3ea1..e718ba54318 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs index 9c5f92c5985..e7eaa43ca88 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs index a6ce8cea9aa..362d27769bb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs index 35ae8beeb9e..e5bb5dacea9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs index 219bddc20a2..c8641c63406 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs index 189cfa5a7f3..5814b94d638 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs index 1d3d503c3ad..92d05f0c492 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs index 7c7310b943a..b4a87037f67 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs index 6eb034a1f9a..cc3d004bfb5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs index 49be3f7ff45..ed711ba9d1f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs index b63b8c6972e..96d80e01937 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs index 69eecdf193c..1f11803b3df 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs index 7096a666bf3..0d0dad7a5e6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs index a3ec02f4ab5..bfac52391ae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs index 5dee92fbbd3..4a3037b828d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs index 9b90597b75e..4c0e4d6a7eb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs index 4e54606ba36..176db279d46 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs index dffc0815e76..198dad4e297 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs index 56fe778e014..87c76b54a7f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs index 74e0816cd99..2d90c11a262 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs index 99434626e01..f7794c4d341 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs index 854243d8cf1..53274d42ce9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs index 1107bbf19cd..a3b39cf43d4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs index 1da95b3f0ca..969f04dc598 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs index b0ec93b8f43..9ceffd11462 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs index a7959b447d3..8a9b652d364 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs index 100d7cc8cb5..49ee8a3e35f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs index 37d02b3a834..0bc4bb67049 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs index fb00c120eef..29979b916ef 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs index 788114cac29..edd77e53719 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs index 254dc14d8d5..fdd14bab819 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs @@ -165,7 +165,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs index 0620706bbbd..f5d01c6236e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs index 5942cac9b58..a2c707f5f5e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs index e880b87f4b5..e87e3791337 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs index a772fbdfc35..df40f4428a1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs index df3d834a91f..761ea75b9d7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs index a8d7b610726..9a31e2619cb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs index dcc0818bd57..45d98f6614e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs index adbe2b2ce41..1bad6419fcb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs index 2cd9c4796dd..3852ab39d46 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs index c0be05e79ff..5c7d52ec53d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs index 83d8b183b25..3121c516ae7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs index 413fa4a5e07..58421ce8b17 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs index 180cd8707e2..0b8c77f6ef6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs index 50db839ffc4..4434c19f248 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs index ed0ebaf2e3a..ea1be6d4206 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs index c4b2ded9143..a29a2b3cac8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs index 8ee76a1128a..ca15145135c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs index 182aba00fc9..7d95c18b31d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs index a34d61514e1..ed2f9774480 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs index a63793cb59a..45b5c6a7373 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs index d3016560523..a83b9ae5fef 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs index 3cc50b2a220..a8b772c7d8a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs index 4ea7e22437c..b328b50b41e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs index f41ce06b850..5620c6e8302 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs index 32a64f95e98..82ecc79b37c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs index b450ae41dc4..85fc2be9c98 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs index 34a32e20cc5..0b548a14282 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FootprintMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs index 8462797f290..306fbe19859 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs index 8c198cb7bd1..e447726cb2a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FixtureMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs index 59ccb38c338..a7a3f8d7497 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs index ee7bc17dd2d..bde8a2158dd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnitMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs index c7bc5a3539f..524921eb43a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs index f49a5bb625a..50a2f2f4f95 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs index 95f5fb0e657..d4b534e4809 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs index 8779b166bb0..312597a9010 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs index 54eb85f59e0..e98b844812a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs index f44d2e9c9bd..cb76fed0a9a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs index ef09c2cbc4f..8b8eebc9513 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs index a9ca7c6e184..b8c617cdcfa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs index 1ad3f98fe4c..9923b69cbcb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs index 1b7f47932a4..8cabdb12c3b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs index 9243f564424..049b4b8f8e5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs index d7b4402751e..70cbbcf59a8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarGroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs index 1f767c319c5..129506e1357 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs index c1571db2aac..ac41a11617c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs index 341d5e11541..28d0c079c95 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs index fd7b77308c2..560c2d03cd7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs index 24e92f68eca..7f00d0b791f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs index 011e1dc1514..963dee2d8bd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs index aa2bcd4c756..b8f18a621a8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs index d8b5ab280d5..f58e70ac496 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs index 1f9deeac536..cebae3fc842 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; @@ -307,7 +307,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Calendar.Events[EventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs index ad8af864715..3ad73837a98 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs index be02c527205..b22ebb1916e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; @@ -307,7 +307,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Events[EventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs index a69f6045690..635032eae3b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs index 6488c8c9827..9e3ff00f10c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs index 06314f9aafe..822ffef7b0b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs index 89da821678d..5d9c4949a9c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs index c89324deab6..6261e0b9f8c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FootprintMapId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FootprintMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs index cb19a607048..5165cd20555 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LevelMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs index 248197ac67c..89ce63957f6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FixtureMapId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FixtureMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs index 59de1a3d75d..fddfe786554 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionMapId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs index be58d5026c6..6f9c43ea217 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnitMapId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnitMapId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs index 8a18466f26d..df1c6ce8f48 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs index 0f5321720c6..4f23c635b5a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs index 9e638a142ea..c894a66dcb8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs index 23772e2772a..de1cce28833 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs index 1e56daf58a3..edada1fdcfb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; @@ -181,7 +181,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoomId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs index d0f22b97858..58458d00063 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs index d8d720ac18b..22d05bc8def 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkspaceId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs index 097a5c2910b..f54f700fe41 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs index 400dfb124a2..2b73a47de80 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs index 30a6b6a974d..d2a21e087ef 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs index fec5b9daa6d..ced8509caa9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs index 11d6a989433..95ee561f37a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarGroupId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].CalendarGroups[CalendarGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarGroupId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs index ce820141b82..5c3e9567306 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CalendarPermissionId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs index d2da5a52491..d96952670c4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; @@ -307,7 +307,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Events[EventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EventId); return; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs index 3aeccd9c362..a9d3e700ef4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Client/kiota-lock.json b/src/ChangeNotifications/wrapper/v1.0/Client/kiota-lock.json index 3930f85e73e..c4393410a00 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Client/kiota-lock.json +++ b/src/ChangeNotifications/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "DC7C6B7BC62BEB2005924A3A368CD4A8B383238C7C0BDB6077A3E8FEB86F5E4100004695B7D0732E5429750A03B3921C9C135B9A5E2F0548FA0A57ACB5CC1381", + "descriptionHash": "CED55EF318A6C5AADAAF8B79C3AD20306B1380DF10AAF6B285612B27AA99DC0528AE78744D367E7AAB43B4BC0E3935372EE5E3D9E5D3E98ECEC87F420B6F8DEE", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/ChangeNotifications.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription.g.cs index 6c2c2daa909..24c99700b02 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : null); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_Get.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_Get.g.cs index 78803255250..df07c580723 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_Get.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_Get.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_List.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_List.g.cs index b92b47923d1..4369ba17af5 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_List.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/GetMgSubscription_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSubscription.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSubscription.g.cs index f1887869a59..e4f1af24421 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSubscription.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSubscription.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/NewMgSubscription.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/NewMgSubscription.g.cs index 66613642894..48195d84886 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/NewMgSubscription.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/NewMgSubscription.g.cs @@ -130,7 +130,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/RemoveMgSubscription.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/RemoveMgSubscription.g.cs index 48988ae2693..73f2c98e96f 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/RemoveMgSubscription.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/RemoveMgSubscription.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/UpdateMgSubscription.g.cs b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/UpdateMgSubscription.g.cs index c747178e03e..cc4a2c3e39a 100644 --- a/src/ChangeNotifications/wrapper/v1.0/Cmdlets/UpdateMgSubscription.g.cs +++ b/src/ChangeNotifications/wrapper/v1.0/Cmdlets/UpdateMgSubscription.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/CloudCommunications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..8a35a6ea08d --- /dev/null +++ b/src/CloudCommunications/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.CloudCommunications.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index e9bffb07c6a..350da977e10 100644 --- a/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Clou #nullable restore #else public global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Clou #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..6188b362256 --- /dev/null +++ b/src/CloudCommunications/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.CloudCommunications.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/CloudCommunications/wrapper/v1.0/Client/kiota-lock.json b/src/CloudCommunications/wrapper/v1.0/Client/kiota-lock.json index 116a3c3f38c..160275c49b6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Client/kiota-lock.json +++ b/src/CloudCommunications/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "99042A07A8016A33D6E06B16CD6600C94A04DDA08539BB43274445D7621F6D3F46D3B996F5068AF60F966C00DB628B3BD81BA43A68DEDA7C3AFFF54B8CE6EF4F", + "descriptionHash": "6BCED37183A1E8AAFE6BF2432B9A386C034CF86B54C7950C479199FEA1D3076127AF294CC9753025D6AC65B7F6B6583081BC6A7075B7ED1B383EEFA982B84CF9", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/CloudCommunications.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/AddMgCommunicationCallLargeGalleryView.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/AddMgCommunicationCallLargeGalleryView.g.cs index 1cd599d2cf4..f2ea2911f71 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/AddMgCommunicationCallLargeGalleryView.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/AddMgCommunicationCallLargeGalleryView.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresence.g.cs index 6ec94fb6cf8..a84ea5f651f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresence.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceAutomaticLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceAutomaticLocation.g.cs index 8f393259e75..f7ca2584c2a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceAutomaticLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceAutomaticLocation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceLocation.g.cs index c119ba4b9ce..318f5b3d961 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceLocation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceUserPreferredPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceUserPreferredPresence.g.cs index 872db134750..846bf16579f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceUserPreferredPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgCommunicationPresenceUserPreferredPresence.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresence.g.cs index e9998a2667e..4b8544a3bde 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresence.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceAutomaticLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceAutomaticLocation.g.cs index b3e0025a327..31a6f21dd71 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceAutomaticLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceAutomaticLocation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceLocation.g.cs index 72c3e00602f..bdf842ed6e5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceLocation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceUserPreferredPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceUserPreferredPresence.g.cs index 07f2c1adef1..f4dee2e157f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceUserPreferredPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/ClearMgUserPresenceUserPreferredPresence.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall.g.cs index baa6c99d017..a868a5386df 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AdhocCallId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallCount.g.cs index ffa906917b3..f10028e4f97 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording.g.cs index 28212113779..e90b11524a0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallRecordingId : AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingContent.g.cs index acb6f5f1a45..dec83673971 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingCount.g.cs index 43739cc42c9..52632589f2b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingDelta.g.cs index 9d90383b787..97e93c4e79e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecordingDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_Get.g.cs index b40bee9a94e..bac08b81322 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_List.g.cs index b06de14371d..05b1f6ea091 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallRecording_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript.g.cs index 4e40c70f28f..4b931b1245a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallTranscriptId : AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptContent.g.cs index 3f1c07ca54e..05302263fb3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptCount.g.cs index 45b2c7a8ffe..d5a75c4f523 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptDelta.g.cs index 4b289b3a0e5..41e6c8ae6c6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptMetadataContent.g.cs index b0c256cffc7..2a3464a7f1b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscriptMetadataContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_Get.g.cs index 9fdd8ea6330..24e43306fba 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_List.g.cs index cdca7572dcc..6ef7a67ced9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCallTranscript_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_Get.g.cs index 6447c417d07..1a34e050866 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_List.g.cs index 6519749c093..e16292a1992 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationAdhocCall_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall.g.cs index 6910f60471c..4972d0dea1f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup.g.cs index 30e613cdc3e..3496999cdef 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AudioRoutingGroupId : CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroupCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroupCount.g.cs index 2cd6fca1b0d..8b0ec7edf4c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroupCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_Get.g.cs index a2ad14faffd..d42a357187d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AudioRoutingGroupId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_List.g.cs index 4fb7bf71ca3..863c93d48e2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallAudioRoutingGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession.g.cs index bbadba0e28f..1aa6fb30423 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentSharingSessionId : CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSessionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSessionCount.g.cs index 6b2012931ff..a06fae98ea1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSessionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSessionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_Get.g.cs index 0b61de8e377..834ba0cd4b2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentSharingSessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_List.g.cs index 4c89e209b95..3c28c047cf0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallContentSharingSession_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallCount.g.cs index 4857f0e3930..f8e509777bb 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation.g.cs index 361b240d718..2f176cc8471 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CommsOperationId : CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperationCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperationCount.g.cs index e10379ada40..b090672dea1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperationCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_Get.g.cs index 33734f82fbc..ac13a20bf29 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CommsOperationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_List.g.cs index 477e37efbd5..554f87556ad 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant.g.cs index 00b65b55fca..af3e3c44551 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ParticipantId : CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipantCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipantCount.g.cs index d6471b67865..c9d7fe28fb9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipantCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_Get.g.cs index 88ccc7194fb..5129a37799c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_List.g.cs index ea1fc2535e0..0d578999874 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallParticipant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord.g.cs index 5acf0a04ca4..8fcb7263195 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallRecordId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordCount.g.cs index ed391efb154..c01a713b086 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime.g.cs index 4f491279b64..7ca6b716248 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetDirectRoutingCallsWithFromDateTimeWithToDateTime.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime.g.cs index a2e09763978..0200b424f32 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordGetPstnCallsWithFromDateTimeWithToDateTime.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordOrganizerV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordOrganizerV2.g.cs index 5ca8df83cf9..2ab6525d5fb 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordOrganizerV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordOrganizerV2.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipant.g.cs new file mode 100644 index 00000000000..3adb90b1f17 --- /dev/null +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipant.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.CloudCommunications.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.CloudCommunications +{ + [GraphRoute("GET", "/communications/callRecords/{callRecord-id}/participants_v2/$count")] + [Cmdlet(VerbsCommon.Get, "MgCommunicationCallRecordParticipant")] + [OutputType(typeof(int))] + public class GetMgCommunicationCallRecordParticipantCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CallRecordId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Communications.CallRecords[CallRecordId].Participants_v2.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CallRecordId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2.g.cs index 77cc8b0b183..567d5f592f2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ParticipantId : CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2Count.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2Count.g.cs deleted file mode 100644 index a9a34d12415..00000000000 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2Count.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.CloudCommunications.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.CloudCommunications -{ - [GraphRoute("GET", "/communications/callRecords/{callRecord-id}/participants_v2/$count")] - [Cmdlet(VerbsCommon.Get, "MgCommunicationCallRecordParticipantV2Count")] - [OutputType(typeof(int))] - public class GetMgCommunicationCallRecordParticipantV2CountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string CallRecordId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public string? Filter { get; set; } - - [Parameter(Mandatory = false)] - public string? Search { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - int? result; - try - { - result = client.Communications.CallRecords[CallRecordId].Participants_v2.Count.GetAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - if (this.IsParameterBound(nameof(Search))) - requestConfiguration.QueryParameters.Search = Search; - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, CallRecordId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_Get.g.cs index f548153e382..47b9da55d2f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_List.g.cs index c2a1eed7f64..0d8f4829511 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordParticipantV2_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession.g.cs index db9115f2d80..72da960711a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SessionId : CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionCount.g.cs index 7d0228561ac..246cec613b8 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionSegmentCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionSegmentCount.g.cs index 5c9cfe2d3fd..9914205136c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionSegmentCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSessionSegmentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_Get.g.cs index ff98302edb6..3b5c0cde2c6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_List.g.cs index 228cf178ce4..751da21c60f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecordSession_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_Get.g.cs index eff1b1dd5af..ef820779001 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_List.g.cs index ed6f3fc7994..b224372271d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCallRecord_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_Get.g.cs index a4e5d98feef..2b6f1c1dbc3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_List.g.cs index 56d57effe9e..9e688ff940f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationCall_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting.g.cs index 013d1149cf6..c138525a1b6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnlineMeetingId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport.g.cs index 8ef0ef42855..3e9fd418349 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MeetingAttendanceReportId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs index d2bd449e440..55daa171220 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttendanceRecordId : MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs index 38ad53a3474..ad637d40873 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs index 8a99512ce86..1d3f9948581 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs index 348121b0872..538e57969b2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportCount.g.cs index 31b8050a688..0e69d08deb7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReportCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_Get.g.cs index 925bb2ca494..e4742cab198 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_List.g.cs index f1a242e568e..bf3d9fb38fe 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendanceReport_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendeeReport.g.cs index 2ecc9980513..c606e1ea2c3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingAttendeeReport.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation.g.cs index e2215644dfb..42b4d2385fc 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnlineMeetingEngagementConversationId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationCount.g.cs index 8fba841d57c..554d1a50bb3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage.g.cs index 4fcf8478a52..68bd055b259 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageId : OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageConversation.g.cs index ec52732eace..162daf87c0d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageConversation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageCount.g.cs index 79f30c13a36..037d90b9510 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction.g.cs index 4f9ec6cba47..bfb68c28086 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageReactionId : EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReactionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReactionCount.g.cs index 15980b12c64..724bf2f8fe7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReactionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReactionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_Get.g.cs index bc79c2a8699..abc4ebc87b7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_List.g.cs index 8cb348ad160..1d20334bdbc 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReaction_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply.g.cs index 5a2201e9fd0..2b13d112565 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageId1 : EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyConversation.g.cs index c425f1267b2..6d6b738c8c5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyConversation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyCount.g.cs index 7ad6c4d491d..e762adbaec2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs index cd10aff2205..26a3b7c483c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageReactionId : EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReactionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReactionCount.g.cs index dd36f3bdc6f..e3802bb4bf2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReactionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReactionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_Get.g.cs index cfdbc0cb631..3b809679911 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_List.g.cs index a2cd6a0bf4e..ee22e730e3e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyReaction_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyTo.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyTo.g.cs index f892759f55a..de082b411af 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyTo.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReplyTo.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_Get.g.cs index c93ee0aaf16..d25fd6c928d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_List.g.cs index ae9386a1a91..5efe6710b32 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessageReply_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_Get.g.cs index c2ea44190f4..d112fc8ea08 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_List.g.cs index e536eedd44a..287c31301cf 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeeting.g.cs index 4ddea29f27d..52db067b149 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeeting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs index 80fc29a582a..fd6870e9665 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarter.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarter.g.cs index 81d9ab3bb31..a78f45d57b5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarter.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarter.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterConversation.g.cs index a395ca85b1a..dd0e3cb5c29 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterConversation.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction.g.cs index c03736cde9c..7999ece4dee 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageReactionId : OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReactionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReactionCount.g.cs index f075bfedc20..a6250e4b649 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReactionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReactionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_Get.g.cs index 7423218c260..e8d02b04cbc 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_List.g.cs index cfe497fe791..6bb903a4f9f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReaction_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply.g.cs index 3ff7b3d61dc..d24d7f29407 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageId : OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyConversation.g.cs index bef0666de53..588b9a9c5da 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyConversation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyCount.g.cs index 5ff43897ff7..ccce2f40a11 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs index ed0fb8abe92..a7cf33ee933 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EngagementConversationMessageReactionId : EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReactionCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReactionCount.g.cs index 9fb676d182c..d01ad0ed512 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReactionCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReactionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_Get.g.cs index 37fd467b400..14ac789603c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_List.g.cs index 6bea2f3e358..0197a725b7c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyReaction_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyTo.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyTo.g.cs index 0f9e9327232..2448e63a790 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyTo.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReplyTo.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_Get.g.cs index 416ad2c1113..c2b2c3022c3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_List.g.cs index 3055ae4c38c..90b244084c3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversationStarterReply_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_Get.g.cs index fb067652e0f..64f4c0422a5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_List.g.cs index 505e8c71934..8c835290c37 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingConversation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingCount.g.cs index 4aa38e1f766..471ffbd7282 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingMessage.g.cs index 242ad142cf5..6e9a21a9f8f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingMessage.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording.g.cs index c0394c2a2ac..1a8639d9046 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallRecordingId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingContent.g.cs index 213ec318667..32a4c6a36e5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingCount.g.cs index 559e399c855..540ef4656fe 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingDelta.g.cs index 426dc6edab7..410c79db43a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecordingDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_Get.g.cs index 755b00ed907..2feaa4205fb 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_List.g.cs index 3ce318aeabe..96069192216 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingRecording_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript.g.cs index 35a67db2e3d..84b018c61f0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallTranscriptId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptContent.g.cs index 4347c59301e..8320ce46a57 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptCount.g.cs index 9ebab11bab4..e4dbfed193a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptDelta.g.cs index eb6159a1a8d..54d7517aad0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs index 08fcdf6db9a..cabb17ac45b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_Get.g.cs index a974efb9ab5..64bd2a68116 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_List.g.cs index 5cc087f01ea..ab1a2ba3256 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingTranscript_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs index a46832e111b..d1c12cbe4be 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_Get.g.cs index e5307bcefe9..b43d8e60796 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_List.g.cs index a8d87e7cb78..4bd6b10fcb6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationOnlineMeeting_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence.g.cs index 07042b52e61..beee0e6b018 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PresenceId : null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceByUserId.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceByUserId.g.cs index f6f046d47c8..55e00a82b87 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceByUserId.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceByUserId.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceCount.g.cs index 6236f89efcb..5517c85715b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresenceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_Get.g.cs index bc91157bb04..967150383fd 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_List.g.cs index bb2d18d78b2..f11f52b2766 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgCommunicationPresence_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting.g.cs index 2d43b81a27a..4fbd8636cc1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnlineMeetingId : UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport.g.cs index 900847ab7f8..31e976178d9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MeetingAttendanceReportId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs index 3daa40c5b63..87b48264764 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttendanceRecordId : MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs index eac56653689..89b7596d543 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecordCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs index 716b8665581..8f2bee70c45 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs index 78a37d33eba..c4a5070a527 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportAttendanceRecord_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportCount.g.cs index 562cdc3304e..03d745d7531 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReportCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_Get.g.cs index 7dc30d019b9..6702ea5d7af 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_List.g.cs index a44b9c32e26..beefc78e8e5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendanceReport_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendeeReport.g.cs index cc8130328f5..c5bf7ef973f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingAttendeeReport.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingCount.g.cs index 6477e6b37f4..3c903a56285 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording.g.cs index 4d40eba5a5e..8a7d379c83b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallRecordingId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingContent.g.cs index adc32478525..de8156a0d42 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingCount.g.cs index 280b8b63f4a..1e901bdbb3e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingDelta.g.cs index d0f53de3840..04ff818509a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecordingDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_Get.g.cs index c6eb6c52588..f3d1009a3e1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_List.g.cs index 3bb46ea1bee..5e6143d2f8a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingRecording_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript.g.cs index 4105f6fdeaf..0a46579f8a4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CallTranscriptId : OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptContent.g.cs index 8ade99797aa..6fb2bc283f5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptCount.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptCount.g.cs index 1df9aa00a2f..c503dd5a302 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptCount.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptDelta.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptDelta.g.cs index f2033988dc2..385499825a2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptDelta.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptMetadataContent.g.cs index c95b7609e7f..d0d58e5288c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscriptMetadataContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_Get.g.cs index 5e96fc93285..c37a45f5142 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_List.g.cs index 3fcbb3a88dd..6fd2edf917f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingTranscript_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs index 39442a796b3..870caf22986 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeetingVirtualAppointmentJoinWebUrl.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_Get.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_Get.g.cs index a82bb63e9d6..d902f3ef385 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_Get.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_List.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_List.g.cs index 0644f39ea13..cc62b96ddb4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_List.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserOnlineMeeting_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserPresence.g.cs index 2ef24ebe775..ad55734e560 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/GetMgUserPresence.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgAnswerCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgAnswerCommunicationCall.g.cs index 015a3257125..91a08fd1d62 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgAnswerCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgAnswerCommunicationCall.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgCreateOrGetCommunicationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgCreateOrGetCommunicationOnlineMeeting.g.cs index 1b77a2260b9..0b0f85f5dc5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgCreateOrGetCommunicationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgCreateOrGetCommunicationOnlineMeeting.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgInviteCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgInviteCommunicationCallParticipant.g.cs index ee50bc9b065..2e05dbf850a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgInviteCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgInviteCommunicationCallParticipant.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgKeepCommunicationCallAlive.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgKeepCommunicationCallAlive.g.cs index 2e18e9b4b01..9a9fc4a6dc3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgKeepCommunicationCallAlive.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgKeepCommunicationCallAlive.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgLogCommunicationCallTeleconferenceDeviceQuality.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgLogCommunicationCallTeleconferenceDeviceQuality.g.cs index b87b696c0a2..8a74c1152f9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgLogCommunicationCallTeleconferenceDeviceQuality.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgLogCommunicationCallTeleconferenceDeviceQuality.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCall.g.cs index 3a1c3d02789..02430717e66 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCall.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCallParticipant.g.cs index cf521670b6b..1ae7fd822db 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgMuteCommunicationCallParticipant.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgPlayCommunicationCallPrompt.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgPlayCommunicationCallPrompt.g.cs index a1e1c3cbe33..af3bf8cafae 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgPlayCommunicationCallPrompt.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgPlayCommunicationCallPrompt.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRecordCommunicationCallResponse.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRecordCommunicationCallResponse.g.cs index 963f23be48e..161eb1b9d85 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRecordCommunicationCallResponse.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRecordCommunicationCallResponse.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRedirectCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRedirectCommunicationCall.g.cs index 38044bc8350..83cdfe37889 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRedirectCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRedirectCommunicationCall.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRejectCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRejectCommunicationCall.g.cs index de57671ce23..cb07bad6ba4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRejectCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgRejectCommunicationCall.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgSubscribeCommunicationCallToTone.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgSubscribeCommunicationCallToTone.g.cs index d633a0085eb..8b984bd371c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgSubscribeCommunicationCallToTone.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgSubscribeCommunicationCallToTone.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgUnmuteCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgUnmuteCommunicationCall.g.cs index 80280629c46..c6ab1c30eaf 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgUnmuteCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/InvokeMgUnmuteCommunicationCall.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/MoveMgCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/MoveMgCommunicationCall.g.cs index b2e3303df6b..27b4fb84f5e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/MoveMgCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/MoveMgCommunicationCall.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCall.g.cs index 2570b8072ae..a4ee05ebd75 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCall.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallRecording.g.cs index 66241051738..72b12db92c1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallRecording.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallTranscript.g.cs index a83f0ddbdb1..a0ce8693a3d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationAdhocCallTranscript.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCall.g.cs index 0c43fab8df1..ab19a391c8f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCall.g.cs @@ -164,7 +164,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallAudioRoutingGroup.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallAudioRoutingGroup.g.cs index aa7bc539674..2e96e3785ac 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallAudioRoutingGroup.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallAudioRoutingGroup.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallContentSharingSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallContentSharingSession.g.cs index 99071b1116d..df948995804 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallContentSharingSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallContentSharingSession.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallOperation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallOperation.g.cs index 87db6faa702..7c011ed7397 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallOperation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallOperation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallParticipant.g.cs index c320ee465f8..e4bcb795277 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallParticipant.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordParticipantV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordParticipantV2.g.cs index cfd138edb36..906f21525b9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordParticipantV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordParticipantV2.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordSession.g.cs index 1e4f8799494..b5f54a17905 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationCallRecordSession.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeeting.g.cs index 974a4723c33..bd10c54c91d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeeting.g.cs @@ -118,6 +118,9 @@ public class NewMgCommunicationOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ItemBody? JoinInformation { get; set; } @@ -127,6 +130,9 @@ public class NewMgCommunicationOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -253,6 +259,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -262,6 +271,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -290,7 +302,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReport.g.cs index 28a2af004a8..80d9172c904 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReport.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs index f7f1b40fdcc..e088091f7e6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversation.g.cs index 9d2efd23d17..99ba07b6214 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversation.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessage.g.cs index 61cdeb62b35..75bcdabd47c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessage.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReaction.g.cs index 797cbbe5cd4..5b43a877ce2 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReaction.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReply.g.cs index 2b3bcc00ad4..75488d0cae6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReply.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs index d8abe7a0ea2..65f1d5dff29 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReaction.g.cs index d2fe2104832..130b701f543 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReaction.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReply.g.cs index cf247afc377..a41ae0cf220 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReply.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs index efadd072d8c..1a090ce9cdb 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingRecording.g.cs index b85aa2b5606..9f13aa3f0ad 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingRecording.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingTranscript.g.cs index 550e709fa9f..5199552a3cf 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationOnlineMeetingTranscript.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationPresence.g.cs index bf369f9f146..efff3dd3b6f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgCommunicationPresence.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeeting.g.cs index cddf6bc4386..48a1f7acab4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeeting.g.cs @@ -119,6 +119,9 @@ public class NewMgUserOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ItemBody? JoinInformation { get; set; } @@ -128,6 +131,9 @@ public class NewMgUserOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -254,6 +260,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -263,6 +272,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -291,7 +303,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReport.g.cs index 53f9dfcc367..12eea4d61ae 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReport.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs index 63e3d16053e..136ae2e1d72 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingRecording.g.cs index c4a23f483fd..f9f31bfcc99 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingRecording.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingTranscript.g.cs index 60567dd6c85..b0fa7839224 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/NewMgUserOnlineMeetingTranscript.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCall.g.cs index cbc945ef480..c23fea1830f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCall.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecording.g.cs index 1b2c0286fa0..bdaa9bdfd5d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecording.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecordingContent.g.cs index 79d26559a38..738066880e1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallRecordingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscript.g.cs index 06bb59806ad..4f5f78b7533 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscript.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptContent.g.cs index daa3b523b42..d82a3d69de0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptMetadataContent.g.cs index 706e9f3b824..78f627df2c0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationAdhocCallTranscriptMetadataContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCall.g.cs index a206cd10bb8..62d2a7a2975 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCall.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallAudioRoutingGroup.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallAudioRoutingGroup.g.cs index b39605b7edd..5f649d93674 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallAudioRoutingGroup.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallAudioRoutingGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AudioRoutingGroupId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallContentSharingSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallContentSharingSession.g.cs index de35ee4a90d..9e7e5db4b38 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallContentSharingSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallContentSharingSession.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentSharingSessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallOperation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallOperation.g.cs index 277e5de49e6..0b77e5b59ef 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallOperation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CommsOperationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallParticipant.g.cs index b5a9fafdacb..afaf3ac04a9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallParticipant.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordOrganizerV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordOrganizerV2.g.cs index 9434d0c85e4..47354235e98 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordOrganizerV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordOrganizerV2.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordParticipantV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordParticipantV2.g.cs index 8424a8bf7ca..15c620fc90f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordParticipantV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordParticipantV2.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordSession.g.cs index 1327c77f5bf..52c3d4d0cb0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationCallRecordSession.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeeting.g.cs index 721ff2a2268..7d21838c63e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeeting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReport.g.cs index a04d44fe815..9fd5a445708 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReport.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs index b12c95d54ac..3558eed0468 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendeeReport.g.cs index f1bd77f5680..647310f310b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingAttendeeReport.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversation.g.cs index 7d197107c5d..032be984df4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessage.g.cs index 24281d3d4f9..18a0579a2c7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReaction.g.cs index 0586e5eacd6..f7377c81d8d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReaction.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReply.g.cs index 48524cdf0db..74431b3727c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReply.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs index 6e9ad6eb434..00b1a615656 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs index bcacdd65674..2e1dc1eef5e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationOnlineMeetingAttendeeReport.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarter.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarter.g.cs index f5090e3458d..d118990a3c5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarter.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarter.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReaction.g.cs index f3177d0229a..4a6e870c0af 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReaction.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReply.g.cs index c741f0fc944..167810ce500 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReply.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs index 5419c105996..29542fb6391 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecording.g.cs index 7bee841ec3d..7979c2b2d4f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecording.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecordingContent.g.cs index 610e241a2f7..1123c599fe6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingRecordingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscript.g.cs index 0b1eb27e88f..9880c1d591a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscript.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptContent.g.cs index a0f31bd0d26..db2bf5a2452 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs index 59b8a804ca6..082dedc484a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationOnlineMeetingTranscriptMetadataContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationPresence.g.cs index 1d2c7e8c928..5a494a804bd 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgCommunicationPresence.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeeting.g.cs index dbd3c0e40b9..12e7c0d01b4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeeting.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReport.g.cs index 7ed87b3a978..8430cd6ed8f 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReport.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs index 948a9ec7c5a..bdd90515bc6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendeeReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendeeReport.g.cs index 949dc2a6b0a..d5811f3f0f0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendeeReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingAttendeeReport.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecording.g.cs index 0c3bf3a33d4..12879565662 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecording.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecordingContent.g.cs index 45473f861f8..a4fe87e1f35 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingRecordingContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscript.g.cs index 2e6292b5e25..43e5f20110b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscript.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptContent.g.cs index 2bf0831947b..a93d84bf07b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptMetadataContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptMetadataContent.g.cs index c85ae997073..7cea8cb7686 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptMetadataContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserOnlineMeetingTranscriptMetadataContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserPresence.g.cs index b55fd32240e..834aa793def 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RemoveMgUserPresence.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RenameMgCommunicationCallScreenSharingRole.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RenameMgCommunicationCallScreenSharingRole.g.cs index 08e35b3614e..40e7f1f7548 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/RenameMgCommunicationCallScreenSharingRole.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/RenameMgCommunicationCallScreenSharingRole.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationCallDtmfTone.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationCallDtmfTone.g.cs index e51aee4144a..4be27dd8434 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationCallDtmfTone.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationCallDtmfTone.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentReminderSm.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentReminderSm.g.cs index 7ed4c26dd04..05b32844843 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentReminderSm.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentReminderSm.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentSm.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentSm.g.cs index 9dff1bc7247..d0521eef46e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentSm.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgCommunicationOnlineMeetingVirtualAppointmentSm.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentReminderSm.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentReminderSm.g.cs index f98ea643329..d98fa576ae0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentReminderSm.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentReminderSm.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentSm.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentSm.g.cs index ceab3ce129b..e76e616668b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentSm.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SendMgUserOnlineMeetingVirtualAppointmentSm.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallRecordingContent.g.cs index f6b85e9c074..91c9ae2ac52 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallRecordingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallTranscriptContent.g.cs index 7f085da6003..e923d8cb1a9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationAdhocCallTranscriptContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingRecordingContent.g.cs index 1dbe97e7f1a..ae224f5d121 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingRecordingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingTranscriptContent.g.cs index 93f20d5b07d..da425cb9ce1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationOnlineMeetingTranscriptContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresence.g.cs index 18fa24c3354..5f0ab9f2312 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresence.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceAutomaticLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceAutomaticLocation.g.cs index cfc64977b39..affdab1f2e3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceAutomaticLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceAutomaticLocation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceManualLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceManualLocation.g.cs index 4749ebf5534..bbdf486959e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceManualLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceManualLocation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceStatusMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceStatusMessage.g.cs index 04b800c10cd..b0f0af9f90d 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceStatusMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceStatusMessage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceUserPreferredPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceUserPreferredPresence.g.cs index 3c232895a2f..8e477f7f656 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceUserPreferredPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgCommunicationPresenceUserPreferredPresence.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingRecordingContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingRecordingContent.g.cs index 966f774e280..704f7d579eb 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingRecordingContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingRecordingContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingTranscriptContent.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingTranscriptContent.g.cs index 9e619562d49..94247013599 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingTranscriptContent.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserOnlineMeetingTranscriptContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresence.g.cs index e810548b67e..ab79258610b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresence.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceAutomaticLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceAutomaticLocation.g.cs index 52ab71526f1..3680b656544 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceAutomaticLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceAutomaticLocation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceManualLocation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceManualLocation.g.cs index a6027fb102a..c4c0e6bf60b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceManualLocation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceManualLocation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceStatusMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceStatusMessage.g.cs index 8ef5ec43ff8..420a51153b4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceStatusMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceStatusMessage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceUserPreferredPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceUserPreferredPresence.g.cs index e47f7e73af2..9a0f84ecb4b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceUserPreferredPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/SetMgUserPresenceUserPreferredPresence.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StartMgCommunicationCallParticipantHoldMusic.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StartMgCommunicationCallParticipantHoldMusic.g.cs index d783e7e1b83..00726938bb7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StartMgCommunicationCallParticipantHoldMusic.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StartMgCommunicationCallParticipantHoldMusic.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallMediaProcessing.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallMediaProcessing.g.cs index 9c0bc92c11d..44978c0d2ce 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallMediaProcessing.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallMediaProcessing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallParticipantHoldMusic.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallParticipantHoldMusic.g.cs index 6f16c1cc580..2090f9c52c1 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallParticipantHoldMusic.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/StopMgCommunicationCallParticipantHoldMusic.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCall.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCall.g.cs index e9bc6a6395b..412fbaa55f5 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCall.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCall.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Communications.AdhocCalls[AdhocCallId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdhocCallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallRecording.g.cs index 9d22fdb425c..26244211e92 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallRecording.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Communications.AdhocCalls[AdhocCallId].Recordings[CallRecordingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallTranscript.g.cs index 34657e73b38..f67936f4fc7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationAdhocCallTranscript.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Communications.AdhocCalls[AdhocCallId].Transcripts[CallTranscriptId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallAudioRoutingGroup.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallAudioRoutingGroup.g.cs index eaba525cc77..339ab1676a9 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallAudioRoutingGroup.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallAudioRoutingGroup.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AudioRoutingGroupId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Communications.Calls[CallId].AudioRoutingGroups[AudioRoutingGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AudioRoutingGroupId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallContentSharingSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallContentSharingSession.g.cs index fddd725e354..ac898e1316e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallContentSharingSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallContentSharingSession.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentSharingSessionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Communications.Calls[CallId].ContentSharingSessions[ContentSharingSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentSharingSessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallOperation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallOperation.g.cs index 15f2271b277..53f2cff822b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallOperation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallOperation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CommsOperationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Communications.Calls[CallId].Operations[CommsOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CommsOperationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallParticipant.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallParticipant.g.cs index 1358338bba2..8633027638e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallParticipant.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallParticipant.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Communications.Calls[CallId].Participants[ParticipantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordOrganizerV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordOrganizerV2.g.cs index fa521975521..758ff54765b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordOrganizerV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordOrganizerV2.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Communications.CallRecords[CallRecordId].Organizer_v2.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordParticipantV2.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordParticipantV2.g.cs index 291af27a3e5..60fec2786be 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordParticipantV2.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordParticipantV2.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Communications.CallRecords[CallRecordId].Participants_v2[ParticipantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParticipantId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordSession.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordSession.g.cs index 680f18cb50c..b82c3b0225e 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordSession.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordSession.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SessionId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Communications.CallRecords[CallRecordId].Sessions[SessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SessionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordingStatus.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordingStatus.g.cs index a335d993f65..8c3fc01c648 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordingStatus.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationCallRecordingStatus.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeeting.g.cs index 2d06a97d129..28b069160d8 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeeting.g.cs @@ -119,6 +119,9 @@ public class UpdateMgCommunicationOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ItemBody? JoinInformation { get; set; } @@ -128,6 +131,9 @@ public class UpdateMgCommunicationOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -254,6 +260,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -263,6 +272,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -291,7 +303,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; @@ -305,7 +317,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetings[OnlineMeetingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReport.g.cs index 0bce3492393..3e011088df4 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReport.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetings[OnlineMeetingId].AttendanceReports[MeetingAttendanceReportId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs index f18924a7e3e..a5db446eea0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetings[OnlineMeetingId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversation.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversation.g.cs index d5fbc0d87f8..1179961cf66 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversation.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessage.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessage.g.cs index f5a0435816a..850e838925b 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessage.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessage.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Messages[EngagementConversationMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReaction.g.cs index 7037ed05d9b..cbc0c230e6c 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReaction.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Messages[EngagementConversationMessageId].Reactions[EngagementConversationMessageReactionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReply.g.cs index c1f22bd1890..ce5331b4608 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReply.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Messages[EngagementConversationMessageId].Replies[EngagementConversationMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId1); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs index 7454ee5ed00..80f36c38fe0 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationMessageReplyReaction.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Messages[EngagementConversationMessageId].Replies[EngagementConversationMessageId1].Reactions[EngagementConversationMessageReactionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarter.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarter.g.cs index ce6b5dca8c0..bb63fca53b3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarter.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarter.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Starter.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingEngagementConversationId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReaction.g.cs index ebab63361d5..30a1421ac03 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReaction.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Starter.Reactions[EngagementConversationMessageReactionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReply.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReply.g.cs index 4ca357110ad..c74b5bc3dd7 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReply.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReply.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Starter.Replies[EngagementConversationMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs index 5bdbdff90b7..ac31d4b6103 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingConversationStarterReplyReaction.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetingConversations[OnlineMeetingEngagementConversationId].Starter.Replies[EngagementConversationMessageId].Reactions[EngagementConversationMessageReactionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EngagementConversationMessageReactionId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingRecording.g.cs index f3268847b87..263c3197e27 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingRecording.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetings[OnlineMeetingId].Recordings[CallRecordingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingTranscript.g.cs index 130d9fad942..def7bccbb00 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationOnlineMeetingTranscript.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Communications.OnlineMeetings[OnlineMeetingId].Transcripts[CallTranscriptId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationPresence.g.cs index 0c59fcddab0..d5de8d9dcdd 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgCommunicationPresence.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Communications.Presences[PresenceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PresenceId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeeting.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeeting.g.cs index f077d212f06..5edb7972368 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeeting.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeeting.g.cs @@ -121,6 +121,9 @@ public class UpdateMgUserOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ChatRestrictions? ChatRestrictions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.ItemBody? JoinInformation { get; set; } @@ -130,6 +133,9 @@ public class UpdateMgUserOnlineMeetingCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.LobbyBypassSettings? LobbyBypassSettings { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingType? MeetingType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.CloudCommunications.Client.Models.OnlineMeetingSensitivityLabelAssignment? SensitivityLabelAssignment { get; set; } @@ -256,6 +262,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ChatRestrictions))) body.ChatRestrictions = ChatRestrictions; + if (this.IsParameterBound(nameof(CloudVideoInteropInfo))) + body.CloudVideoInteropInfo = CloudVideoInteropInfo; + if (this.IsParameterBound(nameof(JoinInformation))) body.JoinInformation = JoinInformation; @@ -265,6 +274,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(LobbyBypassSettings))) body.LobbyBypassSettings = LobbyBypassSettings; + if (this.IsParameterBound(nameof(MeetingType))) + body.MeetingType = MeetingType; + if (this.IsParameterBound(nameof(SensitivityLabelAssignment))) body.SensitivityLabelAssignment = SensitivityLabelAssignment; @@ -293,7 +305,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; @@ -307,7 +319,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnlineMeetings[OnlineMeetingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnlineMeetingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReport.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReport.g.cs index c50ae8276d4..e486110569a 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReport.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReport.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnlineMeetings[OnlineMeetingId].AttendanceReports[MeetingAttendanceReportId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MeetingAttendanceReportId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs index aff418ead43..9026d36c9a6 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingAttendanceReportAttendanceRecord.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnlineMeetings[OnlineMeetingId].AttendanceReports[MeetingAttendanceReportId].AttendanceRecords[AttendanceRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttendanceRecordId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingRecording.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingRecording.g.cs index d7d9b11b594..b65f5e4d0a3 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingRecording.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingRecording.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnlineMeetings[OnlineMeetingId].Recordings[CallRecordingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallRecordingId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingTranscript.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingTranscript.g.cs index 6b5f6e6e62d..86cd14820ed 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingTranscript.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserOnlineMeetingTranscript.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnlineMeetings[OnlineMeetingId].Transcripts[CallTranscriptId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CallTranscriptId); return; diff --git a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserPresence.g.cs b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserPresence.g.cs index 5cecd606f67..2b2228c3600 100644 --- a/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserPresence.g.cs +++ b/src/CloudCommunications/wrapper/v1.0/Cmdlets/UpdateMgUserPresence.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Presence.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Client/Models/Chat.cs b/src/Compliance/wrapper/v1.0/Client/Models/Chat.cs index d66c4124903..5d3df3dd5da 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Compliance.Client #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Compliance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Compliance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..1c5fc0f8f37 --- /dev/null +++ b/src/Compliance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Compliance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Compliance.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Compliance.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Compliance/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Compliance/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..dc11f60d03d --- /dev/null +++ b/src/Compliance/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Compliance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Compliance/wrapper/v1.0/Client/Models/Group.cs b/src/Compliance/wrapper/v1.0/Client/Models/Group.cs index c1d8baf2348..60f74e7da9e 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Compliance.Clien #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Compliance/wrapper/v1.0/Client/Models/List.cs b/src/Compliance/wrapper/v1.0/Client/Models/List.cs index bfe32736d0a..69caa166553 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/List.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Compliance.Client #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Compliance/wrapper/v1.0/Client/Models/ListItem.cs b/src/Compliance/wrapper/v1.0/Client/Models/ListItem.cs index 5d2e963b06e..18a003468cf 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Compliance.Cl #else public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index be73108fec4..994c9376645 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Comp #nullable restore #else public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Comp #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..7911c1737a1 --- /dev/null +++ b/src/Compliance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Compliance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Compliance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Compliance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index a40c19c30e4..cf3f1f27f93 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Compliance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Compliance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 8cc68525e98..a0e5ec006bf 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Compliance.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Compliance.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Compliance/wrapper/v1.0/Client/Models/User.cs b/src/Compliance/wrapper/v1.0/Client/Models/User.cs index 00a97eac6c0..f1374594401 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/User.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Compliance.Client #nullable restore #else public global::Microsoft.Graph.PowerShell.Compliance.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Compliance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Compliance/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Compliance/wrapper/v1.0/Client/Models/UserActivityType.cs index a94c958e91f..38b3cdfa4aa 100644 --- a/src/Compliance/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Compliance/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Compliance/wrapper/v1.0/Client/kiota-lock.json b/src/Compliance/wrapper/v1.0/Client/kiota-lock.json index fd0c8283865..f3b06c601ee 100644 --- a/src/Compliance/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Compliance/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "732371BBB5BCFB89B7E73D22F0B098718589EA3BE78638A0462A14EDA3B0C0EFB0BE029F16EB0B1F8A1A723474967456F6D593226F97E3B01D6A7781747EF2D7", + "descriptionHash": "D67D326EFA5421A1C85471FCFDFECEA2BAB59A31DFF1CCCE348CBFD450026C9ACF126486CE1440944489F8085D1128F8A995997BA15E1602F061937EA610EF0E", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Compliance.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgCompliance.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgCompliance.g.cs index 0088c5bba9b..663ab035ccf 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgCompliance.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgCompliance.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest.g.cs index 743fd9f80cb..ad9f010dfe6 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectRightsRequestId : null); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover.g.cs index eb409251f66..52a8626716d 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverCount.g.cs index 1d2749093e8..2cc10521663 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs index 21450612b91..ea9d73eddef 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningError.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningError.g.cs index 1532897ccb5..f429fb6dc98 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningError.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs index 05750a78dee..6fb450d42b8 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_Get.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_Get.g.cs index d1249c0cd8e..997f3d33896 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_Get.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_List.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_List.g.cs index b240a82d632..2edd52e4bf1 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_List.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestApprover_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator.g.cs index e3542b4ea73..ba6349bc827 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorCount.g.cs index b3422efd2ba..4667be28083 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs index db2b8e9101f..a4199f07aee 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs index 5d2c64ee85a..d8ea3371f09 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs index 532d8c934f3..b5456cacc89 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_Get.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_Get.g.cs index 71893490bad..14ad7684c77 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_Get.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_List.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_List.g.cs index fcc6190533c..3df2ff28b50 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_List.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCollaborator_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCount.g.cs index 56694cb3d17..bd962d373a4 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalAttachment.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalAttachment.g.cs index 1b808d87f75..3df9838a0d9 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalAttachment.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalAttachment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalReport.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalReport.g.cs index 24d846b9ee2..37a5923ce3a 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalReport.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestFinalReport.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote.g.cs index 0ea4c87f329..2c09a1b8968 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthoredNoteId : SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNoteCount.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNoteCount.g.cs index 8a492937ea1..203d514283c 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNoteCount.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNoteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_Get.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_Get.g.cs index 88d66d50514..492cd7194e4 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_Get.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_List.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_List.g.cs index b6be28ee39e..eeee1f1981a 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_List.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestNote_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestTeam.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestTeam.g.cs index 2ced1cef056..a1ef79cf80a 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestTeam.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequestTeam.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_Get.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_Get.g.cs index 74b49ec6930..82d7dadf82e 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_Get.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_List.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_List.g.cs index 30a95ee4125..fef04b2431c 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_List.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/GetMgPrivacySubjectRightsRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequest.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequest.g.cs index f9d50b1d6e1..d9ce7e9d152 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequest.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequest.g.cs @@ -188,7 +188,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequestNote.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequestNote.g.cs index e4e3235d4a8..e3f59bce9ba 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequestNote.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/NewMgPrivacySubjectRightsRequestNote.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequest.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequest.g.cs index 871abb5c4d4..ac58d98c057 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequest.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequestNote.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequestNote.g.cs index 42ad7cfa5cb..87703308736 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequestNote.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/RemoveMgPrivacySubjectRightsRequestNote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgCompliance.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgCompliance.g.cs index e1214705acf..1de694cd0ea 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgCompliance.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgCompliance.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Compliance.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequest.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequest.g.cs index b22cd56bd67..f3cf7f425d5 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequest.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequest.g.cs @@ -189,7 +189,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; @@ -203,7 +203,7 @@ protected override void ProcessRecord() { result = client.Privacy.SubjectRightsRequests[SubjectRightsRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs index bdee280de29..3d1238d1b86 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestApproverMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Privacy.SubjectRightsRequests[SubjectRightsRequestId].Approvers[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs index fbb14b18291..21afba6def5 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestCollaboratorMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Privacy.SubjectRightsRequests[SubjectRightsRequestId].Collaborators[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestNote.g.cs b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestNote.g.cs index e43718803b0..f29c1d6ede8 100644 --- a/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestNote.g.cs +++ b/src/Compliance/wrapper/v1.0/Cmdlets/UpdateMgPrivacySubjectRightsRequestNote.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Privacy.SubjectRightsRequests[SubjectRightsRequestId].Notes[AuthoredNoteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.cs index 34a48c683c1..1d17c42479a 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/ConfigurationDriftsRequestBuilder.cs @@ -78,31 +78,6 @@ public ConfigurationDriftsRequestBuilder(string rawUrl, IRequestAdapter requestA return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDriftCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to configurationDrifts for admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Get a list of the configurationDrift objects and their properties. /// /// A @@ -122,28 +97,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to configurationDrifts for admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -226,14 +179,6 @@ public partial class ConfigurationDriftsRequestBuilderGetQueryParameters public partial class ConfigurationDriftsRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationDriftsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.cs index 2070b7d933a..73fe96eecdb 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationDrifts/Item/ConfigurationDriftItemRequestBuilder.cs @@ -35,28 +35,6 @@ public ConfigurationDriftItemRequestBuilder(string rawUrl, IRequestAdapter reque { } /// - /// Delete navigation property configurationDrifts for admin - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Get the properties and relationships of a configurationDrift object. /// Find more info here /// @@ -81,50 +59,6 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property configurationDrifts in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property configurationDrifts for admin - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Get the properties and relationships of a configurationDrift object. /// /// A @@ -144,28 +78,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property configurationDrifts in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -175,14 +87,6 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Powe return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationDrifts.Item.ConfigurationDriftItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationDriftItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// /// Get the properties and relationships of a configurationDrift object. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] @@ -217,14 +121,6 @@ public partial class ConfigurationDriftItemRequestBuilderGetQueryParameters public partial class ConfigurationDriftItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationDriftItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.cs index 770873a3949..b204cfeccd5 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationManagementRequestBuilder.cs @@ -5,15 +5,11 @@ using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationMonitors; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; -using System.Threading; using System; namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement { @@ -53,7 +49,7 @@ public partial class ConfigurationManagementRequestBuilder : BaseRequestBuilder /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public ConfigurationManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", pathParameters) + public ConfigurationManagementRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement", pathParameters) { } /// @@ -61,197 +57,7 @@ public ConfigurationManagementRequestBuilder(Dictionary pathPara /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ConfigurationManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement{?%24expand,%24select}", rawUrl) - { - } - /// - /// Delete navigation property configurationManagement for admin - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// A container for Tenant Configuration Management (TCM) resources. Read-only. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update the navigation property configurationManagement in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property configurationManagement for admin - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// A container for Tenant Configuration Management (TCM) resources. Read-only. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Update the navigation property configurationManagement in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder WithUrl(string rawUrl) - { - return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationManagementRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationManagementRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// - /// A container for Tenant Configuration Management (TCM) resources. Read-only. - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationManagementRequestBuilderGetQueryParameters - { - /// Expand related entities -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24expand")] - public string[]? Expand { get; set; } -#nullable restore -#else - [QueryParameter("%24expand")] - public string[] Expand { get; set; } -#endif - /// Select properties to be returned -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24select")] - public string[]? Select { get; set; } -#nullable restore -#else - [QueryParameter("%24select")] - public string[] Select { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationManagementRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationManagementRequestBuilderPatchRequestConfiguration : RequestConfiguration + public ConfigurationManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/configurationManagement", rawUrl) { } } diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.cs index fe031c74d30..abc9830f783 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/ConfigurationMonitoringResultsRequestBuilder.cs @@ -78,31 +78,6 @@ public ConfigurationMonitoringResultsRequestBuilder(string rawUrl, IRequestAdapt return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to configurationMonitoringResults for admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Get a list of the configurationMonitoringResult objects and their properties. /// /// A @@ -122,28 +97,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to configurationMonitoringResults for admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -226,14 +179,6 @@ public partial class ConfigurationMonitoringResultsRequestBuilderGetQueryParamet public partial class ConfigurationMonitoringResultsRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationMonitoringResultsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.cs index f11b18cd551..1bc581385b9 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitoringResults/Item/ConfigurationMonitoringResultItemRequestBuilder.cs @@ -35,28 +35,6 @@ public ConfigurationMonitoringResultItemRequestBuilder(string rawUrl, IRequestAd { } /// - /// Delete navigation property configurationMonitoringResults for admin - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Read the properties and relationships of a configurationMonitoringResult object. /// Find more info here /// @@ -81,50 +59,6 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property configurationMonitoringResults in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property configurationMonitoringResults for admin - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Read the properties and relationships of a configurationMonitoringResult object. /// /// A @@ -144,28 +78,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property configurationMonitoringResults in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -175,14 +87,6 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Powe return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationMonitoringResults.Item.ConfigurationMonitoringResultItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationMonitoringResultItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// /// Read the properties and relationships of a configurationMonitoringResult object. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] @@ -217,14 +121,6 @@ public partial class ConfigurationMonitoringResultItemRequestBuilderGetQueryPara public partial class ConfigurationMonitoringResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationMonitoringResultItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.cs index e4b050f3c00..759eccd2bc9 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationMonitors/Item/Baseline/BaselineRequestBuilder.cs @@ -35,28 +35,6 @@ public BaselineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// Delete navigation property baseline for admin - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor. /// Find more info here /// @@ -81,50 +59,6 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property baseline in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property baseline for admin - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor. /// /// A @@ -144,28 +78,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property baseline in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -175,14 +87,6 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Powe return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationMonitors.Item.Baseline.BaselineRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class BaselineRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// /// Read the properties and relationships of a configurationBaseline object that is attached to a specific monitor. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] @@ -217,14 +121,6 @@ public partial class BaselineRequestBuilderGetQueryParameters public partial class BaselineRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class BaselineRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.cs index f954d813b30..d33d7872fbc 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/ConfigurationSnapshotJobsRequestBuilder.cs @@ -1,6 +1,5 @@ // #pragma warning disable CS0618 -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Item; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; @@ -20,11 +19,6 @@ namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.Config [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class ConfigurationSnapshotJobsRequestBuilder : BaseRequestBuilder { - /// The Count property - public global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count.CountRequestBuilder Count - { - get => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count.CountRequestBuilder(PathParameters, RequestAdapter); - } /// Gets an item from the Microsoft.Graph.PowerShell.ConfigurationManagement.Client.admin.configurationManagement.configurationSnapshotJobs.item collection /// Unique identifier of the item /// A @@ -78,31 +72,6 @@ public ConfigurationSnapshotJobsRequestBuilder(string rawUrl, IRequestAdapter re return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJobCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to configurationSnapshotJobs for admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Get a list of the configurationSnapshotJob objects and their properties. /// /// A @@ -122,28 +91,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to configurationSnapshotJobs for admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -226,14 +173,6 @@ public partial class ConfigurationSnapshotJobsRequestBuilderGetQueryParameters public partial class ConfigurationSnapshotJobsRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationSnapshotJobsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.cs deleted file mode 100644 index 074d01a876d..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Count/CountRequestBuilder.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count -{ - /// - /// Builds and executes requests for operations under \admin\configurationManagement\configurationSnapshotJobs\$count - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/$count{?%24filter,%24search}", pathParameters) - { - } - /// - /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshotJobs/$count{?%24filter,%24search}", rawUrl) - { - } - /// - /// Get the number of the resource - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get the number of the resource - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count.CountRequestBuilder WithUrl(string rawUrl) - { - return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count.CountRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get the number of the resource - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilderGetQueryParameters - { - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.cs index 9871e93143a..5ef29bbac6e 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshotJobs/Item/ConfigurationSnapshotJobItemRequestBuilder.cs @@ -82,31 +82,6 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property configurationSnapshotJobs in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Delete a configurationSnapshotJob object. /// /// A @@ -145,28 +120,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property configurationSnapshotJobs in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -218,14 +171,6 @@ public partial class ConfigurationSnapshotJobItemRequestBuilderGetQueryParameter public partial class ConfigurationSnapshotJobItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationSnapshotJobItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.cs index 47d5b2103a7..7f4b0b1f3da 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/ConfigurationSnapshotsRequestBuilder.cs @@ -1,6 +1,5 @@ // #pragma warning disable CS0618 -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Item; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; @@ -20,11 +19,6 @@ namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.Config [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class ConfigurationSnapshotsRequestBuilder : BaseRequestBuilder { - /// The Count property - public global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count.CountRequestBuilder Count - { - get => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count.CountRequestBuilder(PathParameters, RequestAdapter); - } /// Gets an item from the Microsoft.Graph.PowerShell.ConfigurationManagement.Client.admin.configurationManagement.configurationSnapshots.item collection /// Unique identifier of the item /// A @@ -78,31 +72,6 @@ public ConfigurationSnapshotsRequestBuilder(string rawUrl, IRequestAdapter reque return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaselineCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to configurationSnapshots for admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PostAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// Get a list of configurationBaseline objects that represent configuration snapshots and their properties. /// /// A @@ -122,28 +91,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to configurationSnapshots for admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -226,14 +173,6 @@ public partial class ConfigurationSnapshotsRequestBuilderGetQueryParameters public partial class ConfigurationSnapshotsRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationSnapshotsRequestBuilderPostRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.cs deleted file mode 100644 index f3c07c75e35..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Count/CountRequestBuilder.cs +++ /dev/null @@ -1,124 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count -{ - /// - /// Builds and executes requests for operations under \admin\configurationManagement\configurationSnapshots\$count - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilder : BaseRequestBuilder - { - /// - /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/$count{?%24filter,%24search}", pathParameters) - { - } - /// - /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/admin/configurationManagement/configurationSnapshots/$count{?%24filter,%24search}", rawUrl) - { - } - /// - /// Get the number of the resource - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get the number of the resource - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count.CountRequestBuilder WithUrl(string rawUrl) - { - return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count.CountRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get the number of the resource - /// - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilderGetQueryParameters - { - /// Filter items by property values -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24filter")] - public string? Filter { get; set; } -#nullable restore -#else - [QueryParameter("%24filter")] - public string Filter { get; set; } -#endif - /// Search items by search phrases -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("%24search")] - public string? Search { get; set; } -#nullable restore -#else - [QueryParameter("%24search")] - public string Search { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration - { - } - } -} -#pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.cs index ddaf42d5dea..9181db9f5c1 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Admin/ConfigurationManagement/ConfigurationSnapshots/Item/ConfigurationBaselineItemRequestBuilder.cs @@ -35,28 +35,6 @@ public ConfigurationBaselineItemRequestBuilder(string rawUrl, IRequestAdapter re { } /// - /// Delete navigation property configurationSnapshots for admin - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// /// A container for configuration snapshot baselines. /// /// A @@ -80,50 +58,6 @@ public async Task DeleteAsync(Action(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property configurationSnapshots in admin - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) - { -#nullable restore -#else - public async Task PatchAsync(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPatchRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> - { - { "XXX", global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, - }; - return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Delete navigation property configurationSnapshots for admin - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) - { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// /// A container for configuration snapshot baselines. /// /// A @@ -143,28 +77,6 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property configurationSnapshots in admin - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action>? requestConfiguration = default) - { -#nullable restore -#else - public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline body, Action> requestConfiguration = default) - { -#endif - if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// /// A @@ -174,14 +86,6 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Powe return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Admin.ConfigurationManagement.ConfigurationSnapshots.Item.ConfigurationBaselineItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationBaselineItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration - { - } - /// /// A container for configuration snapshot baselines. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] @@ -216,14 +120,6 @@ public partial class ConfigurationBaselineItemRequestBuilderGetQueryParameters public partial class ConfigurationBaselineItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class ConfigurationBaselineItemRequestBuilderPatchRequestConfiguration : RequestConfiguration - { - } } } #pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Models/ConfigurationManagement.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Models/ConfigurationManagement.cs deleted file mode 100644 index 9e97cad52d9..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Models/ConfigurationManagement.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -#pragma warning disable CS0618 -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System; -namespace Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models -{ - [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - #pragma warning disable CS1591 - public partial class ConfigurationManagement : global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.Entity, IParsable - #pragma warning restore CS1591 - { - /// A container for configuration drift resources. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationDrifts { get; set; } -#nullable restore -#else - public List ConfigurationDrifts { get; set; } -#endif - /// A container for configuration monitoring results resources. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationMonitoringResults { get; set; } -#nullable restore -#else - public List ConfigurationMonitoringResults { get; set; } -#endif - /// A container for configuration monitor resources. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationMonitors { get; set; } -#nullable restore -#else - public List ConfigurationMonitors { get; set; } -#endif - /// A container for snapshot job resources. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationSnapshotJobs { get; set; } -#nullable restore -#else - public List ConfigurationSnapshotJobs { get; set; } -#endif - /// A container for configuration snapshot baselines. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationSnapshots { get; set; } -#nullable restore -#else - public List ConfigurationSnapshots { get; set; } -#endif - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement CreateFromDiscriminatorValue(IParseNode parseNode) - { - if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); - return new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() - { - return new Dictionary>(base.GetFieldDeserializers()) - { - { "configurationDrifts", n => { ConfigurationDrifts = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift.CreateFromDiscriminatorValue)?.AsList(); } }, - { "configurationMonitoringResults", n => { ConfigurationMonitoringResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult.CreateFromDiscriminatorValue)?.AsList(); } }, - { "configurationMonitors", n => { ConfigurationMonitors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitor.CreateFromDiscriminatorValue)?.AsList(); } }, - { "configurationSnapshotJobs", n => { ConfigurationSnapshotJobs = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob.CreateFromDiscriminatorValue)?.AsList(); } }, - { "configurationSnapshots", n => { ConfigurationSnapshots = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline.CreateFromDiscriminatorValue)?.AsList(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) - { - if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); - writer.WriteCollectionOfObjectValues("configurationDrifts", ConfigurationDrifts); - writer.WriteCollectionOfObjectValues("configurationMonitoringResults", ConfigurationMonitoringResults); - writer.WriteCollectionOfObjectValues("configurationMonitors", ConfigurationMonitors); - writer.WriteCollectionOfObjectValues("configurationSnapshotJobs", ConfigurationSnapshotJobs); - writer.WriteCollectionOfObjectValues("configurationSnapshots", ConfigurationSnapshots); - } - } -} -#pragma warning restore CS0618 diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/Models/Entity.cs b/src/ConfigurationManagement/wrapper/v1.0/Client/Models/Entity.cs index 4157faaa2c8..fa0a0ac3c2a 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/Models/Entity.cs @@ -50,7 +50,6 @@ public Entity() { "#microsoft.graph.configurationBaseline" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline(), "#microsoft.graph.configurationDrift" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift(), - "#microsoft.graph.configurationManagement" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement(), "#microsoft.graph.configurationMonitor" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitor(), "#microsoft.graph.configurationMonitoringResult" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult(), "#microsoft.graph.configurationSnapshotJob" => new global::Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob(), diff --git a/src/ConfigurationManagement/wrapper/v1.0/Client/kiota-lock.json b/src/ConfigurationManagement/wrapper/v1.0/Client/kiota-lock.json index 7b9398a516b..26be0889f6b 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Client/kiota-lock.json +++ b/src/ConfigurationManagement/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "14C56A984CD3784FA6FA4D2C20C759D15487C2CC6B545CDA53BB0B27552CB5428268C7116862B7CDEC69D20FA910EC867658C8075BE61E678B6F37403ADABDAE", + "descriptionHash": "FFB13158A256BB896D6C1450FAEBF861E0535ACA83546397A491601D13937CC03643299531C815A5ABBDAC62EDB699B87EC581177BDE0E1C50162813088D25E0", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/ConfigurationManagement.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagement.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagement.g.cs deleted file mode 100644 index a13870da776..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagement.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("GET", "/admin/configurationManagement")] - [Cmdlet(VerbsCommon.Get, "MgAdminConfigurationManagement")] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement))] - public class GetMgAdminConfigurationManagementCommand : GraphClientCmdlet - { - - - - - [Parameter(Mandatory = false)] - [Alias("Select")] - public string[]? Property { get; set; } - [Parameter(Mandatory = false)] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement? result; - try - { - result = client.Admin.ConfigurationManagement.GetAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Property))) - requestConfiguration.QueryParameters.Select = Property; - - if (this.IsParameterBound(nameof(ExpandProperty))) - requestConfiguration.QueryParameters.Expand = ExpandProperty; - - - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift.g.cs index 3a5af31f924..f838f689602 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConfigurationDriftId : null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDriftCount.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDriftCount.g.cs index 9e6ad59360b..12850fb3123 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDriftCount.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDriftCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_Get.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_Get.g.cs index 884b3741d6f..c7e86d02824 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_Get.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationDriftId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_List.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_List.g.cs index 6c44f7061fb..8e70c7644c8 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_List.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationDrift_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor.g.cs index 90896cf3349..66484d20e41 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConfigurationMonitorId : null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs index bdae43d2f9a..630813440ad 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitorId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorCount.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorCount.g.cs index 642c302ba98..533dee3cbb9 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorCount.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_Get.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_Get.g.cs index bbb172494f6..d5b071ad5e4 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_Get.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitorId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_List.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_List.g.cs index de41fcf27f2..abf1f34e2af 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_List.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitor_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs index 6a1eeae3228..c1e5831daa5 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConfigurationMonitoringResultId : null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResultCount.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResultCount.g.cs index cba974745c0..b996e010757 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResultCount.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResultCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_Get.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_Get.g.cs index 3964b8e14b2..1479b354b1b 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_Get.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitoringResultId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_List.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_List.g.cs index 4c0d3b6c70b..8e4619dfe99 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_List.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationMonitoringResult_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot.g.cs index bd4de7ebb42..27762fa11f2 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConfigurationBaselineId : null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotCount.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotCount.g.cs deleted file mode 100644 index 7a8a645a0eb..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("GET", "/admin/configurationManagement/configurationSnapshots/$count")] - [Cmdlet(VerbsCommon.Get, "MgAdminConfigurationManagementConfigurationSnapshotCount")] - [OutputType(typeof(int))] - public class GetMgAdminConfigurationManagementConfigurationSnapshotCountCommand : GraphClientCmdlet - { - - - - - [Parameter(Mandatory = false)] - public string? Filter { get; set; } - - [Parameter(Mandatory = false)] - public string? Search { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - int? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshots.Count.GetAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - if (this.IsParameterBound(nameof(Search))) - requestConfiguration.QueryParameters.Search = Search; - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs index c669258863b..be9b01634fb 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConfigurationSnapshotJobId : null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJobCount.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJobCount.g.cs deleted file mode 100644 index 0251bf02757..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJobCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("GET", "/admin/configurationManagement/configurationSnapshotJobs/$count")] - [Cmdlet(VerbsCommon.Get, "MgAdminConfigurationManagementConfigurationSnapshotJobCount")] - [OutputType(typeof(int))] - public class GetMgAdminConfigurationManagementConfigurationSnapshotJobCountCommand : GraphClientCmdlet - { - - - - - [Parameter(Mandatory = false)] - public string? Filter { get; set; } - - [Parameter(Mandatory = false)] - public string? Search { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - int? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.Count.GetAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - if (this.IsParameterBound(nameof(Search))) - requestConfiguration.QueryParameters.Search = Search; - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_Get.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_Get.g.cs index e1363f8884a..02465246264 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_Get.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationSnapshotJobId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_List.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_List.g.cs index 3fc536d89d5..730a46fac0c 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_List.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshotJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_Get.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_Get.g.cs index 8cda024c3b2..89e932e86a0 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_Get.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationBaselineId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_List.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_List.g.cs index 18903d887bb..2934a19ccd6 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_List.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/GetMgAdminConfigurationManagementConfigurationSnapshot_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationDrift.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationDrift.g.cs deleted file mode 100644 index 0f6a1d2f4bd..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationDrift.g.cs +++ /dev/null @@ -1,70 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("POST", "/admin/configurationManagement/configurationDrifts")] - [Cmdlet(VerbsCommon.New, "MgAdminConfigurationManagementConfigurationDrift", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift))] - public class NewMgAdminConfigurationManagementConfigurationDriftCommand : GraphClientCmdlet - { - - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.OpenComplexDictionaryType? ResourceInstanceIdentifier { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.DriftStatus? Status { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift(); - - - if (this.IsParameterBound(nameof(ResourceInstanceIdentifier))) - body.ResourceInstanceIdentifier = ResourceInstanceIdentifier; - - if (this.IsParameterBound(nameof(Status))) - body.Status = Status; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationDrifts.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, body); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitor.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitor.g.cs index 7d24e39c673..24c2557eb97 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitor.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitor.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs deleted file mode 100644 index 159b14bb664..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("POST", "/admin/configurationManagement/configurationMonitoringResults")] - [Cmdlet(VerbsCommon.New, "MgAdminConfigurationManagementConfigurationMonitoringResult", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult))] - public class NewMgAdminConfigurationManagementConfigurationMonitoringResultCommand : GraphClientCmdlet - { - - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.MonitorRunStatus? RunStatus { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult(); - - - if (this.IsParameterBound(nameof(RunStatus))) - body.RunStatus = RunStatus; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationMonitoringResults.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, body); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshot.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshot.g.cs deleted file mode 100644 index ba71a16e55f..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshot.g.cs +++ /dev/null @@ -1,80 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("POST", "/admin/configurationManagement/configurationSnapshots")] - [Cmdlet(VerbsCommon.New, "MgAdminConfigurationManagementConfigurationSnapshot", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline))] - public class NewMgAdminConfigurationManagementConfigurationSnapshotCommand : GraphClientCmdlet - { - - - [Parameter(Mandatory = false)] - public string? Description { get; set; } - - [Parameter(Mandatory = false)] - public string? DisplayName { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineParameter[]? Parameters { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineResource[]? Resources { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline(); - - if (this.IsParameterBound(nameof(Description))) - body.Description = Description; - - if (this.IsParameterBound(nameof(DisplayName))) - body.DisplayName = DisplayName; - - if (this.IsParameterBound(nameof(Parameters))) - body.Parameters = Parameters!.ToList(); - - if (this.IsParameterBound(nameof(Resources))) - body.Resources = Resources!.ToList(); - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshots.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, body); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs deleted file mode 100644 index ba21856c47a..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/NewMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("POST", "/admin/configurationManagement/configurationSnapshotJobs")] - [Cmdlet(VerbsCommon.New, "MgAdminConfigurationManagementConfigurationSnapshotJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob))] - public class NewMgAdminConfigurationManagementConfigurationSnapshotJobCommand : GraphClientCmdlet - { - - - [Parameter(Mandatory = false)] - public string? Description { get; set; } - - [Parameter(Mandatory = false)] - public string? DisplayName { get; set; } - - [Parameter(Mandatory = false)] - public string[]? Resources { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.IdentitySet? CreatedBy { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.SnapshotJobStatus? Status { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob(); - - if (this.IsParameterBound(nameof(Description))) - body.Description = Description; - - if (this.IsParameterBound(nameof(DisplayName))) - body.DisplayName = DisplayName; - - if (this.IsParameterBound(nameof(Resources))) - body.Resources = Resources!.ToList(); - - if (this.IsParameterBound(nameof(CreatedBy))) - body.CreatedBy = CreatedBy; - - if (this.IsParameterBound(nameof(Status))) - body.Status = Status; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, body); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagement.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagement.g.cs deleted file mode 100644 index 55bff7edc37..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagement.g.cs +++ /dev/null @@ -1,55 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("DELETE", "/admin/configurationManagement")] - [Cmdlet(VerbsCommon.Remove, "MgAdminConfigurationManagement", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminConfigurationManagementCommand : GraphClientCmdlet - { - - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ConfigurationManagement.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationDrift.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationDrift.g.cs deleted file mode 100644 index 3e9e5584b48..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationDrift.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("DELETE", "/admin/configurationManagement/configurationDrifts/{configurationDrift-id}")] - [Cmdlet(VerbsCommon.Remove, "MgAdminConfigurationManagementConfigurationDrift", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminConfigurationManagementConfigurationDriftCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationDriftId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationDriftId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId].DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationDriftId); - return; - } - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitor.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitor.g.cs index e4c20b22335..eb1b8aad80d 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitor.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitor.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitorId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs deleted file mode 100644 index 80a2eb9b872..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("DELETE", "/admin/configurationManagement/configurationMonitors/{configurationMonitor-id}/baseline")] - [Cmdlet(VerbsCommon.Remove, "MgAdminConfigurationManagementConfigurationMonitorBaseline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminConfigurationManagementConfigurationMonitorBaselineCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationMonitorId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationMonitorId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].Baseline.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitorId); - return; - } - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs deleted file mode 100644 index 2f4cace8e49..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("DELETE", "/admin/configurationManagement/configurationMonitoringResults/{configurationMonitoringResult-id}")] - [Cmdlet(VerbsCommon.Remove, "MgAdminConfigurationManagementConfigurationMonitoringResult", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminConfigurationManagementConfigurationMonitoringResultCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationMonitoringResultId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationMonitoringResultId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ConfigurationManagement.ConfigurationMonitoringResults[ConfigurationMonitoringResultId].DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitoringResultId); - return; - } - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshot.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshot.g.cs deleted file mode 100644 index 4b2f619bc6f..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshot.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("DELETE", "/admin/configurationManagement/configurationSnapshots/{configurationBaseline-id}")] - [Cmdlet(VerbsCommon.Remove, "MgAdminConfigurationManagementConfigurationSnapshot", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminConfigurationManagementConfigurationSnapshotCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationBaselineId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationBaselineId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId].DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationBaselineId); - return; - } - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs index 3a11e514983..15dc23024ad 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationSnapshotJobId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagement.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagement.g.cs deleted file mode 100644 index 79857e50994..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagement.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagement", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement))] - public class UpdateMgAdminConfigurationManagementCommand : GraphClientCmdlet - { - - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(null, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement(); - - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationManagement? result; - try - { - result = client.Admin.ConfigurationManagement.PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, null); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationDrift.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationDrift.g.cs deleted file mode 100644 index 88c8422df57..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationDrift.g.cs +++ /dev/null @@ -1,86 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement/configurationDrifts/{configurationDrift-id}")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagementConfigurationDrift", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift))] - public class UpdateMgAdminConfigurationManagementConfigurationDriftCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationDriftId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.OpenComplexDictionaryType? ResourceInstanceIdentifier { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.DriftStatus? Status { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationDriftId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift(); - - - if (this.IsParameterBound(nameof(ResourceInstanceIdentifier))) - body.ResourceInstanceIdentifier = ResourceInstanceIdentifier; - - if (this.IsParameterBound(nameof(Status))) - body.Status = Status; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationDrift? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationDriftId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.ConfigurationDrifts[ConfigurationDriftId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationDriftId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitor.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitor.g.cs index 953b24c8436..63c9a4d1293 100644 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitor.g.cs +++ b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitor.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitorId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConfigurationMonitorId); return; diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs deleted file mode 100644 index cba119c6a31..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitorBaseline.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement/configurationMonitors/{configurationMonitor-id}/baseline")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagementConfigurationMonitorBaseline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline))] - public class UpdateMgAdminConfigurationManagementConfigurationMonitorBaselineCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationMonitorId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? Description { get; set; } - - [Parameter(Mandatory = false)] - public string? DisplayName { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineParameter[]? Parameters { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineResource[]? Resources { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationMonitorId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline(); - - if (this.IsParameterBound(nameof(Description))) - body.Description = Description; - - if (this.IsParameterBound(nameof(DisplayName))) - body.DisplayName = DisplayName; - - if (this.IsParameterBound(nameof(Parameters))) - body.Parameters = Parameters!.ToList(); - - if (this.IsParameterBound(nameof(Resources))) - body.Resources = Resources!.ToList(); - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].Baseline.PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitorId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.ConfigurationMonitors[ConfigurationMonitorId].Baseline.GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitorId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs deleted file mode 100644 index b883aa279e9..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationMonitoringResult.g.cs +++ /dev/null @@ -1,80 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement/configurationMonitoringResults/{configurationMonitoringResult-id}")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagementConfigurationMonitoringResult", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult))] - public class UpdateMgAdminConfigurationManagementConfigurationMonitoringResultCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationMonitoringResultId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.MonitorRunStatus? RunStatus { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationMonitoringResultId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult(); - - - if (this.IsParameterBound(nameof(RunStatus))) - body.RunStatus = RunStatus; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationMonitoringResult? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationMonitoringResults[ConfigurationMonitoringResultId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitoringResultId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.ConfigurationMonitoringResults[ConfigurationMonitoringResultId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationMonitoringResultId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshot.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshot.g.cs deleted file mode 100644 index 1901926fc64..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshot.g.cs +++ /dev/null @@ -1,96 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement/configurationSnapshots/{configurationBaseline-id}")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagementConfigurationSnapshot", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline))] - public class UpdateMgAdminConfigurationManagementConfigurationSnapshotCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationBaselineId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? Description { get; set; } - - [Parameter(Mandatory = false)] - public string? DisplayName { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineParameter[]? Parameters { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.BaselineResource[]? Resources { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationBaselineId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline(); - - if (this.IsParameterBound(nameof(Description))) - body.Description = Description; - - if (this.IsParameterBound(nameof(DisplayName))) - body.DisplayName = DisplayName; - - if (this.IsParameterBound(nameof(Parameters))) - body.Parameters = Parameters!.ToList(); - - if (this.IsParameterBound(nameof(Resources))) - body.Resources = Resources!.ToList(); - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationBaseline? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationBaselineId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshots[ConfigurationBaselineId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationBaselineId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs b/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs deleted file mode 100644 index f7ef0bf5bad..00000000000 --- a/src/ConfigurationManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminConfigurationManagementConfigurationSnapshotJob.g.cs +++ /dev/null @@ -1,102 +0,0 @@ -#nullable enable - -using System; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client; -using Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.ConfigurationManagement -{ - [GraphRoute("PATCH", "/admin/configurationManagement/configurationSnapshotJobs/{configurationSnapshotJob-id}")] - [Cmdlet(VerbsData.Update, "MgAdminConfigurationManagementConfigurationSnapshotJob", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob))] - public class UpdateMgAdminConfigurationManagementConfigurationSnapshotJobCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ConfigurationSnapshotJobId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? Description { get; set; } - - [Parameter(Mandatory = false)] - public string? DisplayName { get; set; } - - [Parameter(Mandatory = false)] - public string[]? Resources { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.IdentitySet? CreatedBy { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.SnapshotJobStatus? Status { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ConfigurationSnapshotJobId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob(); - - if (this.IsParameterBound(nameof(Description))) - body.Description = Description; - - if (this.IsParameterBound(nameof(DisplayName))) - body.DisplayName = DisplayName; - - if (this.IsParameterBound(nameof(Resources))) - body.Resources = Resources!.ToList(); - - if (this.IsParameterBound(nameof(CreatedBy))) - body.CreatedBy = CreatedBy; - - if (this.IsParameterBound(nameof(Status))) - body.Status = Status; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.ConfigurationManagement.Client.Models.ConfigurationSnapshotJob? result; - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs[ConfigurationSnapshotJobId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationSnapshotJobId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Admin.ConfigurationManagement.ConfigurationSnapshotJobs[ConfigurationSnapshotJobId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ConfigurationSnapshotJobId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Client/kiota-lock.json b/src/CrossDeviceExperiences/wrapper/v1.0/Client/kiota-lock.json index a932051be95..92714fdd9e1 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Client/kiota-lock.json +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "FCC40EDF0412538A9D5F517E89A9E8365039D3CA4C20E6B8D0BF6C9AB6C847E58394B811C86C00F4E3E21E55E0C21217021ACF44D28C960BB9704566C878309A", + "descriptionHash": "4DD3ACF7367124163CC930E860F59459995E9E19B5F4304047EAFC715DA491AFD866C7DE897FE1214206A43E80D777631E0CF66D77BC893C08981F8DB01080DE", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/CrossDeviceExperiences.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity.g.cs index b012a0c733a..7ae6fb33052 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserActivityId : UserId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityCount.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityCount.g.cs index 57180e5d35c..52a1ef4ed6f 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityCount.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem.g.cs index 51af7b51322..67acc94ddd3 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ActivityHistoryItemId : UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemActivity.g.cs index 73456a1bf6c..46668180712 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemActivity.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityHistoryItemId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemCount.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemCount.g.cs index 57bce94c25d..177e5871838 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemCount.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItemCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_Get.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_Get.g.cs index d7c00eaee7b..30e6a82e5d0 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_Get.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityHistoryItemId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_List.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_List.g.cs index 27943c68325..c6640d44f15 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_List.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivityHistoryItem_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_Get.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_Get.g.cs index 22754274e50..674243edfb8 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_Get.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_List.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_List.g.cs index 592ae59fac3..01d9c41be1a 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_List.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/GetMgUserActivity_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/InvokeMgRecentUserActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/InvokeMgRecentUserActivity.g.cs index 649986609a5..c6d58f79b50 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/InvokeMgRecentUserActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/InvokeMgRecentUserActivity.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivity.g.cs index 1411eda33fc..2714922de7c 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivity.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivityHistoryItem.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivityHistoryItem.g.cs index 5dd85f143c3..b2308e96105 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivityHistoryItem.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/NewMgUserActivityHistoryItem.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivity.g.cs index 0718f4bd4aa..dabec156584 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivity.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivityHistoryItem.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivityHistoryItem.g.cs index a4cfeff6330..3fcd961f0de 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivityHistoryItem.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/RemoveMgUserActivityHistoryItem.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityHistoryItemId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivity.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivity.g.cs index de200612d50..ff3e718cc5b 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivity.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivity.g.cs @@ -127,7 +127,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; @@ -141,7 +141,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Activities[UserActivityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserActivityId); return; diff --git a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivityHistoryItem.g.cs b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivityHistoryItem.g.cs index 34e92cd6a81..ce4bc00256d 100644 --- a/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivityHistoryItem.g.cs +++ b/src/CrossDeviceExperiences/wrapper/v1.0/Cmdlets/UpdateMgUserActivityHistoryItem.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityHistoryItemId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Activities[UserActivityId].HistoryItems[ActivityHistoryItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityHistoryItemId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Chat.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Chat.cs index 36023a43e58..dd53c9d41c9 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.DeviceManagement. #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..a0ff03b658d --- /dev/null +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..81ce103e766 --- /dev/null +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Group.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Group.cs index e3fdaba53b5..460d5f64468 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Group.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.DeviceManagement #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/List.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/List.cs index 06a3838d47f..d33ea78c0d3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/List.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.DeviceManagement. #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ListItem.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ListItem.cs index 00cd42c0d14..30fe09bebbd 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.DeviceManagem #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index ffbdef7b1c2..3d30a133be1 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #nullable restore #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..2d466390344 --- /dev/null +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 65f61389199..28302bea5f2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index ac0da37399e..64f42b8ee64 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Mode public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.Identity? Recipient { get; set; } diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/User.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/User.cs index 846fa70823f..9f662421e30 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/User.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.DeviceManagement. #nullable restore #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Administration.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/UserActivityType.cs index c528eaf3324..24ddd4decb0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Client/kiota-lock.json b/src/DeviceManagement.Administration/wrapper/v1.0/Client/kiota-lock.json index 0119b1f3ef4..56c22c82b62 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Client/kiota-lock.json +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "431DD9B498FA318AC853E1CAC26829C880DF6197B981D49D81BFC0B0D943C767D9DAD522582AB06A0264BDE159475C485E1F998CFACA156A1AD93099DDB84B08", + "descriptionHash": "60B145A342903D4AC2081F1C25A8DAEFCEC38EFE24CD3FB12D341333C6BF17ECDD8FCF611C0F2D16C92F9D5CD16B16C69D2A6E08B2362C0F10035974C29256FD", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/DeviceManagement.Administration.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/DisconnectMgDeviceManagementRemoteAssistancePartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/DisconnectMgDeviceManagementRemoteAssistancePartner.g.cs index 5d395655057..92f44739d2f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/DisconnectMgDeviceManagementRemoteAssistancePartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/DisconnectMgDeviceManagementRemoteAssistancePartner.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementApplePushNotificationCertificate.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementApplePushNotificationCertificate.g.cs index 2296b2709c9..bdb10a1013a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementApplePushNotificationCertificate.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementApplePushNotificationCertificate.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent.g.cs index 4d2fd81795b..5b0c7191617 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuditEventId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventAuditCategory.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventAuditCategory.g.cs index 4865f7172ac..3a59f553495 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventAuditCategory.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventAuditCategory.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventCount.g.cs index 1e3325292cb..ee90703bb7f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventGetAuditActivityTypesWithCategory.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventGetAuditActivityTypesWithCategory.g.cs index f64aeed1faa..b4db1edf713 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventGetAuditActivityTypesWithCategory.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEventGetAuditActivityTypesWithCategory.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_Get.g.cs index 353080b3043..ec0aa196444 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditEventId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_List.g.cs index 82d64630b59..5c3547dabc8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementAuditEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner.g.cs index c0b2c234a2d..4279f340fe8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ComplianceManagementPartnerId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartnerCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartnerCount.g.cs index 5d6ddd0d299..bd2ff7bd8f6 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartnerCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartnerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_Get.g.cs index 18a8cab61e3..ab753301588 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ComplianceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_List.g.cs index 36024ec2690..7e59005ab08 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementComplianceManagementPartner_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector.g.cs index 075409c43d5..2967889f49b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceManagementExchangeConnectorId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnectorCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnectorCount.g.cs index 915999207c3..731aef88da9 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnectorCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnectorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_Get.g.cs index 3e47b707c02..e0f595f5ef4 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExchangeConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_List.g.cs index d314d659a96..b357b33aacf 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementExchangeConnector_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus.g.cs index 9f39127a09a..32c0490d0b2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IosUpdateDeviceStatusId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatusCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatusCount.g.cs index b3b006351a9..ff24bcd306d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatusCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatusCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_Get.g.cs index 1bb3e9df484..a566292f2d3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosUpdateDeviceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_List.g.cs index c55b2e71e5a..1d5274652e7 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementIoUpdateStatus_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector.g.cs index a130dc12b5d..34ca6e06727 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileThreatDefenseConnectorId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnectorCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnectorCount.g.cs index ba024cdddd6..7dab1c16797 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnectorCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnectorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_Get.g.cs index 20f0a46ea3f..f1d04e7860b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileThreatDefenseConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_List.g.cs index ff2f8f65bd0..074542a2eec 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileThreatDefenseConnector_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner.g.cs index 9bd3eac167f..92257b4cb89 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceManagementPartnerId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartnerCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartnerCount.g.cs index 40c4988c943..9b6452167e9 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartnerCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartnerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_Get.g.cs index b144ab2dd4b..7adab806e03 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_List.g.cs index af8cb39fc12..3635e0db54c 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementPartner_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner.g.cs index 8668da73b94..0e17bcef737 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RemoteAssistancePartnerId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartnerCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartnerCount.g.cs index 5633072164e..fd66d2c720b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartnerCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartnerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_Get.g.cs index 3cee42b3de0..dda1c2c66ed 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_List.g.cs index 4d1f81b8214..3c2687d2964 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRemoteAssistancePartner_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation.g.cs index b1624a06a7c..284ba8f232a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceOperationId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperationCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperationCount.g.cs index e203186cb9f..8b43ec238ea 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperationCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_Get.g.cs index 964b3283d20..0ff858707eb 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceOperationId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_List.g.cs index 2277bcd149b..0868cc5bab5 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementResourceOperation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment.g.cs index ab651ef2ce6..e39ad5bdb78 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceAndAppManagementRoleAssignmentId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentCount.g.cs index 53a6cd96225..e4eb849ac51 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentRoleDefinition.g.cs index 6fdca5ece69..57a725029ec 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignmentRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceAndAppManagementRoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_Get.g.cs index 3df775f9fb9..3bb65aea1b0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceAndAppManagementRoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_List.g.cs index be30fea2502..1d5d6137fc6 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition.g.cs index bc0d909a214..f8691be619e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RoleDefinitionId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionCount.g.cs index 4f89c92571e..d6e3db9e31e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment.g.cs index 4596ecb7e4e..7b521762968 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RoleAssignmentId : RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentCount.g.cs index 52f08f9a589..dc2eb77a9d1 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinition.g.cs index fa163371126..ac7afe2720d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignmentRoleDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_Get.g.cs index cbe2faa81e4..1654b326a2b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_List.g.cs index cb333be02fb..ea0c2627238 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinitionRoleAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_Get.g.cs index b4832a5bdc7..d109cdcda63 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_List.g.cs index 61ceb6f720b..0bae9ad6ae2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementRoleDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition.g.cs index 1883c1e2a7c..845448a2ec7 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermsAndConditionsId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs index dd84e7e16fe..a4ea91de51e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermsAndConditionsAcceptanceStatusId : TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusCount.g.cs index b5457be189d..0d5b5acba4d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusTermAndCondition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusTermAndCondition.g.cs index 4bcd8165ece..549d9e1ddd0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusTermAndCondition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatusTermAndCondition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAcceptanceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_Get.g.cs index fa05d1166e5..d656cb37ffb 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAcceptanceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_List.g.cs index 9cdafd44f44..de54aac1b26 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAcceptanceStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment.g.cs index 8cc124f7e53..8fa4f8f854a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermsAndConditionsAssignmentId : TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignmentCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignmentCount.g.cs index 8f4beff3a82..24ca63bfcea 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignmentCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_Get.g.cs index cdc2b28fb24..6e2a54d13f0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_List.g.cs index a359f2f544b..f9d79d57beb 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionCount.g.cs index 3636383c97e..4456780a8ff 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndConditionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_Get.g.cs index f5cfa29b25c..bcda2236645 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_List.g.cs index aa2c7ba1adb..611cbe3fe86 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTermAndCondition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpoint.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpoint.g.cs index 4a679e65d02..ca316f37ff1 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpoint.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpoint.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent.g.cs index 7f698d3fa9a..46382fa241f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcAuditEventId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventAuditActivityType.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventAuditActivityType.g.cs index 3e22d84914e..c513d19b96e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventAuditActivityType.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventAuditActivityType.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventCount.g.cs index c50e0457125..b1ddaa8b387 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_Get.g.cs index 218d1aedf8a..bd68ed3fcc7 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcAuditEventId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_List.g.cs index dd3623db367..b6a04efd999 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointAuditEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc.g.cs index 610e3d2091d..f733bcb0778 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPCId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcCount.g.cs index 6d68eee9b44..e8fae4b3b21 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcLaunchDetail.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcLaunchDetail.g.cs index f8466070b0b..74cd2207c3c 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcLaunchDetail.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPcLaunchDetail.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_Get.g.cs index 1f217b07016..dca77d7c458 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_List.g.cs index ac64f03eb4c..2e3520fca26 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointCloudPc_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage.g.cs index 9bc15d381a9..b34d20e3538 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcDeviceImageId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageCount.g.cs index f3ae9e4fdef..18597472048 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageSourceImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageSourceImage.g.cs index 0ca4120976e..767d0cb9f04 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageSourceImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImageSourceImage.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_Get.g.cs index e008bfcf99e..dbd136a475e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcDeviceImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_List.g.cs index f517581b543..a1ea43db357 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointDeviceImage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage.g.cs index b76639d8439..68809f1a7f4 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcGalleryImageId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImageCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImageCount.g.cs index bb17b481783..7f62485d6d3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImageCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_Get.g.cs index 300d1f1fd4c..353e5fe11cb 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcGalleryImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_List.g.cs index bcbcbf4d5ab..e99ba42c172 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointGalleryImage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs index eb64d74c9c4..69fc63e6c94 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcOnPremisesConnectionId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnectionCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnectionCount.g.cs index 1d4b4f3e4f9..01255e3dfcd 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnectionCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_Get.g.cs index 455cbccde1c..5992dd601ee 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_List.g.cs index 4381ba61410..7aeb7f386d2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointOnPremiseConnection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs index 2c004e7d5b9..be363201930 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcProvisioningPolicyId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs index 77fdf40dff0..0cd0cdf599c 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcProvisioningPolicyAssignmentId : CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser.g.cs index c8460df71a6..e02dca21380 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserCount.g.cs index 24b0f32567a..8fb6a331b1f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs index 0b146a751a3..0e3bd8eca86 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningError.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningError.g.cs index 7e6543fd299..5da29a6ec12 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningError.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningErrorCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningErrorCount.g.cs index aeeee00f7b9..7db27bf15ac 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningErrorCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_Get.g.cs index 60d00746651..92019a077d8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_List.g.cs index c817f568050..2dc5e7a1895 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUser_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentCount.g.cs index 79fbf187057..b14bf9ca87f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_Get.g.cs index aad7531adf7..4bb5082eae5 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_List.g.cs index dbc3f677ada..d3e854813a2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyCount.g.cs index 84faacb58c3..7bc3a1bab23 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_Get.g.cs index fd6120c2c30..8bc82df0fb7 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_List.g.cs index fdb99ca8f62..0d8ef3a4ed9 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointProvisioningPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReport.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReport.g.cs index 7634b625994..c9c606fc878 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReport.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReport.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReportCloudPcRecommendationReport.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReportCloudPcRecommendationReport.g.cs index 168bad482b7..0f5db994ca3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReportCloudPcRecommendationReport.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointReportCloudPcRecommendationReport.g.cs @@ -96,7 +96,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan.g.cs index 2b1c1b01ccc..4b2b96199ac 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcServicePlanId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlanCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlanCount.g.cs index 1442a69d4f7..37fefee9bb3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlanCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlanCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_Get.g.cs index fc94b29d5c6..1274c2bfc5f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcServicePlanId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_List.g.cs index c37ffaf3a3c..f2aad32558e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointServicePlan_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting.g.cs index 6b12b9e5139..e7f13dab7e8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcUserSettingId : null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs index 4682cb3ecc1..e53762d38e6 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CloudPcUserSettingAssignmentId : CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignmentCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignmentCount.g.cs index 24d4b37ed08..00ada09a42a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignmentCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_Get.g.cs index 3cc735fe781..46280a17b11 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_List.g.cs index 647e450c022..ba0308659ef 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingCount.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingCount.g.cs index 9a18225ba1e..ab8adb5226a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingCount.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSettingCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_Get.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_Get.g.cs index 7676becfe68..ac785c437c4 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_Get.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_List.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_List.g.cs index 1b2fc5a7574..bea9e31c99a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_List.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVirtualEndpointUserSetting_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgBeginDeviceManagementRemoteAssistancePartnerOnboarding.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgBeginDeviceManagementRemoteAssistancePartnerOnboarding.g.cs index f271d7e35c1..3ad754f337c 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgBeginDeviceManagementRemoteAssistancePartnerOnboarding.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgBeginDeviceManagementRemoteAssistancePartnerOnboarding.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.g.cs index 47e2d5725bf..0f304f5cc05 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgDownloadDeviceManagementApplePushNotificationCertificateApplePushNotificationCertificateSigningRequest.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgReprovisionDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgReprovisionDeviceManagementVirtualEndpointCloudPc.g.cs index 974b2c2978f..e06aa2d0e71 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgReprovisionDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgReprovisionDeviceManagementVirtualEndpointCloudPc.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTerminateDeviceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTerminateDeviceManagementPartner.g.cs index d2c4ee30549..e36172b51d8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTerminateDeviceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTerminateDeviceManagementPartner.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTroubleshootDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTroubleshootDeviceManagementVirtualEndpointCloudPc.g.cs index 927b2d2f180..ef3f3f1d161 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTroubleshootDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/InvokeMgTroubleshootDeviceManagementVirtualEndpointCloudPc.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementAuditEvent.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementAuditEvent.g.cs index f7d7211db0d..6b9cacf49c5 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementAuditEvent.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementAuditEvent.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementComplianceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementComplianceManagementPartner.g.cs index e1cb2bd72bd..faa31759b62 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementComplianceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementComplianceManagementPartner.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementExchangeConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementExchangeConnector.g.cs index 8143527d25e..20303568e75 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementExchangeConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementExchangeConnector.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementIoUpdateStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementIoUpdateStatus.g.cs index 4a7756413de..d63db5a0543 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementIoUpdateStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementIoUpdateStatus.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileThreatDefenseConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileThreatDefenseConnector.g.cs index 5a5aa393715..77d169aa26f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileThreatDefenseConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileThreatDefenseConnector.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementPartner.g.cs index ff755d9705d..b56355044dc 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementPartner.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRemoteAssistancePartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRemoteAssistancePartner.g.cs index 3df650262ac..5deb5590eb0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRemoteAssistancePartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRemoteAssistancePartner.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementResourceOperation.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementResourceOperation.g.cs index 33948f1951e..7d3ef283302 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementResourceOperation.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementResourceOperation.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleAssignment.g.cs index febabc7d38c..6db20a15b10 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleAssignment.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinition.g.cs index 6d2549d25a0..8f0e4d209dd 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinition.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinitionRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinitionRoleAssignment.g.cs index 28529a062c0..49792dc8e20 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinitionRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementRoleDefinitionRoleAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndCondition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndCondition.g.cs index 2a32f2c3094..9344b627a34 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndCondition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndCondition.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs index 11ff6b3eba9..82ee475be13 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAssignment.g.cs index 3c1f09f53fe..7fb9e752679 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTermAndConditionAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointDeviceImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointDeviceImage.g.cs index d2641b3cdfc..8be7565dd05 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointDeviceImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointDeviceImage.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointGalleryImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointGalleryImage.g.cs index 3b659125f88..f0e48cf038d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointGalleryImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointGalleryImage.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs index 7e1248a7b98..a821f24f8fc 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs @@ -158,7 +158,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs index 3150d34db48..d8130f83c14 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs index cd0a22742f0..5189739ed9d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSetting.g.cs index 51154b3f014..4ae1cb44f15 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSetting.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs index 271f3a58b82..5c260ce4887 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/NewMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementApplePushNotificationCertificate.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementApplePushNotificationCertificate.g.cs index 103273b047a..f7b077f9aef 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementApplePushNotificationCertificate.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementApplePushNotificationCertificate.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementAuditEvent.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementAuditEvent.g.cs index 09a8cacaa54..2aa3be39d7f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementAuditEvent.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementAuditEvent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditEventId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementComplianceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementComplianceManagementPartner.g.cs index 691855c412f..7852f302032 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementComplianceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementComplianceManagementPartner.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ComplianceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementExchangeConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementExchangeConnector.g.cs index 2a02fbf8755..9d7de16ce01 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementExchangeConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementExchangeConnector.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExchangeConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementIoUpdateStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementIoUpdateStatus.g.cs index 8c79d224541..1e7e821719d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementIoUpdateStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementIoUpdateStatus.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosUpdateDeviceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileThreatDefenseConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileThreatDefenseConnector.g.cs index 6ea9294b9b5..4bcc8595392 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileThreatDefenseConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileThreatDefenseConnector.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileThreatDefenseConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementPartner.g.cs index b03d8c59e48..aaaed493a8d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementPartner.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRemoteAssistancePartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRemoteAssistancePartner.g.cs index 4bd7b04d6e5..c24e705e8a3 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRemoteAssistancePartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRemoteAssistancePartner.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementResourceOperation.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementResourceOperation.g.cs index 31896a0cdb0..178003362b8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementResourceOperation.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementResourceOperation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceOperationId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleAssignment.g.cs index ccea880a195..70d21854d83 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceAndAppManagementRoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinition.g.cs index 2d9f805bb9b..731e0c62770 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinitionRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinitionRoleAssignment.g.cs index 4581c1e0e75..01adbb6a142 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinitionRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementRoleDefinitionRoleAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndCondition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndCondition.g.cs index 829ebc50006..9f9b5921a68 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndCondition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndCondition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs index 26cc35e0b7a..ae23dd5b824 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAcceptanceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAssignment.g.cs index 7c059083991..bbd7106db90 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTermAndConditionAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointDeviceImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointDeviceImage.g.cs index 23ac13142f7..d9737ab8178 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointDeviceImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointDeviceImage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcDeviceImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointGalleryImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointGalleryImage.g.cs index 6c0bbfa6ace..3d8a660b3c5 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointGalleryImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointGalleryImage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcGalleryImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs index de2bd75144e..ef2c93aaa3f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs index d39e43feece..9f3b5d88859 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs index cee3744d1d3..288f3e6bba1 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointReport.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointReport.g.cs index 9a9ce6092ce..89d7328934f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointReport.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointReport.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSetting.g.cs index 55eb1395224..1e067b2984a 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSetting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs index d047006c1b2..b65ca4f205b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RenameMgDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RenameMgDeviceManagementVirtualEndpointCloudPc.g.cs index f371a2c6d23..45dae0754f0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RenameMgDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RenameMgDeviceManagementVirtualEndpointCloudPc.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/ResizeMgDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/ResizeMgDeviceManagementVirtualEndpointCloudPc.g.cs index 5a7c0129e9a..3db2cd27ff6 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/ResizeMgDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/ResizeMgDeviceManagementVirtualEndpointCloudPc.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementVirtualEndpointCloudPc.g.cs index 7835c9d1bd0..682162161e0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementVirtualEndpointCloudPc.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementVirtualEndpointCloudPc.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementVirtualEndpointCloudPc.g.cs index 0cadd899091..6fd5dec13b9 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementVirtualEndpointCloudPc.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementVirtualEndpointCloudPc.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs index 5354bf2ec30..cdc5fb7ed8f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointUserSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointUserSetting.g.cs index 2c1f5153f8a..5e68bfafc06 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointUserSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SetMgDeviceManagementVirtualEndpointUserSetting.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StartMgDeviceManagementVirtualEndpointOnPremiseConnectionHealthCheck.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StartMgDeviceManagementVirtualEndpointOnPremiseConnectionHealthCheck.g.cs index 7fa9e5607fd..db5e3584d58 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StartMgDeviceManagementVirtualEndpointOnPremiseConnectionHealthCheck.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StartMgDeviceManagementVirtualEndpointOnPremiseConnectionHealthCheck.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StopMgDeviceManagementVirtualEndpointCloudPcGracePeriod.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StopMgDeviceManagementVirtualEndpointCloudPcGracePeriod.g.cs index e68801ea561..67742a911f0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StopMgDeviceManagementVirtualEndpointCloudPcGracePeriod.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/StopMgDeviceManagementVirtualEndpointCloudPcGracePeriod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPCId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementExchangeConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementExchangeConnector.g.cs index 57120309ef5..5ffea32d272 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementExchangeConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementExchangeConnector.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExchangeConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementApplePushNotificationCertificate.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementApplePushNotificationCertificate.g.cs index ce356e10ce5..179c1a2b96c 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementApplePushNotificationCertificate.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementApplePushNotificationCertificate.g.cs @@ -88,7 +88,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -102,7 +102,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ApplePushNotificationCertificate.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementAuditEvent.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementAuditEvent.g.cs index aff65bf1f2e..d7c7001e964 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementAuditEvent.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementAuditEvent.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditEventId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.AuditEvents[AuditEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditEventId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementComplianceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementComplianceManagementPartner.g.cs index b489abb7315..fdd6ad66040 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementComplianceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementComplianceManagementPartner.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ComplianceManagementPartnerId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ComplianceManagementPartners[ComplianceManagementPartnerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ComplianceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementExchangeConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementExchangeConnector.g.cs index 434eb8ff71d..cfa80f3b2ca 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementExchangeConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementExchangeConnector.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExchangeConnectorId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ExchangeConnectors[DeviceManagementExchangeConnectorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExchangeConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementIoUpdateStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementIoUpdateStatus.g.cs index 78215a629b9..bb2f53b0a27 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementIoUpdateStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementIoUpdateStatus.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosUpdateDeviceStatusId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.IosUpdateStatuses[IosUpdateDeviceStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosUpdateDeviceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileThreatDefenseConnector.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileThreatDefenseConnector.g.cs index 2b47fe7f03e..575d32e815e 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileThreatDefenseConnector.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileThreatDefenseConnector.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileThreatDefenseConnectorId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.MobileThreatDefenseConnectors[MobileThreatDefenseConnectorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileThreatDefenseConnectorId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementPartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementPartner.g.cs index 9f3732ada60..43da86214a8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementPartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementPartner.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementPartnerId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceManagementPartners[DeviceManagementPartnerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementPartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRemoteAssistancePartner.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRemoteAssistancePartner.g.cs index b44e94ef7d4..dbf614b5799 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRemoteAssistancePartner.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRemoteAssistancePartner.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.RemoteAssistancePartners[RemoteAssistancePartnerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RemoteAssistancePartnerId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementResourceOperation.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementResourceOperation.g.cs index aa92d870383..ee19141201d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementResourceOperation.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementResourceOperation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceOperationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ResourceOperations[ResourceOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceOperationId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleAssignment.g.cs index 8eb91a8f92d..a5af6de1ada 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleAssignment.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceAndAppManagementRoleAssignmentId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.RoleAssignments[DeviceAndAppManagementRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceAndAppManagementRoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinition.g.cs index 1be30acc63e..59b0a2e4893 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinition.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.RoleDefinitions[RoleDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleDefinitionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinitionRoleAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinitionRoleAssignment.g.cs index 9e3adee8db3..369cc7d5540 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinitionRoleAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementRoleDefinitionRoleAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.RoleDefinitions[RoleDefinitionId].RoleAssignments[RoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RoleAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndCondition.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndCondition.g.cs index ba44158997f..2f3f154e720 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndCondition.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndCondition.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.TermsAndConditions[TermsAndConditionsId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs index 3b861d31aec..c3e508d394f 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAcceptanceStatus.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAcceptanceStatusId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.TermsAndConditions[TermsAndConditionsId].AcceptanceStatuses[TermsAndConditionsAcceptanceStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAcceptanceStatusId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAssignment.g.cs index 7d0ff2d4a7e..4828700c61b 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTermAndConditionAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.TermsAndConditions[TermsAndConditionsId].Assignments[TermsAndConditionsAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermsAndConditionsAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointDeviceImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointDeviceImage.g.cs index 54c880efaf0..0ab52b254f0 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointDeviceImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointDeviceImage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcDeviceImageId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.DeviceImages[CloudPcDeviceImageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcDeviceImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointGalleryImage.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointGalleryImage.g.cs index 801f04463a5..96cb147d467 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointGalleryImage.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointGalleryImage.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcGalleryImageId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.GalleryImages[CloudPcGalleryImageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcGalleryImageId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs index 3002f675a2f..c5d7c7f4fe6 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnection.g.cs @@ -159,7 +159,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; @@ -173,7 +173,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.OnPremisesConnections[CloudPcOnPremisesConnectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.g.cs index 5a6a474f63d..3550987f0c2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointOnPremiseConnectionAdDomainPassword.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcOnPremisesConnectionId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs index 78a93a60c53..5fc332a4955 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicy.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.ProvisioningPolicies[CloudPcProvisioningPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs index 81d44dc41e4..7d4515dc8e8 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.ProvisioningPolicies[CloudPcProvisioningPolicyId].Assignments[CloudPcProvisioningPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcProvisioningPolicyAssignmentId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs index 769efa1c03a..c6792121b1d 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointProvisioningPolicyAssignmentAssignedUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.ProvisioningPolicies[CloudPcProvisioningPolicyId].Assignments[CloudPcProvisioningPolicyAssignmentId].AssignedUsers[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointReport.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointReport.g.cs index 0c2b0bdfa9c..ea1aa3024da 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointReport.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointReport.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.Report.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSetting.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSetting.g.cs index 7a9a5b56eef..e132c280cc2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSetting.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSetting.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.UserSettings[CloudPcUserSettingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingId); return; diff --git a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs index bc80b5c08e4..1427c8c42c2 100644 --- a/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs +++ b/src/DeviceManagement.Administration/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementVirtualEndpointUserSettingAssignment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingAssignmentId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.VirtualEndpoint.UserSettings[CloudPcUserSettingId].Assignments[CloudPcUserSettingAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CloudPcUserSettingAssignmentId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs index 28f98158358..fc518395387 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs @@ -67,6 +67,14 @@ public partial class UnifiedRoleAssignment : global::Microsoft.Graph.PowerShell. #nullable restore #else public string PrincipalId { get; set; } +#endif + /// The principalOrganizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalOrganizationId { get; set; } +#nullable restore +#else + public string PrincipalOrganizationId { get; set; } #endif /// The roleDefinition the assignment is for. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,6 +117,7 @@ public override IDictionary> GetFieldDeserializers() { "directoryScopeId", n => { DirectoryScopeId = n.GetStringValue(); } }, { "principal", n => { Principal = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Enrollment.Client.Models.DirectoryObject.CreateFromDiscriminatorValue); } }, { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "principalOrganizationId", n => { PrincipalOrganizationId = n.GetStringValue(); } }, { "roleDefinition", n => { RoleDefinition = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Enrollment.Client.Models.UnifiedRoleDefinition.CreateFromDiscriminatorValue); } }, { "roleDefinitionId", n => { RoleDefinitionId = n.GetStringValue(); } }, }; @@ -128,6 +137,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("directoryScopeId", DirectoryScopeId); writer.WriteObjectValue("principal", Principal); writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("principalOrganizationId", PrincipalOrganizationId); writer.WriteObjectValue("roleDefinition", RoleDefinition); writer.WriteStringValue("roleDefinitionId", RoleDefinitionId); } diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/kiota-lock.json b/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/kiota-lock.json index a08b722e6a3..bada8cb7759 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/kiota-lock.json +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2AFBC532CF7641175E5B734FA9EBFD334ADAD9CEE262C8DB3085C9FFC512A90E7CB99233B797E59E254C993D6AF75AFAA60BB23681B23913C1152A190CB624FB", + "descriptionHash": "BE39EDAD2F09E6551F156B0ABC4714778492B846210D987CF4169598B69539AA169498763FBAB7C8CB37ABF7DCE320E70CDCE4B425EAE21CDFB67514FA8FFDA9", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/DeviceManagement.Enrollment.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementConditionalAccessSetting.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementConditionalAccessSetting.g.cs index c19b46eef7e..4494ebcabfc 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementConditionalAccessSetting.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementConditionalAccessSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs index ad5a188888a..c6805f29110 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceEnrollmentConfigurationId : null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs index c563498a23d..1e351c84a2d 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EnrollmentConfigurationAssignmentId : DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignmentCount.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignmentCount.g.cs index bcd5b1770ad..73ba7bee037 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignmentCount.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_Get.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_Get.g.cs index f2ff911cda4..81da84382e2 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_Get.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EnrollmentConfigurationAssignmentId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_List.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_List.g.cs index 79f758ae98d..e6b5ac110ca 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_List.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationCount.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationCount.g.cs index cb49734f040..81a022d8465 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationCount.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_Get.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_Get.g.cs index d5c90a5c762..adb9c3200f5 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_Get.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_List.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_List.g.cs index 1ace358d4ff..335a8e5cbe5 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_List.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceEnrollmentConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs index c3d98b636e8..91fb037b159 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ImportedWindowsAutopilotDeviceIdentityId : null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentityCount.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentityCount.g.cs index 2c269165198..4ae7b9e79bc 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentityCount.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentityCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_Get.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_Get.g.cs index 3214e34a007..4ac398d8b81 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_Get.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ImportedWindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_List.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_List.g.cs index 1b7f597bb86..adf783252fd 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_List.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementImportedWindowsAutopilotDeviceIdentity_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs index 577b3110f7e..232d1f8c3ac 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsAutopilotDeviceIdentityId : null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentityCount.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentityCount.g.cs index 8ce2de4a411..c949cded3f5 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentityCount.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentityCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_Get.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_Get.g.cs index 5411e881daf..8f27ca2cc11 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_Get.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_List.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_List.g.cs index 80ef5719c33..49813e9e2c3 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_List.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsAutopilotDeviceIdentity_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgRoleManagement.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgRoleManagement.g.cs index 1d2d348c63a..d8d127edfbe 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgRoleManagement.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/GetMgRoleManagement.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/ImportMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/ImportMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs index 771cfb5ad6d..ce8805e5223 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/ImportMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/ImportMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/InvokeMgUnassignDeviceManagementWindowsAutopilotDeviceIdentityUserFromDevice.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/InvokeMgUnassignDeviceManagementWindowsAutopilotDeviceIdentityUserFromDevice.g.cs index 717875f362b..da9d7e79f33 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/InvokeMgUnassignDeviceManagementWindowsAutopilotDeviceIdentityUserFromDevice.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/InvokeMgUnassignDeviceManagementWindowsAutopilotDeviceIdentityUserFromDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfiguration.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfiguration.g.cs index 58678ba26ec..e6463430c9a 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfiguration.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfiguration.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs index 5462a2e9c12..2ede9bd12e4 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs index 50d1357e7de..9e61cd896f3 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs index 7ccdd0a02b3..253bd686ecc 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementConditionalAccessSetting.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementConditionalAccessSetting.g.cs index 9aa093b1813..b7b4701e922 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementConditionalAccessSetting.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementConditionalAccessSetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfiguration.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfiguration.g.cs index 4dd514cdb4c..912ae3da8d2 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfiguration.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs index 987f68e8bba..315d666f4c2 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EnrollmentConfigurationAssignmentId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs index dd0b11db6e7..442a7663da4 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ImportedWindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs index 1b4f69bd824..74e57a04dfd 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsAutopilotDeviceIdentity.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs index 824bdb4b36c..ab23ed4304e 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfiguration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfigurationPriority.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfigurationPriority.g.cs index 59969ea9731..dc0d2a6970c 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfigurationPriority.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceEnrollmentConfigurationPriority.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementWindowsAutopilotDeviceIdentityUserToDevice.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementWindowsAutopilotDeviceIdentityUserToDevice.g.cs index c494c7f3afd..737271288fb 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementWindowsAutopilotDeviceIdentityUserToDevice.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/SetMgDeviceManagementWindowsAutopilotDeviceIdentityUserToDevice.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementConditionalAccessSetting.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementConditionalAccessSetting.g.cs index d737b705b56..1a1342979a0 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementConditionalAccessSetting.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementConditionalAccessSetting.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -84,7 +84,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ConditionalAccessSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfiguration.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfiguration.g.cs index 5f0a25037ae..364320a6fcd 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfiguration.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfiguration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceEnrollmentConfigurations[DeviceEnrollmentConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceEnrollmentConfigurationId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs index 510ff425381..5ba626a0c19 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceEnrollmentConfigurationAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EnrollmentConfigurationAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceEnrollmentConfigurations[DeviceEnrollmentConfigurationId].Assignments[EnrollmentConfigurationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EnrollmentConfigurationAssignmentId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs index 65c5a2524ff..ce2fe830b4f 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementImportedWindowsAutopilotDeviceIdentity.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ImportedWindowsAutopilotDeviceIdentityId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ImportedWindowsAutopilotDeviceIdentities[ImportedWindowsAutopilotDeviceIdentityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ImportedWindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsAutopilotDeviceIdentityDeviceProperty.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsAutopilotDeviceIdentityDeviceProperty.g.cs index 50f4c00a134..7c638b69d28 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsAutopilotDeviceIdentityDeviceProperty.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsAutopilotDeviceIdentityDeviceProperty.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsAutopilotDeviceIdentityId); return; diff --git a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgRoleManagement.g.cs b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgRoleManagement.g.cs index 917545e426a..781a294202a 100644 --- a/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgRoleManagement.g.cs +++ b/src/DeviceManagement.Enrollment/wrapper/v1.0/Cmdlets/UpdateMgRoleManagement.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementGetEffectivePermissionsWithScope.g.cs b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementGetEffectivePermissionsWithScope.g.cs index 1251cb43bac..e2ec17d26ee 100644 --- a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementGetEffectivePermissionsWithScope.g.cs +++ b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementGetEffectivePermissionsWithScope.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVerifyWindowsEnrollmentAutoDiscoveryWithDomainName.g.cs b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVerifyWindowsEnrollmentAutoDiscoveryWithDomainName.g.cs index 88a50366e0f..d07d599e53b 100644 --- a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVerifyWindowsEnrollmentAutoDiscoveryWithDomainName.g.cs +++ b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/GetMgDeviceManagementVerifyWindowsEnrollmentAutoDiscoveryWithDomainName.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/InvokeMgExperienceDeviceManagement.g.cs b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/InvokeMgExperienceDeviceManagement.g.cs index 98c15f75131..19fd8cbe4fe 100644 --- a/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/InvokeMgExperienceDeviceManagement.g.cs +++ b/src/DeviceManagement.Functions/wrapper/v1.0/Cmdlets/InvokeMgExperienceDeviceManagement.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/Chat.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/Chat.cs index 95f6f40754c..09ca4c71e01 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.DeviceManagement. #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..246c3395691 --- /dev/null +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..44ad59a5884 --- /dev/null +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/Group.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/Group.cs index 3114b52552e..9ce297851c0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/Group.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.DeviceManagement #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/List.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/List.cs index 6bc71790f3a..bc09b6fa954 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/List.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.DeviceManagement. #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/ListItem.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/ListItem.cs index cce98ac5400..4d279a0469c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.DeviceManagem #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index f845b6121f3..4e6b73f9c3f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #nullable restore #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..ebc1329da1f --- /dev/null +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.DeviceManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 9b480ee7a1d..c0c44f4a7b9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 30808121977..e1c05927f8c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.DeviceManagement.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.Identity? Recipient { get; set; } diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/User.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/User.cs index 2b50e8858d7..65d8ecc72eb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/User.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.DeviceManagement. #nullable restore #else public global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.DeviceManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/DeviceManagement/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/DeviceManagement/wrapper/v1.0/Client/Models/UserActivityType.cs index fecb23117c2..098f02123cc 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/DeviceManagement/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/DeviceManagement/wrapper/v1.0/Client/kiota-lock.json b/src/DeviceManagement/wrapper/v1.0/Client/kiota-lock.json index f43a38c7cf5..fc8a8a637c5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Client/kiota-lock.json +++ b/src/DeviceManagement/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "8B42B737B93156160EC69C64D04EFC5971965FA797EF033A6052E9EAB81F9D455307997DB896E01C18C4B85530A98D688ECCB3140D9930704D22B33086DDDC14", + "descriptionHash": "755A858F2631C80B4C4A6328D08CC1D42C7FF754A7C732811A00353EBDC6AFB382C356E7F7EB6000537913AC2D5FC050D609786CA9EBDB37B79F6E9C0D5A2626", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/DeviceManagement.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/ClearMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/ClearMgDeviceManagementManagedDevice.g.cs index 677fceb53eb..9abefbb2a36 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/ClearMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/ClearMgDeviceManagementManagedDevice.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/DisableMgDeviceManagementManagedDeviceLostMode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/DisableMgDeviceManagementManagedDeviceLostMode.g.cs index bd38f7b6f02..7ea60e00495 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/DisableMgDeviceManagementManagedDeviceLostMode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/DisableMgDeviceManagementManagedDeviceLostMode.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/FindMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/FindMgDeviceManagementManagedDevice.g.cs index 4f0d34c178e..df909bb6adf 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/FindMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/FindMgDeviceManagementManagedDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdge.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdge.g.cs index 450406cda07..3b0892ef026 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdge.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdge.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerMode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerMode.g.cs index 2a5da2feb6a..36d1737a3ff 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerMode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerMode.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList.g.cs index 9a5afcd4d19..d605d32cbdb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BrowserSiteListId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListCount.g.cs index ad660775f96..231ddd05a84 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs index d001ab649a0..5ec3f6a545c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BrowserSharedCookieId : BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookieCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookieCount.g.cs index eabaf8e386d..b5bad0901c5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookieCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookieCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_Get.g.cs index 8efa6db5784..2009f3bddfb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSharedCookieId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_List.g.cs index 4fd79bda289..d92c8d1b470 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSharedCookie_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite.g.cs index 50775619ae5..419769118f2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BrowserSiteId : BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSiteCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSiteCount.g.cs index 1426022f68d..76c0b0a55a8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSiteCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSiteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_Get.g.cs index b3b4da7b04a..e1e9454b991 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_List.g.cs index 3f307230615..bba1e1aedf5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteListSite_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_Get.g.cs index 53d8c341343..dabc3a95512 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_List.g.cs index f8d6ab4266a..a73f9f3ea7a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgAdminEdgeInternetExplorerModeSiteList_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagement.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagement.g.cs index 9772946d808..d7ee529d6b6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagement.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagement.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp.g.cs index d0f41fc75c3..250ac1f5df6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DetectedAppId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppCount.g.cs index 4caf1e4187d..7217644713b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice.g.cs index 224b3b25b65..1c37b8d8296 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceId : DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDeviceCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDeviceCount.g.cs index 0c174839b1e..2cc9c384051 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDeviceCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDeviceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_Get.g.cs index ea982a652c1..1762b8fc414 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_List.g.cs index 7ca9bc7f72f..ba58e749fe7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedAppManagedDevice_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_Get.g.cs index 3ac81b1d876..04a676ed46a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_List.g.cs index 333ff54c72a..fe7650a4bf0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDetectedApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory.g.cs index fd46ae1a959..66d16fbda21 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCategoryId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategoryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategoryCount.g.cs index 1978418fbe2..3a7955e68ba 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategoryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategoryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_Get.g.cs index 5d7c1161b9f..0ed58df6e57 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCategoryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_List.g.cs index ad11c3d1bd2..25d9c9d523e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCategory_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy.g.cs index 235332f62f5..fcf17205115 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCompliancePolicyId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs index 661c9ec8f42..edb9fd67c58 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCompliancePolicyAssignmentId : DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignmentCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignmentCount.g.cs index 8e08c760699..cda5d2ea07e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignmentCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_Get.g.cs index 45b0ce881c6..e9885381728 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_List.g.cs index 7053031ad18..2ce9d7e6d1a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyCount.g.cs index 0cb885b163c..afa81228c81 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs index db68da23edb..cb047d209e1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SettingStateDeviceSummaryId : DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummaryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummaryCount.g.cs index 6cabbc1c783..2b9bfbcbea1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummaryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummaryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_Get.g.cs index dc20f87987e..5e428e50834 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_List.g.cs index 90cd6ac4083..ed79098fc00 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs index ea571cdb449..c3c352bd51b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs index 4e4a03696eb..f80fc3bab30 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceComplianceDeviceStatusId : DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusCount.g.cs index 2343702d097..695ac2856ef 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs index 094c8e5742a..34d2f0b2fec 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_Get.g.cs index 13d0a021db9..635a7289b79 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_List.g.cs index b1428a70224..47d21a7fd94 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyDeviceStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs index ce58f49fb1f..7956c9a740f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceComplianceScheduledActionForRuleId : DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleCount.g.cs index 24af28804f2..5b1aa233e4e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs index 528ebecb07f..10f2e46af0f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceComplianceActionItemId : DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfigurationCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfigurationCount.g.cs index 97f68ebaee6..2a5db404fe0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfigurationCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfigurationCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_Get.g.cs index 15e9b1f28d8..548944e6513 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceActionItemId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_List.g.cs index 3ddae9a0aab..d20c4c248a8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_Get.g.cs index 72f4bad93ed..2e71543ddb8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_List.g.cs index d680e395b81..09af2171c6e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs index 371b394f53c..00299e4a86f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCompliancePolicySettingStateSummaryId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryCount.g.cs index ed412b135e9..f25235b13e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs index 1dddec1af86..25a7bae8a0a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceComplianceSettingStateId : DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStateCount.g.cs index 83949c954d0..662c8101dd1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_Get.g.cs index f24411f53e6..7212aba8567 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceSettingStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_List.g.cs index 47b79e677c3..7ced8d1aeb1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_Get.g.cs index f0f35421b8d..46d3ec71cdf 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_List.g.cs index faccd4fc439..1cbc78983e5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicySettingStateSummary_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs index 7f8deaf33cd..4c39b6b73e0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceComplianceUserStatusId : DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusCount.g.cs index 5668e56cfe6..7f5e29f84d4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs index c7b47f17343..95b6134e714 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_Get.g.cs index d1e848ca9a0..c37c69426c6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_List.g.cs index 77ca8a928da..b04047aeb7b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicyUserStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_Get.g.cs index e4819bc89a7..ec8301d2008 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_List.g.cs index f82e9eddebd..8e84eb8bad3 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceCompliancePolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration.g.cs index d1705e56978..cff5ddbe805 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment.g.cs index 9432b127cfa..5c4430644e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationAssignmentId : DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignmentCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignmentCount.g.cs index 4aaece01ae4..6bc266e0868 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignmentCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_Get.g.cs index 59a24ff75bb..041b109efcd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_List.g.cs index 6137dfedab7..a57d77d7e64 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationCount.g.cs index 0d2aaa271ef..4e5ccb094e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs index d5f23dfd800..964b7b50783 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SettingStateDeviceSummaryId : DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummaryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummaryCount.g.cs index 8c894abdd61..c9c4e1da0a7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummaryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummaryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_Get.g.cs index 2bb834de181..dcb59502c87 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_List.g.cs index 64a247075bd..d7d882c76f6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs index d96936e7e77..af059092700 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs index dd771651c04..3e28a2d4441 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationDeviceStatusId : DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusCount.g.cs index 16ef9533c23..c13da16e11c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs index 3c704996d6f..afacd8f2511 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_Get.g.cs index 51eb886cfee..e59af19ad09 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_List.g.cs index b2410771d2d..80ec6e12479 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationDeviceStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationGetOmaSettingPlainTextValueWithSecretReferenceValueId.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationGetOmaSettingPlainTextValueWithSecretReferenceValueId.g.cs index 24fe237933d..33b2fb4a2d9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationGetOmaSettingPlainTextValueWithSecretReferenceValueId.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationGetOmaSettingPlainTextValueWithSecretReferenceValueId.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus.g.cs index e6f92a623f3..387f5ea482e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationUserStatusId : DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusCount.g.cs index 79a7f4a5508..f191f8d3c89 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs index 594118a1298..68115983d10 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_Get.g.cs index c10e60238a9..ed24df55931 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_List.g.cs index f43a629b7c8..1e2a54b15ce 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfigurationUserStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_Get.g.cs index 1c46af49f2d..9569d932f13 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_List.g.cs index 1db38e22cda..d2f96b104bd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementDeviceConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice.g.cs index 4410ba960d0..ed555432d27 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategory.g.cs index 1a4b7c78944..3be54035aa9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategory.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategoryByRef.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategoryByRef.g.cs index e714f5002c4..aaaa89b1ef0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategoryByRef.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCategoryByRef.g.cs @@ -40,7 +40,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs index f51b59ccae0..9e096747f4b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCompliancePolicyStateId : ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyStateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyStateCount.g.cs index b5246810be3..bf74fca2a5c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyStateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_Get.g.cs index 573fd9263c5..43f83e8163a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_List.g.cs index 368f61c6282..f2d4cc021e7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCompliancePolicyState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState.g.cs index ac683d7d781..34f7e75f178 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationStateId : ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationStateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationStateCount.g.cs index 0e3876c586e..121281e48a2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationStateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_Get.g.cs index 02437e42573..4aa033cc11b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_List.g.cs index 33f14ab64b0..5e349cf7145 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceConfigurationState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCount.g.cs index e473e4efab4..5efec52f484 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs index 36f05e1b34b..8867a9d7cf4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceLogCollectionResponseId : ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequestCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequestCount.g.cs index a86272ec37c..36e74dcd09f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequestCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_Get.g.cs index 34a9ed3865b..dd7c8bf7bd8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_List.g.cs index db7807e755f..d629872225e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceLogCollectionRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceOverview.g.cs index 888bf5d8b6d..e25c217dcee 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceOverview.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceUser.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceUser.g.cs index c55857cf20b..2880b37f1c3 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceUser.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceUser.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs index 5cc2e4e9e99..90d49ed0aa7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index 083f0c99001..cc408f1e1b1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsDeviceMalwareStateId : ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs index df2fdbefd8b..d8ee1547f4c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs index 037e96a0781..2b97e1430dd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs index 59580b50968..3756cfc034d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_Get.g.cs index 6ff2f30dd7c..8e4fc055ecb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_List.g.cs index 20a4c4e0203..17660163fde 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementManagedDevice_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent.g.cs index 50a5dad2818..3040e66b33b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppTroubleshootingEventId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs index 1a94f57427d..122bffe65d8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppLogCollectionRequestId : MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestCount.g.cs index 1fa954b8e11..20bc4c4177c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_Get.g.cs index 61bcad3e64e..9fa9a51291d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppLogCollectionRequestId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_List.g.cs index 27ab83a9f8f..bc7b11137e2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventCount.g.cs index e9c4fea6f87..162043b3c03 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_Get.g.cs index e3a123915df..3f429120ce6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_List.g.cs index f8322d31f18..6be75fb50ce 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementMobileAppTroubleshootingEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate.g.cs index 4543e4a4509..bc652bcc8e1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NotificationMessageTemplateId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateCount.g.cs index 3fa78c48a5e..92dc9901a04 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs index 76ca6297d60..2ffbc973e92 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LocalizedNotificationMessageId : NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessageCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessageCount.g.cs index 380219dafbd..ad9be552ea0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessageCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_Get.g.cs index a3d4291ddfe..bb4c9f1fd8a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LocalizedNotificationMessageId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_List.g.cs index 9f85b1eb5ab..570fc58a5e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_Get.g.cs index c120a116a48..c252eea20a5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_List.g.cs index fee11a2ec59..be3abff51fb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementNotificationMessageTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementSoftwareUpdateStatusSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementSoftwareUpdateStatusSummary.g.cs index b1bc69ba5b7..0ea78e51419 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementSoftwareUpdateStatusSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementSoftwareUpdateStatusSummary.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent.g.cs index 1d3d484713c..20c701ef8e7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceManagementTroubleshootingEventId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEventCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEventCount.g.cs index 9b608f718b7..b9ac185ce2c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEventCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_Get.g.cs index f52a61b89ec..69dae82c533 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_List.g.cs index 9b484dc3674..8d917947951 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementTroubleshootingEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs index 446889c516e..900f7cbde46 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionAppLearningSummaryId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummaryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummaryCount.g.cs index d143abbc7cd..1b6ffefc53d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummaryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummaryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_Get.g.cs index ed64a71d166..3f2e82bab98 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_List.g.cs index 55c5e4c80a1..c4a2674ed8a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionAppLearningSummary_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs index 71c1058863f..887fc64907d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionNetworkLearningSummaryId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummaryCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummaryCount.g.cs index 7f8df0c1644..f7fd6c91442 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummaryCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummaryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_Get.g.cs index b7c146bde67..7632d8e46fa 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionNetworkLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_List.g.cs index f2a160d5921..2785c48e3c2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation.g.cs index 79271808ab0..acfece42dc5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsMalwareInformationId : null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationCount.g.cs index d7a2bf14539..60da63db8bb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs index 65c1d25ebcc..6719f39f19d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MalwareStateForWindowsDeviceId : WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareStateCount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareStateCount.g.cs index a18aa0053cd..3107fd94fc5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareStateCount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_Get.g.cs index 375a07eebaa..1ab18192343 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MalwareStateForWindowsDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_List.g.cs index 26f85076e67..3e4db4a44d0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformationDeviceMalwareState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_Get.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_Get.g.cs index f31c55672f9..1dbbbb0f9f2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_Get.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_List.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_List.g.cs index d855a2f3051..bb47a352411 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_List.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/GetMgDeviceManagementWindowsMalwareInformation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanDeviceManagementManagedDeviceWindowsDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanDeviceManagementManagedDeviceWindowsDevice.g.cs index 761e109f9f9..ffb806c454f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanDeviceManagementManagedDeviceWindowsDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanDeviceManagementManagedDeviceWindowsDevice.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgDownDeviceManagementManagedDeviceShut.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgDownDeviceManagementManagedDeviceShut.g.cs index a38b56ff8b3..52896fff7e4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgDownDeviceManagementManagedDeviceShut.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgDownDeviceManagementManagedDeviceShut.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutDeviceManagementManagedDeviceSharedAppleDeviceActiveUser.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutDeviceManagementManagedDeviceSharedAppleDeviceActiveUser.g.cs index c9e9be9b47c..bfd7c7757d5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutDeviceManagementManagedDeviceSharedAppleDeviceActiveUser.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutDeviceManagementManagedDeviceSharedAppleDeviceActiveUser.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireDeviceManagementManagedDevice.g.cs index e9d06ed04de..5d8a8a88137 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireDeviceManagementManagedDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScanDeviceManagementManagedDeviceWindowsDefender.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScanDeviceManagementManagedDeviceWindowsDefender.g.cs index 32f31ca9cd3..7fb3af38e4e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScanDeviceManagementManagedDeviceWindowsDefender.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScanDeviceManagementManagedDeviceWindowsDefender.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScheduleDeviceManagementDeviceCompliancePolicyActionForRule.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScheduleDeviceManagementDeviceCompliancePolicyActionForRule.g.cs index b691785e473..829eb6c19dd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScheduleDeviceManagementDeviceCompliancePolicyActionForRule.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/InvokeMgScheduleDeviceManagementDeviceCompliancePolicyActionForRule.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/LockMgDeviceManagementManagedDeviceRemote.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/LockMgDeviceManagementManagedDeviceRemote.g.cs index d0cb886bb21..5937cc75c07 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/LockMgDeviceManagementManagedDeviceRemote.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/LockMgDeviceManagementManagedDeviceRemote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteList.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteList.g.cs index 77650e6d683..574372792e2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteList.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteList.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs index 8c7dc5a45f5..30d0ba47aa6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSite.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSite.g.cs index 56272c77732..c893eff9e61 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSite.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgAdminEdgeInternetExplorerModeSiteListSite.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDetectedApp.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDetectedApp.g.cs index 91acf0771bc..54ffdfbfcc9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDetectedApp.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDetectedApp.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCategory.g.cs index 82b88d861cd..39c8ad2f82c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCategory.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicy.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicy.g.cs index abc391228c2..acdcc35e150 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicy.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs index d7c16ed5b06..defafef99c3 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs index 4339ba83dfc..726cf206204 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs index aad1c09bca6..7fa0d817042 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs index ab39cbd1a7b..f885ee2d22e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs index 42a4034538a..c474f2eaf53 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs index f3ec3bfbd5f..4b6d1e4cd44 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs index a7d504d8582..620872e830c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs index d631fdcbf76..717c3fce39b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfiguration.g.cs index 7e3d5d22c53..862bd4c4759 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfiguration.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationAssignment.g.cs index aa785637c2d..c46a8863cf5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs index 7c43f3100cb..b8e5c27b1a5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs index 2b52c131051..a407c201d9f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationUserStatus.g.cs index 6eddcc49244..1b8ef2a1280 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementDeviceConfigurationUserStatus.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDevice.g.cs index 838bc86448a..dac4251680c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDevice.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs index 75c58fde853..9bbf485f9a2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceConfigurationState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceConfigurationState.g.cs index 19766cf0d3d..a5afa37423f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceConfigurationState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceConfigurationState.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceLogCollectionRequestDownloadUrl.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceLogCollectionRequestDownloadUrl.g.cs index d0550866b7e..77c1958cb24 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceLogCollectionRequestDownloadUrl.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceLogCollectionRequestDownloadUrl.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index fc12e06a90e..acdfbbdc7a3 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEvent.g.cs index 0ecd490fa48..a8d44e4a7be 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs index 4a05eb94fb7..2f276acd000 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestDownloadUrl.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestDownloadUrl.g.cs index 3e8bb089cf5..3356a20545f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestDownloadUrl.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequestDownloadUrl.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppLogCollectionRequestId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplate.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplate.g.cs index e5279b6bdba..fb1ff127764 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplate.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplate.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs index c9cb33dd8ce..834feca6443 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTroubleshootingEvent.g.cs index d4c4726d8ca..763d7a116ac 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementTroubleshootingEvent.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs index 019399d0520..35669ada4da 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs index d3823489f12..804a17d2516 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformation.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformation.g.cs index c55312f1e14..cf8bc17ece4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformation.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformation.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs index d8d8fa184bb..6454900cca7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/NewMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/PublishMgAdminEdgeInternetExplorerModeSiteList.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/PublishMgAdminEdgeInternetExplorerModeSiteList.g.cs index 40831f3d450..ef09b173416 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/PublishMgAdminEdgeInternetExplorerModeSiteList.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/PublishMgAdminEdgeInternetExplorerModeSiteList.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdge.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdge.g.cs index 3fe153933f5..ae06e0f13de 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdge.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdge.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerMode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerMode.g.cs index fc093f5216d..a85208d421f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerMode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerMode.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteList.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteList.g.cs index 5d6f799b7cb..906b0ee7ebf 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteList.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteList.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs index 4220943afb8..7e0310780ba 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSharedCookieId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSite.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSite.g.cs index d1f6e3664c2..921cfaa8373 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSite.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminEdgeInternetExplorerModeSiteListSite.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDetectedApp.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDetectedApp.g.cs index a37c3ea384e..53a873b2f4e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDetectedApp.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDetectedApp.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCategory.g.cs index 58e00c768a9..b8bb7ae89e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCategory.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCategoryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicy.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicy.g.cs index 0ba5fa5fbe7..0e87ff9f4ed 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicy.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs index 5cabaed1fed..df0a051b8b0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs index 2bd94cba7d0..e2f4581a3c1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs index 0d428607ab4..879ef59ac64 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs index 56e5f1e5975..53ecbd0b48a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs index ad50fac1f4f..117a19326e9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs index f731bc5f1e8..3a4f8270ef8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs index d793fb8fdf4..a2accb6515a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceActionItemId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs index f04e89a8bfb..1718c051168 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs index 7298d384e97..08a6e8c2b31 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceSettingStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs index f4bde180370..5186177bbbe 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs index 544994ebb71..5cf784e3d36 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfiguration.g.cs index 1751b8de65f..5a15b52dc6a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationAssignment.g.cs index cad74e3fc55..748fa71a2fb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs index 48c59dd7888..823405e89aa 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs index ccad4242446..7d4ce091267 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs index 83a6a89761b..6ffba1624c6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs index 884db3dafa6..fc607eca74e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatus.g.cs index 428a74055ec..7c1cfb2d330 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs index e9cecff4b6c..1b042c0bedb 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDevice.g.cs index 60a8f02c7eb..425e5c340a1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDevice.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategory.g.cs index 9b77d36284d..0094b0b22f9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategory.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategoryByRef.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategoryByRef.g.cs index 5a09886f3e0..2ccbac3539a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategoryByRef.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCategoryByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs index fbde979d290..b7547cbb1fd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceConfigurationState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceConfigurationState.g.cs index 06bcaed8bf7..95e38f9759e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceConfigurationState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceConfigurationState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs index c0d817222ac..59a0ed1ff12 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceUserFromSharedAppleDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceUserFromSharedAppleDevice.g.cs index 31ea7f74fff..a5b89fab63e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceUserFromSharedAppleDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceUserFromSharedAppleDevice.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs index 55f76d43d50..facd4655ce8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index b815165979a..5d363cd7a67 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEvent.g.cs index 2bdbca7473d..1a1d768fcda 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEvent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs index 7a1d3512b12..54a95228072 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppLogCollectionRequestId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplate.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplate.g.cs index 5d561bb5920..50eccce881a 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplate.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs index 3834b34af7d..4addf5dbb55 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LocalizedNotificationMessageId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTroubleshootingEvent.g.cs index f1efa2f2273..e227c9edbae 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementTroubleshootingEvent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs index 47d734c6c12..7f25392118b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs index 3a23464211b..4fc07bfd293 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionNetworkLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformation.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformation.g.cs index 532b79e1899..003dda2ea23 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformation.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs index dfa6b0f5550..999c3073c14 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MalwareStateForWindowsDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RequestMgDeviceManagementManagedDeviceRemoteAssistance.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RequestMgDeviceManagementManagedDeviceRemoteAssistance.g.cs index 9586dbd519b..c005330828f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RequestMgDeviceManagementManagedDeviceRemoteAssistance.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RequestMgDeviceManagementManagedDeviceRemoteAssistance.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/ResetMgDeviceManagementManagedDevicePasscode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/ResetMgDeviceManagementManagedDevicePasscode.g.cs index 40ba4d5e5ad..f4d3dd4b243 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/ResetMgDeviceManagementManagedDevicePasscode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/ResetMgDeviceManagementManagedDevicePasscode.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementManagedDeviceNow.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementManagedDeviceNow.g.cs index 79ee18d0750..6b572d597f8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementManagedDeviceNow.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestartMgDeviceManagementManagedDeviceNow.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementManagedDevicePasscode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementManagedDevicePasscode.g.cs index bcf1c782a9e..6cf307e36ea 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementManagedDevicePasscode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/RestoreMgDeviceManagementManagedDevicePasscode.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SendMgDeviceManagementNotificationMessageTemplateTestMessage.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SendMgDeviceManagementNotificationMessageTemplateTestMessage.g.cs index 121960a7d5c..5121dda5747 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SendMgDeviceManagementNotificationMessageTemplateTestMessage.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SendMgDeviceManagementNotificationMessageTemplateTestMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceCompliancePolicy.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceCompliancePolicy.g.cs index 5f0f5fac586..d54d5ef25ed 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceCompliancePolicy.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceCompliancePolicy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceConfiguration.g.cs index ef1565e1f61..0f54cfbcaaf 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementDeviceConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementManagedDeviceCategoryByRef.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementManagedDeviceCategoryByRef.g.cs index dc040dd1fae..a5d8f363a26 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementManagedDeviceCategoryByRef.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SetMgDeviceManagementManagedDeviceCategoryByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SkipMgDeviceManagementManagedDeviceActivationLock.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SkipMgDeviceManagementManagedDeviceActivationLock.g.cs index fafdf905d1e..769bbb6ec43 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SkipMgDeviceManagementManagedDeviceActivationLock.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SkipMgDeviceManagementManagedDeviceActivationLock.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementManagedDevice.g.cs index 3bd25cb01e0..31ebf3ae92f 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceManagementManagedDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdge.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdge.g.cs index eace5eddb01..dcbeaf48b3b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdge.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdge.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Admin.Edge.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerMode.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerMode.g.cs index cf493ea19c0..8d886ef2315 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerMode.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerMode.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Admin.Edge.InternetExplorerMode.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteList.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteList.g.cs index 063716a223d..4384483f4e0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteList.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteList.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Admin.Edge.InternetExplorerMode.SiteLists[BrowserSiteListId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteListId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs index 760c987c172..677cd983ba4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSharedCookie.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSharedCookieId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Admin.Edge.InternetExplorerMode.SiteLists[BrowserSiteListId].SharedCookies[BrowserSharedCookieId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSharedCookieId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSite.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSite.g.cs index 8695dfbb1f7..74004788c69 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSite.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminEdgeInternetExplorerModeSiteListSite.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Admin.Edge.InternetExplorerMode.SiteLists[BrowserSiteListId].Sites[BrowserSiteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BrowserSiteId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagement.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagement.g.cs index 230e30f9c6b..1aa217a87a5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagement.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagement.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -100,7 +100,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDetectedApp.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDetectedApp.g.cs index 336adf1ee3f..87066b04211 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDetectedApp.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDetectedApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DetectedApps[DetectedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DetectedAppId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCategory.g.cs index 6db6e6e0887..0a0bd39a558 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCategory.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCategoryId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCategories[DeviceCategoryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCategoryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicy.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicy.g.cs index fa54ccb9ba0..4d02e0a2ab8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicy.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs index c1e20010726..255f245859d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].Assignments[DeviceCompliancePolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs index e6f234c3e8a..e7497a14dc8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceSettingStateSummary.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].DeviceSettingStateSummaries[SettingStateDeviceSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs index 87c0be6786c..cee8bb44ae9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStateSummary.g.cs @@ -100,7 +100,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -114,7 +114,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicyDeviceStateSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs index 6e319955774..fc0f55c6622 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatus.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceDeviceStatusId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].DeviceStatuses[DeviceComplianceDeviceStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs index 69a60e79128..fecf2e9adf7 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyDeviceStatusOverview.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].DeviceStatusOverview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs index ae0f8e66d2b..83e9d9acb28 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRule.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].ScheduledActionsForRule[DeviceComplianceScheduledActionForRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceScheduledActionForRuleId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs index 24baa0c9bf6..8399dd83eca 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyScheduledActionForRuleScheduledActionConfiguration.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceActionItemId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].ScheduledActionsForRule[DeviceComplianceScheduledActionForRuleId].ScheduledActionConfigurations[DeviceComplianceActionItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceActionItemId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs index e787e145e3b..8736abe2e00 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummary.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicySettingStateSummaries[DeviceCompliancePolicySettingStateSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicySettingStateSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs index f9e9e10f959..47ad65f18e0 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingState.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceSettingStateId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicySettingStateSummaries[DeviceCompliancePolicySettingStateSummaryId].DeviceComplianceSettingStates[DeviceComplianceSettingStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceSettingStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs index 55437ca8b71..e3922cff7b2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatus.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceUserStatusId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].UserStatuses[DeviceComplianceUserStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceComplianceUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs index e9b7c004594..4c26d3da3ec 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceCompliancePolicyUserStatusOverview.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceCompliancePolicies[DeviceCompliancePolicyId].UserStatusOverview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfiguration.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfiguration.g.cs index 2d9712274f8..32d6a441014 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfiguration.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfiguration.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationAssignment.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationAssignment.g.cs index a5cc62a58ff..4e9b0c402e8 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationAssignment.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].Assignments[DeviceConfigurationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationAssignmentId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs index ad362f83f86..418896a7640 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceSettingStateSummary.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].DeviceSettingStateSummaries[SettingStateDeviceSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SettingStateDeviceSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs index 2bbe1c06061..d6471e73863 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStateSummary.g.cs @@ -88,7 +88,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -102,7 +102,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurationDeviceStateSummaries.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs index 4d90660c38f..bcaafff276c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatus.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationDeviceStatusId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].DeviceStatuses[DeviceConfigurationDeviceStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationDeviceStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs index b5c673a55b3..b883cb6dd7e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationDeviceStatusOverview.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].DeviceStatusOverview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatus.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatus.g.cs index 1aae2f93741..29a8fb8b315 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatus.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatus.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationUserStatusId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].UserStatuses[DeviceConfigurationUserStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationUserStatusId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs index be478598013..41f4351b6c6 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementDeviceConfigurationUserStatusOverview.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.DeviceConfigurations[DeviceConfigurationId].UserStatusOverview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDevice.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDevice.g.cs index 08ff070ad6e..6268ef5795b 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDevice.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDevice.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCategory.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCategory.g.cs index 91e4f150a84..78e6365de9c 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCategory.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCategory.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].DeviceCategory.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs index ec13cd9f45b..ddd5246362d 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceCompliancePolicyState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].DeviceCompliancePolicyStates[DeviceCompliancePolicyStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceConfigurationState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceConfigurationState.g.cs index c5e54b41b15..31cf534cd89 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceConfigurationState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceConfigurationState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].DeviceConfigurationStates[DeviceConfigurationStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs index bb71c144d5b..ee766c745e5 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceLogCollectionRequest.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].LogCollectionRequests[DeviceLogCollectionResponseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsDeviceAccount.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsDeviceAccount.g.cs index 24444c0bf9b..d42d733fc43 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsDeviceAccount.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsDeviceAccount.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs index 5869e009859..e5e00ad35d3 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionState.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -185,7 +185,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].WindowsProtectionState.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index 671e1556237..0f837c1cec9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.ManagedDevices[ManagedDeviceId].WindowsProtectionState.DetectedMalwareState[WindowsDeviceMalwareStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEvent.g.cs index c35ac0be65a..c34b04a7efd 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEvent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.MobileAppTroubleshootingEvents[MobileAppTroubleshootingEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs index 049734f438f..1a9314689d4 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementMobileAppTroubleshootingEventAppLogCollectionRequest.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppLogCollectionRequestId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.MobileAppTroubleshootingEvents[MobileAppTroubleshootingEventId].AppLogCollectionRequests[AppLogCollectionRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppLogCollectionRequestId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplate.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplate.g.cs index dc5b64a61c9..ef343e2a5b2 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplate.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplate.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.NotificationMessageTemplates[NotificationMessageTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotificationMessageTemplateId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs index 6c9b0abb0e8..a570c60adaf 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementNotificationMessageTemplateLocalizedNotificationMessage.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LocalizedNotificationMessageId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.NotificationMessageTemplates[NotificationMessageTemplateId].LocalizedNotificationMessages[LocalizedNotificationMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LocalizedNotificationMessageId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTroubleshootingEvent.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTroubleshootingEvent.g.cs index f34cda68d4d..26dbed5a872 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTroubleshootingEvent.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementTroubleshootingEvent.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.TroubleshootingEvents[DeviceManagementTroubleshootingEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs index 9171fdc8bd1..f87ff87c2c1 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionAppLearningSummary.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLearningSummaryId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.WindowsInformationProtectionAppLearningSummaries[WindowsInformationProtectionAppLearningSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs index 94ec652227a..3ef573e1988 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsInformationProtectionNetworkLearningSummary.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionNetworkLearningSummaryId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.WindowsInformationProtectionNetworkLearningSummaries[WindowsInformationProtectionNetworkLearningSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionNetworkLearningSummaryId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformation.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformation.g.cs index 0859496ec36..eda8564e22e 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformation.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformation.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.WindowsMalwareInformation[WindowsMalwareInformationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsMalwareInformationId); return; diff --git a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs index 23d2c609642..7fcef0ad3f9 100644 --- a/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs +++ b/src/DeviceManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementWindowsMalwareInformationDeviceMalwareState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MalwareStateForWindowsDeviceId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.WindowsMalwareInformation[WindowsMalwareInformationId].DeviceMalwareStates[MalwareStateForWindowsDeviceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MalwareStateForWindowsDeviceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Chat.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Chat.cs index 3d135b6b64c..519efd72eb3 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Devices.CloudPrin #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..0c797be44b1 --- /dev/null +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..e3302d34322 --- /dev/null +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Group.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Group.cs index 5e207ffb47d..2caeef74b81 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Devices.CloudPri #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/List.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/List.cs index d4a4a255d7c..eadf7b51ed4 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/List.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Devices.CloudPrin #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ListItem.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ListItem.cs index 8eebb4193f1..60ca699e23d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Devices.Cloud #else public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 852fa2f08a2..f87bab0ec3d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #nullable restore #else public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..1b6f057f18e --- /dev/null +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 0ffa9b86c7f..fb63238e738 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index d6533b4cfe0..5d0168e2419 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/User.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/User.cs index 0da951f8189..a4da68271be 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/User.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Devices.CloudPrin #nullable restore #else public global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CloudPrint.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/UserActivityType.cs index a87ef3d0672..95031e30dc6 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Client/kiota-lock.json b/src/Devices.CloudPrint/wrapper/v1.0/Client/kiota-lock.json index 782f07b0045..975d4ddea56 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Devices.CloudPrint/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "BF5A7F44ED178FEE7B914135CC1C5DBD4EAFE58C1137539F12935F42539703175E59C64895662F37E7E242C8535EDB642ECDB662B101CA31D12D505DAE0F3D2B", + "descriptionHash": "2BD2A6E55464DD02A9CB2101EC0E20396D3863B0C2CF1230126C7D80623CD48E004DB905150B60A24E008E692C4547354D5259538D2319B87AAF72BCC6E36A0E", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Devices.CloudPrint.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrint.g.cs index 90e107b9483..de516169249 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrint.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector.g.cs index cbe18fb7c38..2ac81ffb99c 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintConnectorId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnectorCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnectorCount.g.cs index d6af63ccd25..3faf5cae600 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnectorCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnectorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_Get.g.cs index 09f1c80982a..41b6caefab8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintConnectorId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_List.g.cs index db9d240b06d..df6b1b77646 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintConnector_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation.g.cs index 2cf29808fb9..e989755f1df 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintOperationId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperationCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperationCount.g.cs index e24afe61c22..9cf93d08580 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperationCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_Get.g.cs index d9e12f3633c..9e3ebbb072c 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintOperationId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_List.g.cs index dac4c493f19..c450a184f09 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintOperation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter.g.cs index 8c4fd8aaa73..63328efa451 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrinterId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector.g.cs index 42132766a2c..15da0da6b55 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintConnectorId : PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnectorCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnectorCount.g.cs index e4f643c7c85..98f80b00d77 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnectorCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnectorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_Get.g.cs index 83d4fcec0bc..45698d51453 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintConnectorId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_List.g.cs index b6e6615b6ff..55cb44b77c6 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterConnector_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterCount.g.cs index 351536ce0bd..e9217423913 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob.g.cs index 59ed507810b..643f4f0f9b8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintJobId : PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobCount.g.cs index 745b46fe191..2e8db427f7f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument.g.cs index 7bd92e3c7ef..e26248f1fbb 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintDocumentId : PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentContent.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentContent.g.cs index 5777a4366b0..07dc3bc432b 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentContent.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentCount.g.cs index 299245707ef..3d692eddd45 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocumentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_Get.g.cs index 28a53bf0ad1..b6cb9fbdad9 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_List.g.cs index a47e02d937e..94fc4e8c7ea 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobDocument_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask.g.cs index 5affac26b7c..2da2f40ca9a 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintTaskId : PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskCount.g.cs index d488fa9e873..66943398d38 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskDefinition.g.cs index e04d3fa4b69..05a3ebb52d8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskDefinition.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskTrigger.g.cs index 12d95aafc59..c867a325619 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTaskTrigger.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_Get.g.cs index 0644afd7570..7203028f095 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_List.g.cs index 10341503a8a..b78ce7c42d8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJobTask_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_Get.g.cs index 60f5abca01d..ca09d13dc02 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_List.g.cs index 4796cd5a3f9..a8ff43d0575 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare.g.cs index eab53c33ba4..2266be29d61 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrinterShareId : PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShareCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShareCount.g.cs index c58d57819a9..5c8790c88ca 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShareCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShareCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_Get.g.cs index 79c2f5c6a37..4f60964f70a 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_List.g.cs index 177c8c69d2b..7e4f7291175 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterShare_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger.g.cs index d9c0cf37b13..f57b12f2723 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintTaskTriggerId : PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerCount.g.cs index f94a2618ce6..ba535d2ed52 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerDefinition.g.cs index a41a36cc3c4..4b81b9899ec 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTriggerDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskTriggerId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_Get.g.cs index 0151538b58b..2ac4ac643be 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskTriggerId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_List.g.cs index 9c83c498f1f..46f10485d01 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinterTaskTrigger_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_Get.g.cs index 9c5ef11aafd..67e020de012 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_List.g.cs index 0179c9dab60..fc101f36eaf 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintPrinter_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService.g.cs index 46e14bb0353..5e699587eb1 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintServiceId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceCount.g.cs index 6e16c2da1e0..4d2fa24b185 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint.g.cs index ebf308330e3..3c736dbd7d0 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintServiceEndpointId : PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpointCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpointCount.g.cs index 00783ec2f7f..466ff7249ed 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpointCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpointCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_Get.g.cs index d4920c648a9..691eb302796 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceEndpointId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_List.g.cs index 20fae88d504..e1514270442 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintServiceEndpoint_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_Get.g.cs index 5b1e7af4e31..25e2a8d1332 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_List.g.cs index d2aa4552328..b21dc445807 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintService_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare.g.cs index cd12ea4d80a..00a3f4cd7c3 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrinterShareId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroup.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroup.g.cs index c7bd05d31ca..34615813fe4 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroup.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroup.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupByRef.g.cs index 37e24c010bf..032e40e02cc 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupCount.g.cs index 3ffbe10c78b..4136228d3b8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningError.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningError.g.cs index bd8ce9a761d..928f65f693f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningError.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningErrorCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningErrorCount.g.cs index 703927f51c7..16aa4b4f470 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningErrorCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedGroupServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUser.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUser.g.cs index 7f3036b2ae2..11b8ab84276 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUser.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUser.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserByRef.g.cs index 38132362a9c..70a2348922f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserCount.g.cs index 824ee0b2bba..c61009a7b61 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserMailboxSetting.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserMailboxSetting.g.cs index 21742f1ea91..80d301a7b9d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserMailboxSetting.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningError.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningError.g.cs index 3db13cf1f70..7a417bbdc11 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningError.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningErrorCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningErrorCount.g.cs index d6f84e1863c..200d706ee0f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningErrorCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareAllowedUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareCount.g.cs index 6d1425037e1..49164bbfc3f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob.g.cs index be737e85ac5..c25195562b9 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintJobId : PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobCount.g.cs index 71f4ea3d8fc..e69a662943f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument.g.cs index d912528d5fa..8ec5b220420 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintDocumentId : PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentContent.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentContent.g.cs index 0ba3edfc543..7ffe74ca666 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentContent.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentCount.g.cs index eec580980b0..952092dd323 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocumentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_Get.g.cs index 832193584f8..088fe2aa300 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_List.g.cs index 4f8c3d7f88c..bfb3a251e03 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobDocument_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask.g.cs index 384e60fc239..0884801ab12 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintTaskId : PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskCount.g.cs index d3b5bb6c72e..d81816e77b2 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskDefinition.g.cs index 255a8e42b92..6ef70264a8b 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskDefinition.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskTrigger.g.cs index 4b24e4572f5..9d1ce3ee2a2 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTaskTrigger.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_Get.g.cs index 7a5ca64fc0c..7ac4930d5e8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_List.g.cs index 50580610b4e..4ae1613a987 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJobTask_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_Get.g.cs index 1735ded8555..2834a5f36a7 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_List.g.cs index 063b8bbd766..58f3c268802 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShareJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintSharePrinter.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintSharePrinter.g.cs index f2185e3bed2..fd88d205523 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintSharePrinter.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintSharePrinter.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_Get.g.cs index 4cf74ddb478..076a2445fcc 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_List.g.cs index 0cc5d8a8675..fa6715332de 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintShare_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition.g.cs index d88b71b5b7e..3b42fd62a00 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintTaskDefinitionId : null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionCount.g.cs index ddc4b9a99b9..9c6f6072b37 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask.g.cs index c048ca6a5b3..763a6e10566 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintTaskId : PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskCount.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskCount.g.cs index 2415a3f600c..2e073c9791d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskCount.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskTrigger.g.cs index 963d005c55c..6569fac1235 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTaskTrigger.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_Get.g.cs index 20a2873cc5d..e651e755d07 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_List.g.cs index cd0629e4f14..1b3de438ee1 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinitionTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_Get.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_Get.g.cs index cfb671ecb9f..2e25ff28388 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_Get.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_List.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_List.g.cs index 72a20ef6115..535ca7e7e62 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_List.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/GetMgPrintTaskDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintPrinterJob.g.cs index def1d6f7e82..cf7e54b0695 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintPrinterJob.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintShareJob.g.cs index aae4ff805d0..5f043959c3e 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgAbortPrintShareJob.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintPrinterJob.g.cs index d7ef9577fbc..2cc1b0b4745 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintPrinterJob.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintShareJob.g.cs index f4b4035b15b..a035ba43b00 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/InvokeMgRedirectPrintShareJob.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintConnector.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintConnector.g.cs index 386ed8aa43d..24ff3b06769 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintConnector.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintConnector.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintOperation.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintOperation.g.cs index 59cd0efe43c..11c4ffd67d1 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintOperation.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintOperation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinter.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinter.g.cs index eaacc9d9b18..de5cc490c1b 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinter.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinter.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJob.g.cs index e5015c63e27..70ace575c3c 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJob.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocument.g.cs index d668659df01..599d5764550 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocument.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocumentUploadSession.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocumentUploadSession.g.cs index 82f8692b80f..4f2a8f151fc 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocumentUploadSession.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobDocumentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobTask.g.cs index 15ce5d216d3..eb86f3aff71 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterJobTask.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterTaskTrigger.g.cs index 288b0fd4ade..d8faf25c0e9 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintPrinterTaskTrigger.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintService.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintService.g.cs index dc0c800592f..ed1c1c2ed9f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintService.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintService.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintServiceEndpoint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintServiceEndpoint.g.cs index 2c76972c672..b95d3fd781e 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintServiceEndpoint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintServiceEndpoint.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShare.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShare.g.cs index e8f1d8eccec..b6db18ebcb1 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShare.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShare.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedGroupByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedGroupByRef.g.cs index 4fe72b94308..d1b18c9becb 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedGroupByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedGroupByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedUserByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedUserByRef.g.cs index 6c716d62309..d106eb91618 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedUserByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareAllowedUserByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJob.g.cs index f7d9d937565..d7a36cbcff0 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJob.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocument.g.cs index 36a861853fe..a63362a4e46 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocument.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocumentUploadSession.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocumentUploadSession.g.cs index cf9c550ad6d..544bedb302e 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocumentUploadSession.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobDocumentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobTask.g.cs index 3365c2f773d..b8e94efc432 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintShareJobTask.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinition.g.cs index 236a36e477b..d45a8fafe0e 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinition.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinitionTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinitionTask.g.cs index 64d3ad3d0c4..186c506fd79 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinitionTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/NewMgPrintTaskDefinitionTask.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintConnector.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintConnector.g.cs index 2a6b5a7814f..24826ef9373 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintConnector.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintConnector.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintConnectorId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintOperation.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintOperation.g.cs index 0b7108862cc..390ec815f56 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintOperation.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintOperation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintOperationId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinter.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinter.g.cs index d37ee7fedf6..88a63540458 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinter.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinter.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJob.g.cs index c21a1f7fb18..fe31a6a0d49 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJob.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocument.g.cs index 131a792beef..965e78e8312 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocument.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocumentContent.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocumentContent.g.cs index b8dda1924e1..9bcc4d0abd7 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocumentContent.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobDocumentContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobTask.g.cs index 9c4ca177ea7..e63045d79d4 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterJobTask.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterTaskTrigger.g.cs index e4f388c8cc6..5795ee35277 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintPrinterTaskTrigger.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskTriggerId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintService.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintService.g.cs index 2b77c218f3b..ad08b2d6d2a 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintService.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintService.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintServiceEndpoint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintServiceEndpoint.g.cs index 19b63308dcc..a3823f1eff6 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintServiceEndpoint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintServiceEndpoint.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceEndpointId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShare.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShare.g.cs index 7adb3f27a41..66929b80066 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShare.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShare.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedGroupByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedGroupByRef.g.cs index 5b0f457af29..3efe5cdb42d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedGroupByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedGroupByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedUserByRef.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedUserByRef.g.cs index e5ef9596814..44bc1201580 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedUserByRef.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareAllowedUserByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJob.g.cs index 7baa619925e..7e028ebd2e6 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJob.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocument.g.cs index ab18bcb732f..b7fc75e42a9 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocument.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocumentContent.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocumentContent.g.cs index b16e7483beb..65b142474a0 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocumentContent.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobDocumentContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobTask.g.cs index afdebdde7c5..d4c337c8209 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintShareJobTask.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinition.g.cs index 7ff3d836c92..d7dac4fe5d4 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinitionTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinitionTask.g.cs index e9c5f8b0990..948de9e2f38 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinitionTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RemoveMgPrintTaskDefinitionTask.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RestoreMgPrintPrinterFactoryDefault.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RestoreMgPrintPrinterFactoryDefault.g.cs index b3001ec849f..22725f9c4a3 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RestoreMgPrintPrinterFactoryDefault.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/RestoreMgPrintPrinterFactoryDefault.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintPrinterJob.g.cs index 3d2c0585300..678aa0972d0 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintPrinterJob.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintShareJob.g.cs index 48dfa692224..5b655d09ac7 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StartMgPrintShareJob.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintPrinterJob.g.cs index 069d8112404..9cddb2e423c 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintPrinterJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintShareJob.g.cs index 39ae200db5b..f58e432097c 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/StopMgPrintShareJob.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrint.g.cs index 62b9f2905de..61eef2fd7d1 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrint.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Print.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintConnector.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintConnector.g.cs index 43ce0268a68..b04275501b8 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintConnector.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintConnector.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintConnectorId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Print.Connectors[PrintConnectorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintConnectorId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintOperation.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintOperation.g.cs index f7ce607778a..46bde395f9b 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintOperation.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintOperation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintOperationId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Print.Operations[PrintOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintOperationId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinter.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinter.g.cs index 7ffdd82b306..ca78decd578 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinter.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinter.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Print.Printers[PrinterId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJob.g.cs index cc08ed04340..8a410913f63 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJob.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Print.Printers[PrinterId].Jobs[PrintJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobDocument.g.cs index a7d4dbd0557..d246b338316 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobDocument.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Print.Printers[PrinterId].Jobs[PrintJobId].Documents[PrintDocumentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobTask.g.cs index 0d689dbe538..97527351d17 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterJobTask.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Print.Printers[PrinterId].Jobs[PrintJobId].Tasks[PrintTaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterTaskTrigger.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterTaskTrigger.g.cs index 0a78f65a5f5..fdb35b4c486 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterTaskTrigger.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintPrinterTaskTrigger.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskTriggerId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Print.Printers[PrinterId].TaskTriggers[PrintTaskTriggerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskTriggerId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintService.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintService.g.cs index d25d13eb046..d9f19dc39a5 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintService.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintService.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Print.Services[PrintServiceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintServiceEndpoint.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintServiceEndpoint.g.cs index 159d5e4d1d2..a38a9c5267a 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintServiceEndpoint.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintServiceEndpoint.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceEndpointId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Print.Services[PrintServiceId].Endpoints[PrintServiceEndpointId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintServiceEndpointId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShare.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShare.g.cs index 56babfdb705..ffcf9886d3a 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShare.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShare.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.Print.Shares[PrinterShareId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrinterShareId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareAllowedUserMailboxSetting.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareAllowedUserMailboxSetting.g.cs index 150e6dccca7..e31fbe41b17 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareAllowedUserMailboxSetting.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareAllowedUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Print.Shares[PrinterShareId].AllowedUsers[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJob.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJob.g.cs index a6bb0b7b993..03380098f1d 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJob.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJob.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Print.Shares[PrinterShareId].Jobs[PrintJobId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintJobId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobDocument.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobDocument.g.cs index c8aadd7a188..0c9040b1e38 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobDocument.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobDocument.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Print.Shares[PrinterShareId].Jobs[PrintJobId].Documents[PrintDocumentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintDocumentId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobTask.g.cs index 1ec93c9999c..b136fa65b38 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintShareJobTask.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Print.Shares[PrinterShareId].Jobs[PrintJobId].Tasks[PrintTaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinition.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinition.g.cs index 9654323e029..8f6c7cefdd4 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinition.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinition.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Print.TaskDefinitions[PrintTaskDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskDefinitionId); return; diff --git a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinitionTask.g.cs b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinitionTask.g.cs index 5817f944a3b..5408a5d6a3f 100644 --- a/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinitionTask.g.cs +++ b/src/Devices.CloudPrint/wrapper/v1.0/Cmdlets/UpdateMgPrintTaskDefinitionTask.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Print.TaskDefinitions[PrintTaskDefinitionId].Tasks[PrintTaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintTaskId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index 74b725729db..3047ddf24e5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -159,7 +159,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA /// Find more info here /// /// A - /// The request body + /// Singleton entity that acts as a container for all device app management functionality. /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code @@ -203,7 +203,7 @@ public RequestInformation ToGetRequestInformation(Action /// A - /// The request body + /// Singleton entity that acts as a container for all device app management functionality. /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Chat.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Chat.cs index a6123cd4b2c..94763dd0a6a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Devices.Corporate #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..644733cb321 --- /dev/null +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..6ff38b670c4 --- /dev/null +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/DeviceAppManagement.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/DeviceAppManagement.cs index 1b70ef8242a..d9fc4bef5d3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/DeviceAppManagement.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/DeviceAppManagement.cs @@ -11,8 +11,10 @@ namespace Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models /// Singleton entity that acts as a container for all device app management functionality. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] - public partial class DeviceAppManagement : global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.Entity, IParsable + public partial class DeviceAppManagement : IAdditionalDataHolder, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } /// Android managed app policies. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -122,6 +124,14 @@ public partial class DeviceAppManagement : global::Microsoft.Graph.PowerShell.De #nullable restore #else public List MobileApps { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } #endif /// Targeted managed app configurations. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -147,12 +157,19 @@ public partial class DeviceAppManagement : global::Microsoft.Graph.PowerShell.De #else public List WindowsInformationProtectionPolicies { get; set; } #endif + /// + /// Instantiates a new and sets the default values. + /// + public DeviceAppManagement() + { + AdditionalData = new Dictionary(); + } /// /// Creates a new instance of the appropriate class based on discriminator value /// /// A /// The parse node to use to read the discriminator value and create the object - public static new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceAppManagement CreateFromDiscriminatorValue(IParseNode parseNode) + public static global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceAppManagement CreateFromDiscriminatorValue(IParseNode parseNode) { if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); return new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceAppManagement(); @@ -161,9 +178,9 @@ public partial class DeviceAppManagement : global::Microsoft.Graph.PowerShell.De /// The deserialization information for the current model /// /// A IDictionary<string, Action<IParseNode>> - public override IDictionary> GetFieldDeserializers() + public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary>(base.GetFieldDeserializers()) + return new Dictionary> { { "androidManagedAppProtections", n => { AndroidManagedAppProtections = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.AndroidManagedAppProtection.CreateFromDiscriminatorValue)?.AsList(); } }, { "defaultManagedAppProtections", n => { DefaultManagedAppProtections = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DefaultManagedAppProtection.CreateFromDiscriminatorValue)?.AsList(); } }, @@ -181,6 +198,7 @@ public override IDictionary> GetFieldDeserializers() { "mobileAppConfigurations", n => { MobileAppConfigurations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue)?.AsList(); } }, { "mobileAppRelationships", n => { MobileAppRelationships = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.MobileAppRelationship.CreateFromDiscriminatorValue)?.AsList(); } }, { "mobileApps", n => { MobileApps = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.MobileApp.CreateFromDiscriminatorValue)?.AsList(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, { "targetedManagedAppConfigurations", n => { TargetedManagedAppConfigurations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.TargetedManagedAppConfiguration.CreateFromDiscriminatorValue)?.AsList(); } }, { "vppTokens", n => { VppTokens = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.VppToken.CreateFromDiscriminatorValue)?.AsList(); } }, { "windowsInformationProtectionPolicies", n => { WindowsInformationProtectionPolicies = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.WindowsInformationProtectionPolicy.CreateFromDiscriminatorValue)?.AsList(); } }, @@ -190,10 +208,9 @@ public override IDictionary> GetFieldDeserializers() /// Serializes information the current object /// /// Serialization writer to use to serialize this model - public override void Serialize(ISerializationWriter writer) + public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); - base.Serialize(writer); writer.WriteCollectionOfObjectValues("androidManagedAppProtections", AndroidManagedAppProtections); writer.WriteCollectionOfObjectValues("defaultManagedAppProtections", DefaultManagedAppProtections); writer.WriteCollectionOfObjectValues("iosManagedAppProtections", IosManagedAppProtections); @@ -210,9 +227,11 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("mobileAppConfigurations", MobileAppConfigurations); writer.WriteCollectionOfObjectValues("mobileAppRelationships", MobileAppRelationships); writer.WriteCollectionOfObjectValues("mobileApps", MobileApps); + writer.WriteStringValue("@odata.type", OdataType); writer.WriteCollectionOfObjectValues("targetedManagedAppConfigurations", TargetedManagedAppConfigurations); writer.WriteCollectionOfObjectValues("vppTokens", VppTokens); writer.WriteCollectionOfObjectValues("windowsInformationProtectionPolicies", WindowsInformationProtectionPolicies); + writer.WriteAdditionalData(AdditionalData); } } } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Entity.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Entity.cs index 6a8fa085d22..cdebb61b595 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Entity.cs @@ -95,7 +95,6 @@ public Entity() "#microsoft.graph.dayNote" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DayNote(), "#microsoft.graph.defaultManagedAppProtection" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DefaultManagedAppProtection(), "#microsoft.graph.device" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.Device(), - "#microsoft.graph.deviceAppManagement" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceAppManagement(), "#microsoft.graph.deviceCategory" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceCategory(), "#microsoft.graph.deviceCompliancePolicyState" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceCompliancePolicyState(), "#microsoft.graph.deviceConfigurationState" => new global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DeviceConfigurationState(), diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Group.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Group.cs index 9964e2d8c43..4f3c28b7c8d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Devices.Corporat #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/List.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/List.cs index da9c871b122..d59f10c7969 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/List.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Devices.Corporate #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ListItem.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ListItem.cs index 7e18b22c007..ec5e2e2f4b2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Devices.Corpo #else public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 741598167e9..6def9e873ec 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #nullable restore #else public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Devi #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..5c2febfa77b --- /dev/null +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 04f466439a2..0651be70305 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index b0baead292a..6cafabf3758 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/User.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/User.cs index d8761413c81..288e168b858 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/User.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Devices.Corporate #nullable restore #else public global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Devices.CorporateManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/UserActivityType.cs index a05dfd166a9..bb22bfe389f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Client/kiota-lock.json b/src/Devices.CorporateManagement/wrapper/v1.0/Client/kiota-lock.json index d274a6b0cd2..ffc9b21befc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "5A464D0C420DDD0A00B354329385CC5682B36444302357F0FA5EDDC17AABFCF9AE2F838174624E81DF4FB0E1C8D8E85710AFB426AB72689CBA2D81B1543A5A6F", + "descriptionHash": "10B27C9468681607AC9FD691651CA7D144B7FC4BA01FDEB1850C63AF42F69AD049B90D229153DFE59AE08C74B5C0A0A78F8B3F2D913FB7247B3E31F784625BB9", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Devices.CorporateManagement.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ClearMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ClearMgUserManagedDevice.g.cs index 02b0683b46e..603a0c66edb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ClearMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ClearMgUserManagedDevice.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/DisableMgUserManagedDeviceLostMode.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/DisableMgUserManagedDeviceLostMode.g.cs index ac859d58be1..dd894b72dd4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/DisableMgUserManagedDeviceLostMode.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/DisableMgUserManagedDeviceLostMode.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/FindMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/FindMgUserManagedDevice.g.cs index 7903a2d9014..9c394e7fb19 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/FindMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/FindMgUserManagedDevice.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagement.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagement.g.cs index 724efe51711..8a84f6a3de8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagement.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagement.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection.g.cs index d6412e38ff7..741c7a51e91 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AndroidManagedAppProtectionId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs index 6d8c9638e8c..bcbec0d061e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedMobileAppId : AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAppCount.g.cs index 6c02818c7b0..8c6bffb018c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_Get.g.cs index afb64561fa0..811a3a8ec9d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_List.g.cs index 97fcd724a06..780ffc1203d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs index 8d3cbd5e3e9..5ff721c4820 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppPolicyAssignmentId : AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignmentCount.g.cs index 91c456ce3a8..37097aba847 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_Get.g.cs index 7cba60c14ff..412b1892497 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_List.g.cs index 172343896e6..8869b08a4bc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionCount.g.cs index 96b1eac679a..7bd14f023f1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs index b2f8ad87c7c..ba78ef9ca5d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_Get.g.cs index a1853477b30..b0d23f3faef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_List.g.cs index 3783a63e190..3e867b950aa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementAndroidManagedAppProtection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection.g.cs index e3553e29f94..5be2da2bd20 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DefaultManagedAppProtectionId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs index ae80a6b2813..4bc052fc6de 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedMobileAppId : DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionAppCount.g.cs index 4741421dfc2..af3c60b3e39 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_Get.g.cs index b776ca8c898..3d0c1fe5656 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_List.g.cs index c95cf3f6878..0e06ee9260c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionCount.g.cs index 290a9345379..901ac4226a1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs index b2abfe6e358..4c451f5a6b9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_Get.g.cs index bb2212ed98a..8f6ad3e459a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_List.g.cs index 58b3bf5734d..b6b947c664a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementDefaultManagedAppProtection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection.g.cs index 62e76e1f0be..d6a06739c0d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IosManagedAppProtectionId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp.g.cs index 0b6db49cb84..66105c835e3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedMobileAppId : IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_Get.g.cs index 19e957417ec..33388f1da51 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_List.g.cs index c7bf5b71221..1ade46a1fe8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs index 3ec4fd2b7c2..44ca4b9a41e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppPolicyAssignmentId : IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_Get.g.cs index 36c8f2459e0..e5028001992 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_List.g.cs index d0f8a6c88f1..79a66bfbfeb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs index d6384694000..8c3e66a8f7a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_Get.g.cs index 79abc94e134..d45c10cfdff 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_List.g.cs index 3c92e1b21e3..b52d814e77b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementIosManagedAppProtection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy.g.cs index 0084af97d0a..96574334440 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppPolicyId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicyCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicyCount.g.cs index 7ae4517ccf2..4441619e2a2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicyCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_Get.g.cs index 3ee75c37041..f093dde0790 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_List.g.cs index 3ca6b6b4f20..38a65ecfd3a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration.g.cs index 5ca99ebbbf1..d7d74f13dd3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppRegistrationId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs index 211a1d937dc..c1d1e37812f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppPolicyId : ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicyCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicyCount.g.cs index 111ce0a7ddf..e4342021902 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicyCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_Get.g.cs index 32e7d2e31ca..75be8dcf301 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_List.g.cs index dd215c8b15b..89a461c54f1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationAppliedPolicy_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationCount.g.cs index a998ded9ee7..4c6e55bb790 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs index d814f6524fc..88bd141fbca 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppPolicyId : ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicyCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicyCount.g.cs index 7a7eacadc53..daf45fba9f6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicyCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicyCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_Get.g.cs index c47b9c2f2e5..9694fb30ffe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_List.g.cs index 3b3993e706c..19d117991f9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationIntendedPolicy_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation.g.cs index 801b8f0ee49..eebd680a3a3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppOperationId : ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperationCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperationCount.g.cs index 1a8ea75d734..4b8e98dd0cc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperationCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_Get.g.cs index 120e3c4c9a6..f0e0e09bb20 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppOperationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_List.g.cs index 00c2f51298b..0303d7e0139 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationUserIdWithFlaggedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationUserIdWithFlaggedAppRegistration.g.cs index 088dae16df6..dfc6c1c56f7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationUserIdWithFlaggedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistrationUserIdWithFlaggedAppRegistration.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_Get.g.cs index df8b2e22630..bf2aeb30c6b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_List.g.cs index 043c1485547..dfdddf96d4c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppRegistration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus.g.cs index 5bbb98ef4ae..8faa771a279 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppStatusId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatusCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatusCount.g.cs index 994b11ba084..69d100cbfea 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatusCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatusCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_Get.g.cs index 286a477c017..5a384730924 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_List.g.cs index f6d519d96d3..1ffa3c619ae 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedAppStatus_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook.g.cs index dd17125aa32..fa08de3413b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedEBookId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment.g.cs index 2297ac66a4c..d5c4429bfeb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedEBookAssignmentId : ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignmentCount.g.cs index 4ada4242629..6b02bd6fc88 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_Get.g.cs index 979c1d425eb..c217a757cdf 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_List.g.cs index 83a5d14b0b8..e8af41b884b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookCount.g.cs index 66a43064058..b98cda00021 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState.g.cs index 3c8dc3953ed..bcd7b9a91b6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceInstallStateId : ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceStateCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceStateCount.g.cs index f0b72ce7296..ea1150b5224 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceStateCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceStateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_Get.g.cs index f84d6f0525e..0c061c5d1e8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_List.g.cs index 62869ca1b16..ddf9c7b3027 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookDeviceState_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookInstallSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookInstallSummary.g.cs index 7ff98d519fb..b0d0a17665a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookInstallSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookInstallSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary.g.cs index 8dff43236f8..c51884972dd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserInstallStateSummaryId : ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryCount.g.cs index 95841e7ca63..a386ae31888 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs index 2502dfb8057..16cc3f2b94c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceInstallStateId : UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceStateCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceStateCount.g.cs index 24a8be30544..9c6a950ae5a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceStateCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceStateCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_Get.g.cs index 9f75f58cc9f..26f8c8af5b4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_List.g.cs index 6b4ab8df55c..e06ba1fce8e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_Get.g.cs index 6dd34a8c3cc..60345d1ed36 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_List.g.cs index 2eed4e26681..bbe18feb427 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBookUserStateSummary_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_Get.g.cs index 1697904b2d2..bba1dfb2520 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_List.g.cs index cbd0e8f042b..54e1ba02925 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementManagedEBook_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs index 25ef846bfd9..86fee30672d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MdmWindowsInformationProtectionPolicyId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs index 60e5979511b..9f5f1da2920 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppPolicyAssignmentId : MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignmentCount.g.cs index e5620f91540..0af71d670bb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_Get.g.cs index a18d9923340..de5d5260d53 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_List.g.cs index 72a33cbf7f6..77360a8217e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyCount.g.cs index 83cf6aaddce..b4b856debbe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 0135c6de6c6..e2ceaa15ed3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionAppLockerFileId : MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs index b8639c08bfe..b273bcd4b0b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs index b30500adf2b..61b3682fc08 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs index 34b299a6832..021c1dbf121 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 45065fbb4d9..d09e3c17c81 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionAppLockerFileId : MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs index f2690f372a0..9bc9d1ea245 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs index 347df7cc5d3..c8657745962 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs index 1fc7f9047c5..c414fad1992 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_Get.g.cs index ffcaacd20d4..6ecf2ed29c7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_List.g.cs index e8b28d9ee46..d68837ca899 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMdmWindowsInformationProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp.g.cs index 4e5498ee37c..8b67b04c762 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp.g.cs index 54756b105d1..cd3a7b914a8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs index 19cb951cdd5..84e7e58b40e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignmentCount.g.cs index 8819c712dd6..7e82434f30c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_Get.g.cs index 367fee08121..2fb2ac0b1e2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_List.g.cs index e73b9e734e5..ef13b39172d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory.g.cs index f4a5893f02f..3dc98090cab 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategoryCount.g.cs index 71e4ad25380..149c9d3d0ef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_Get.g.cs index 20410c4d71d..b017a6fa767 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_List.g.cs index bcc92341085..4f95bed0b85 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs index 97b7b68a743..759f34c2c32 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs index d585eb028b7..b94a1b3eef9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedAppCount.g.cs index 3ded905ca7a..a52cf260a86 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_Get.g.cs index ca2cf5e6705..59f35da118e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_List.g.cs index d7bdb13a652..670e6ffd4ad 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionCount.g.cs index c7f08df0911..64bcdcd6361 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs index 045e3be5d33..1b0805efc15 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCount.g.cs index f7b170862cf..245dc83f39d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_Get.g.cs index 498c89b29d2..7f338519b41 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_List.g.cs index 77646ab9eb4..eb118af8570 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_Get.g.cs index 1ab2a3969cd..7e3b74dcba4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_List.g.cs index ebaf374d8a1..5a2e3465a00 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_Get.g.cs index 8dcba3eafab..e1e74d1b391 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_List.g.cs index da243eb44f2..cd3ce47fd05 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp.g.cs index 7c0c75533f8..080e178d7c1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs index b13cc4b087a..e921d855307 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignmentCount.g.cs index 6936e431e08..dd0b1878f8b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_Get.g.cs index 3b442d91c04..903e2f92ecf 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_List.g.cs index 413609705c3..dd00d85c092 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory.g.cs index abdc77a94d6..73b613850d6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategoryCount.g.cs index d448cc2dc0f..d2b1aa09a12 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_Get.g.cs index 498b4054779..0f9bbd47e20 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_List.g.cs index 894df9739a5..fcd6771276a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_Get.g.cs index a1220fe73ef..098c2bb72df 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_List.g.cs index 941dda40f82..df9e9ebdbfb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsAndroidStoreApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp.g.cs index b150dd9f25d..cf62a204c4f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs index 1df817b8da0..d6746099c4c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignmentCount.g.cs index 8688baadf45..8950b65292c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_Get.g.cs index 88179858f0a..43f641dbf13 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_List.g.cs index c4533459cd8..503dffd6b01 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory.g.cs index 5b7c71d1386..ea743318487 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategoryCount.g.cs index b361c949755..26ec9e2b6b1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_Get.g.cs index cac65978ef5..1db055eb0de 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_List.g.cs index e6c775d0307..ba6c97226de 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs index 55d675208db..ed717107586 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs index ddbc2744cb8..4a6a3b114a2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedAppCount.g.cs index 7ff8f42ce9a..8155a314072 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_Get.g.cs index c6890293d66..f1615258b20 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_List.g.cs index b25522e864b..a57c56ae0ec 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionCount.g.cs index 29e098c2069..3435d83453c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs index dff375c2b98..1e870b0b99c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCount.g.cs index 5305de37ae4..8901a827cba 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_Get.g.cs index 15e4c974ef3..a0d1f3da1f7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_List.g.cs index 141f7a4771a..8c6d6187081 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_Get.g.cs index 8258f1d31ac..4dd0f8b0883 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_List.g.cs index 18bdbe40ccd..8a4cf1e8991 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_Get.g.cs index 0cd5241b861..b8644332957 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_List.g.cs index bff3195ddf6..1a12b1207ce 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp.g.cs index 8ddf18b2ea7..1241fa2de81 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs index d618a4d8649..7facd9efa76 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignmentCount.g.cs index e29cb770914..da2131e5286 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_Get.g.cs index 06ad9a39ee1..64b0a77eefe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_List.g.cs index 571960ecdf3..e4366e2814c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory.g.cs index 7665e8124e0..c5b7cba9fb6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategoryCount.g.cs index 19eb20c4e1a..83b2459e487 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_Get.g.cs index 91f1e6508eb..db8bbaab66a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_List.g.cs index e68e473a825..acefba5c150 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_Get.g.cs index 23735d7cac4..d060cf00ac9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_List.g.cs index 0dc47b37d2a..9793233af6b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosStoreApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp.g.cs index 12e2c6b3313..da6021f7ca7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs index 2c4eef5313e..43717ae0ed4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignmentCount.g.cs index 9946d448d6a..dea3cec58a2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_Get.g.cs index 36e4fe7d2b7..c43eb2bd228 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_List.g.cs index 4a089bc2863..fb83bab0153 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory.g.cs index ba12ceeb29e..24b3d722b2e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategoryCount.g.cs index 3fbf1f8098c..d99bab3f74b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_Get.g.cs index db9f8d7fabf..f4a685220a9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_List.g.cs index ce1515d88db..bf50f20e520 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_Get.g.cs index b5500e712e6..da6f2e2c675 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_List.g.cs index e61ca7ded61..d2801d05c81 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsIosVppApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp.g.cs index cce5dbfa975..6251de7347c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs index 02df421dc05..bef6abab293 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignmentCount.g.cs index 632f6e9f23d..ccf54e5c2a4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_Get.g.cs index a5a27006e77..2c174f1ee80 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_List.g.cs index 07506e6aa5d..4318308a11d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory.g.cs index 1ebb7ac31a7..849f7a2ff3e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategoryCount.g.cs index 106f4784744..863a32152c1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_Get.g.cs index 88077d4cb68..13a4d653833 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_List.g.cs index 58390ede287..9de56a295c1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs index 4729691a1f3..0af20ea3184 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs index 37e8244f341..eb91eb6809b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedAppCount.g.cs index 96efad8f00e..1df063ccbc1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_Get.g.cs index 6b620e2751b..fa2bfdecca8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_List.g.cs index a525856b95a..96d32e3f3a2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionCount.g.cs index b9565cc6609..86d7f43b533 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs index a51a6d9799d..146c5a97ff1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCount.g.cs index 28637831d29..d4eefca3f1a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_Get.g.cs index 0c60822ffed..13f52317aa4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_List.g.cs index 5061c65bab7..2a30bd4f6d9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_Get.g.cs index 25a5128debd..eb0d3eb244c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_List.g.cs index 53b7916811d..a04e7829f23 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_Get.g.cs index 5183e8463a1..08cdbb96583 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_List.g.cs index 76c96dcf39a..933ffb49c30 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSDmgApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp.g.cs index b22ef8a60f6..84b36413cbd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs index d2fe13a249e..3acc7f92581 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignmentCount.g.cs index a2a73285fdf..6606c14ffd0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_Get.g.cs index 982298bfd64..77c6ae29dce 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_List.g.cs index 4eda6ea7fce..10b379299e8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory.g.cs index ba9ee74abb9..9c3af737f7a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategoryCount.g.cs index cea26b9082a..78228cb0ba1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_Get.g.cs index f80183ed395..22f47fdaced 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_List.g.cs index ff472c42ee1..57b55721080 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs index 4e25d6499df..21bd7b0990c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs index 8e5aadf057c..80ee973a81e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedAppCount.g.cs index 5ed03ad27ec..502a1634427 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_Get.g.cs index e756d8084c9..08edd4e323b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_List.g.cs index 8819a1e99c3..fccdd7e5b6c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionCount.g.cs index ef8eb9ef22d..f2a285aaf48 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs index f4a871c5373..53ae5ab2428 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCount.g.cs index 3c86e6e4729..35f68d63c1e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_Get.g.cs index 7542aa6e27a..90908653f5f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_List.g.cs index 37f0771df96..dff4379d481 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_Get.g.cs index 4f9d0542868..6e944d2c141 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_List.g.cs index e3d911d8b43..040d9c9524d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_Get.g.cs index e64b890dcb0..926aebbe9f8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_List.g.cs index ab08b28c0aa..b06434069ef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMacOSLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp.g.cs index 61857836b2b..7a81c41eee8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs index 6e278c984f5..ae8017a9319 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignmentCount.g.cs index b6101c2d368..645eb4bfbfd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_Get.g.cs index 8189c977e03..d7ad4bb502c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_List.g.cs index d8965cf9dc1..f93b9f7674b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory.g.cs index 7e43441371a..99a6f9890e5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategoryCount.g.cs index 12697359cad..d681262cc08 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_Get.g.cs index ff45a487523..7c72b0cb301 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_List.g.cs index cfa1f2dbfc3..f49e373ffa4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs index 28b667b1bca..05c6b070e4f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs index c5d18d30af9..bf2fab5e7f6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedAppCount.g.cs index 9558cca803e..4be87a91c2f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_Get.g.cs index 6be5d44058d..9e81b67b08c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_List.g.cs index cbad64c65ef..583470e964e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionCount.g.cs index d700ce14fd7..60cac02271e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs index 9105779f312..1d24a3d82d7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCount.g.cs index 1e875c89600..d415aa6c613 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_Get.g.cs index 2939e09b286..0c5438aa7d0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_List.g.cs index 0d5b201cd8d..26b767f044b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_Get.g.cs index 5f70f134c73..2e94f0ebf69 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_List.g.cs index 66ae99ab05e..18b4d4dcdca 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_Get.g.cs index ae6ce7407b8..33c50bf8831 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_List.g.cs index 9f31537d7c3..2f65e1a452a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedAndroidLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp.g.cs index 09f5c97896d..9aeb0ecf45b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs index 7d7eaba4ca5..0cbdc44a215 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignmentCount.g.cs index 85231565f1d..ee1bb86e433 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_Get.g.cs index 6e67ce415c0..01a657ee05e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_List.g.cs index 37c8d4beb8c..19889c80dc7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory.g.cs index 66906d8898b..84faa4d24f1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategoryCount.g.cs index 70ca1011c96..36a05d400c8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_Get.g.cs index ec032d5ca53..455016f1caf 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_List.g.cs index dcb6c794ef1..e6dc4767919 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs index 9a19f1c2771..70da45f8777 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs index 0ac0a259da9..062c326f679 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedAppCount.g.cs index 5ded7ac90ef..f508ec398dd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_Get.g.cs index 8cae213cf8d..0c12d92da4f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_List.g.cs index afa19f9792d..143ae948730 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionCount.g.cs index 142bc9d1ed3..5c830bee8dc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs index 3400d7b4136..c88322c9095 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCount.g.cs index e085a6d8242..8e1e9af3eac 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_Get.g.cs index 8e7bbae1df6..0edc4a987ae 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_List.g.cs index 81749a5bcea..7f2d42c4897 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_Get.g.cs index 571ef9a8707..a9d939b519b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_List.g.cs index f48bc2986ec..17a6887e2de 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_Get.g.cs index 5aeae0e5979..13333ead1fb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_List.g.cs index cca7c210843..207e94dce80 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedIOSLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp.g.cs index 554d466b3a8..a155a0fcbb4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs index ead76ebe1f8..36305f36371 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignmentCount.g.cs index 679492bf869..cca1e6f993f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_Get.g.cs index 08e8ed54943..150869e85bb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_List.g.cs index 4d2f522d6d1..11e9fa63ef1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory.g.cs index 6cd3bbfec29..e084357b4d7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategoryCount.g.cs index d78cd69e76e..66b4568f101 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_Get.g.cs index 26d79335d89..d254263f81a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_List.g.cs index 95d33c1c1f7..fd0f6ca9fca 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs index 11ba0a558e6..3d4cd05342f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs index 1471ae315c0..a0f53479f6a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedAppCount.g.cs index f5b0aaa8bdd..94007dabb98 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_Get.g.cs index 6f764eaa237..aab317aaf09 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_List.g.cs index 2702c54f4da..981420eef5d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionCount.g.cs index c92382b2697..c9874d536d8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs index 70039290a2a..78ea866692f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCount.g.cs index 440da8d8ca0..2446320b7ee 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_Get.g.cs index 635584db9d8..18f65930b0f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_List.g.cs index 4e4537e1f10..aa9187d9d7b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_Get.g.cs index 6cb38ee8480..05aef4a962f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_List.g.cs index a10d5ec207c..c4b78346360 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_Get.g.cs index 264346770f5..ba49ec0e4dc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_List.g.cs index d3b702bd6ab..2af9e7bab91 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsManagedMobileLobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp.g.cs index 0c0e03f9772..e3da6e28082 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs index 6c816657b80..c8501698144 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignmentCount.g.cs index d3f936d0397..3238f75f1a9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_Get.g.cs index 9b245f2b5de..8d7e9c80b52 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_List.g.cs index 2ff81b8f57c..e98259807eb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory.g.cs index 65ed5692ef2..8f54496bd28 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategoryCount.g.cs index 80dbe7f6d3b..51e6f901c6c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_Get.g.cs index ed86a8a3a8b..82e17b204de 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_List.g.cs index e65f199374c..1ab71c3dda4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_Get.g.cs index cf5e9b1d973..5af4fb0948f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_List.g.cs index 049081206d3..a95a66f48f9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp.g.cs index 2a5ee26c2de..78d0b67ad2a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs index c87a166062c..c61a14e6f47 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignmentCount.g.cs index 0cafd13a96b..095d2389751 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_Get.g.cs index e3543f213f2..d5e9054e5ab 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_List.g.cs index 1a615dd609d..77548fe3488 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory.g.cs index 25fc2263cf6..db8eafe0a6e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategoryCount.g.cs index 1b17ab52660..c7c7bfc2484 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_Get.g.cs index a3747bd3e6f..0ff21040abe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_List.g.cs index 0c1bb1b8d35..f868e8da174 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs index 0cb291c8b74..ad9ca0f8b31 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs index b12974b88e0..d2370d5a0e2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedAppCount.g.cs index d685fe0c147..840de0d8afb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_Get.g.cs index 7972f4253db..f02d839506a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_List.g.cs index c4e463a830b..de67a5b188b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionCount.g.cs index 9d47fb9baa8..7bb92f8ae4f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs index 50301879a54..f71927861fa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCount.g.cs index 39c26f7a06d..fa508c769db 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_Get.g.cs index 893bde097d3..cdb923daabe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_List.g.cs index 32a21c29060..b4cde3800a4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_Get.g.cs index 06a48c847b4..afb015deadb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_List.g.cs index 5db7d8f5d94..abe235499c5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_Get.g.cs index 573433d1f4b..d656e0a0364 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_List.g.cs index 6ed1629f002..847a6ad583e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWin32LobApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX.g.cs index 346b8904d20..8e3a04b64b4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs index cbeb8af5bfe..fb20da16f74 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignmentCount.g.cs index 236fc58ab6e..239b27daa2a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_Get.g.cs index 3b184237382..87ef302736f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_List.g.cs index 8ed0a09b9a9..7d8c875a2d2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory.g.cs index f1e19bd64fb..cdd94619260 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategoryCount.g.cs index 0f5bea3441f..5a2e6a1dfd5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_Get.g.cs index 1459a033d11..94dcf832993 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_List.g.cs index 22669119aa4..7e7216831df 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs index fc9b4e082fb..b36a0ff6ea2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs index c71ceb0605c..84aeede2238 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedAppCount.g.cs index 9836e1fc122..0257b72ac17 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_Get.g.cs index b533a068636..065c6a8c3b5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_List.g.cs index a6d1efbeeb7..7f28c643631 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionCount.g.cs index c561e17786e..c8ef4afa999 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs index b7c1311df29..6f0c269a808 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCount.g.cs index 0a987b15ae0..8d968f8ec3e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_Get.g.cs index b1de9677609..7db85dc6283 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_List.g.cs index 39eb088b2dc..f557f9f54be 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_Get.g.cs index 54f6cb33375..7b8b0a6d7fd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_List.g.cs index 27a66c007c2..f25271c0740 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_Get.g.cs index 5d4cc77a52b..79d2b2876c9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_List.g.cs index dbe4872e947..28e75a75ff6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsAppX_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI.g.cs index 7fb310c1a22..6fedb73b3bf 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs index 94ae939eb59..c5dfee8518d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignmentCount.g.cs index 616585d6dad..f913e60df2a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_Get.g.cs index cea4d3e4c1b..7f436375159 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_List.g.cs index a8dcd511fcc..8d7fe32f737 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory.g.cs index 8bbcab20335..07ac76cd19c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategoryCount.g.cs index c60f39920ab..dff8945401b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_Get.g.cs index 979453a0776..d3beeb72a7e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_List.g.cs index b6ad960c938..d1651636db7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSICategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs index fd643c436b7..c2f1a7dd12d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs index efa9b29fc83..510ab8aa540 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedAppCount.g.cs index 56508408678..058d9e1d440 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_Get.g.cs index 4e1d18e3817..e35ffa15351 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_List.g.cs index a0f1e4aa0f4..aa01b986239 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionCount.g.cs index a51fe0eec67..5bb711377b9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs index d19cac2acca..7cbf10e4f66 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCount.g.cs index 8aa7abf7572..660469033b4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_Get.g.cs index 370fe7a9f0e..9861ee86ad8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_List.g.cs index 0db6a4dcb5b..6cd980d91cc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_Get.g.cs index 1758e7c23d9..b4cf2cdf052 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_List.g.cs index 6c547cf09b4..534bd7f7aea 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_Get.g.cs index 64ffbaf0b0f..484f7a05003 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_List.g.cs index ae27dec709c..a6dc2d03d7a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsMobileMSI_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX.g.cs index 9ae00bd6472..7be1d08d361 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs index 6fc1b078050..368e40ac049 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignmentCount.g.cs index 0a387c59abc..36827737650 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_Get.g.cs index bbf9f79f2c9..7fdab709d61 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_List.g.cs index 3dc52334a48..a7eb033e269 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory.g.cs index a5c469a3554..39d14bc5a75 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategoryCount.g.cs index 0e725d5ac30..cc547f2310b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_Get.g.cs index 1db5248e639..74d8af5c80d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_List.g.cs index a4aa69f7756..f431845241c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs index 898db866343..7cafee5da52 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedAppCount.g.cs index 49db682916d..96dc5ca5046 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_Get.g.cs index c9f13ce39ca..878e4458a5b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_List.g.cs index b82d6d45c66..8772d40c34f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs index db19e95563d..e7d27add4b6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs index bdcd6642926..a63cdf78be4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileContainedAppId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedAppCount.g.cs index 33995988e8c..13b395ef22a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_Get.g.cs index fe607e06bc2..947dbc8d813 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_List.g.cs index af6e8ce75bb..373a9698d51 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionCount.g.cs index 12c6f896b25..37cb178522c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs index 8c094164d36..edecf3acaa1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppContentFileId : MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCount.g.cs index 847dd8abcd6..bc926d0acc5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_Get.g.cs index 81f52f23acb..c374bcbced9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_List.g.cs index 2d43edc2bd0..7c6212a30fc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_Get.g.cs index f24d527d2d9..4ba13381e6b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_List.g.cs index 7e090322adc..40f1dd7c196 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_Get.g.cs index 171155afdaa..2c1a78b456d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_List.g.cs index aabb6e61425..1691d3ae875 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsUniversalAppX_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp.g.cs index a13866066d4..3fa531eadaa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs index 19230b004ba..e6279417c55 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignmentCount.g.cs index 2d3363dc986..828f7ceae27 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_Get.g.cs index 589fb45752c..8aec9b7841e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_List.g.cs index 5c9375411c2..b8f09cf14e3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory.g.cs index 0b03d506adb..a351c77f066 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategoryCount.g.cs index edb15e15841..2fec56b9cf0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_Get.g.cs index 8415f6b0577..6a2ede73f0b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_List.g.cs index 046a8051c56..88482bf1f98 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebAppCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_Get.g.cs index 9e36157dad1..1b131c6cf9c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_List.g.cs index 743b81352d0..b733f15e539 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAsWindowsWebApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment.g.cs index cbed5a41e0d..20296c5c7f8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppAssignmentId : MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignmentCount.g.cs index cd0e93b9b79..eb2f6f4ac40 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_Get.g.cs index b573ec243fc..d5dc7aa7e3f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_List.g.cs index c4d50d66b80..6d96bd357b2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory.g.cs index 048e830c1ba..57cf56b9014 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppCategoryId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategoryCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategoryCount.g.cs index a0371df922b..f1e0076062d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategoryCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategoryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_Get.g.cs index 8efa6fad971..9cbd78ff527 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_List.g.cs index 902ab0ed500..5422da21a5e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCategory_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration.g.cs index e5f0a795608..e7c3474ca3c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceMobileAppConfigurationId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs index 6539f7ab89d..b385f73cfc8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceMobileAppConfigurationAssignmentId : ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignmentCount.g.cs index 3c1ca089594..1ef0649214e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_Get.g.cs index bc80a849860..a84ec55c917 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_List.g.cs index 9eef55dee55..01dae1b6701 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationCount.g.cs index f3b8503b7f9..a7b0d711c19 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs index ec64fa19456..d1199aa006f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceMobileAppConfigurationDeviceStatusId : ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusCount.g.cs index 1b621d57884..ec8fb0e0390 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs index 14d6778217a..16164c25456 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_Get.g.cs index a2448ceb9b6..d97805edc49 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationDeviceStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_List.g.cs index 62c1ab7dc6f..b8ea7154efd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationDeviceStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs index 4aa7a9c4bb9..431f14a432b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceMobileAppConfigurationUserStatusId : ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusCount.g.cs index 15d7055442a..7ad23da50dd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs index 48073391b52..b99fb0ae9a8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_Get.g.cs index b5e711b1c95..597e855f4c8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationUserStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_List.g.cs index cebb352dc98..2d4875a99fb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfigurationUserStatus_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_Get.g.cs index ebea7e92bbb..e574a189e96 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_List.g.cs index 1779f581524..17b9aac75ef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCount.g.cs index 38c097f6531..4ec14ff43d2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidLobApp.g.cs index 4e2ad6cefdb..89c344cdc44 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidStoreApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidStoreApp.g.cs index f34017ab9a8..11a77f64779 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidStoreApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsAndroidStoreApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosLobApp.g.cs index 1b3ef972c89..82da61daa4e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosStoreApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosStoreApp.g.cs index 639adc83a33..62de5d208cd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosStoreApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosStoreApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosVppApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosVppApp.g.cs index 591ad1a75b7..aa47cb1a486 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosVppApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsIosVppApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSDmgApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSDmgApp.g.cs index c9668adbff3..6355c19faef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSDmgApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSDmgApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSLobApp.g.cs index 0369a6d86e8..e2f39a33a07 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMacOSLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedAndroidLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedAndroidLobApp.g.cs index 6190d803eae..fb61bc4610c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedAndroidLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedAndroidLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedIOSLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedIOSLobApp.g.cs index a9af666fd58..67229aefbf3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedIOSLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedIOSLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedMobileLobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedMobileLobApp.g.cs index 9926cd378b7..51984ff2f98 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedMobileLobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsManagedMobileLobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMicrosoftStoreForBusinessApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMicrosoftStoreForBusinessApp.g.cs index dbdcebcb730..633514dd7be 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMicrosoftStoreForBusinessApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsMicrosoftStoreForBusinessApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWin32LobApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWin32LobApp.g.cs index 2076cdbfdaa..7d6a664151a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWin32LobApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWin32LobApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsAppX.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsAppX.g.cs index b0f8c724da8..69937305294 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsAppX.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsAppX.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsMobileMSI.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsMobileMSI.g.cs index 1067da7e4ce..8b3d7b68102 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsMobileMSI.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsMobileMSI.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsUniversalAppX.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsUniversalAppX.g.cs index e4efc113afa..b88c5ce1a49 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsUniversalAppX.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsUniversalAppX.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsWebApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsWebApp.g.cs index 6a9f3aed5f2..7df799ac91b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsWebApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppCountAsWindowsWebApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship.g.cs index 8e54d0386c7..b69bde44c66 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MobileAppRelationshipId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationshipCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationshipCount.g.cs index 9a15048577a..6fa99306976 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationshipCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationshipCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_Get.g.cs index f9ad65fa1e4..5172a416c54 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppRelationshipId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_List.g.cs index f3a852d44da..6bc7f713720 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileAppRelationship_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_Get.g.cs index e61688a31e6..aaac4a1427e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_List.g.cs index 4597e2cff77..5f55a868046 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementMobileApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs index 4eae375bbdc..037a2ac49d0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppConfigurationId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs index 9d9096f5b3f..b6441d934bb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedMobileAppId : TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAppCount.g.cs index 207e75b0a6f..a8b3259e2b1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_Get.g.cs index 87cd2c62a7f..0980ebd76da 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_List.g.cs index a4e2a3877d0..4946e90b78d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs index b7f6b723c48..225c60eef1e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppPolicyAssignmentId : TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignmentCount.g.cs index 864121be893..4ea266cc6ac 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_Get.g.cs index f7c216b5403..3c2dcd8a37e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_List.g.cs index c9067a06357..83f25ec0c79 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationCount.g.cs index 9351abca8fb..7e39c6091ac 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs index 477dcb16394..05bd89fc12b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_Get.g.cs index 7c2d893fb7c..dd1318eafeb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_List.g.cs index 557fae1663c..920122dab02 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementTargetedManagedAppConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken.g.cs index 6bcfcb31ab5..c07f807f3f8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VppTokenId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppTokenCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppTokenCount.g.cs index 13db008db73..534fe1f8b3d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppTokenCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppTokenCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_Get.g.cs index 2e0f8049217..29fe47de7c7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VppTokenId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_List.g.cs index c441ec8ebbe..cbf2d80a3c4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementVppToken_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs index 07676a9dd39..1ef4a937b24 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionPolicyId : null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs index fc359be2187..a4799a8d41a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedManagedAppPolicyAssignmentId : WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignmentCount.g.cs index 1777354ebe0..e0f545146e8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_Get.g.cs index c12ed58a6b5..c81d15a24a4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_List.g.cs index a3462dc82d9..fc097fa5938 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyCount.g.cs index 0f05dbfcb7e..85f64f2c2ff 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 9e5e76e277f..7d16fc0f170 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionAppLockerFileId : WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs index e87e6b90670..0d11cf0439d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs index 531d2c8a88e..337febd98d7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs index fc5aaa32d02..5aa1c48b3a0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 288e22ebee8..7488e3a6be1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsInformationProtectionAppLockerFileId : WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs index 631991b37d8..db1e4600e12 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs index 3765e0a35c2..22be3169c60 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs index 63cd1bd6013..0259d34632e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_Get.g.cs index 1b4c06f7e6d..73b5f12fb9a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_List.g.cs index 88fce69230a..52682a18493 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementWindowsInformationProtectionPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAppCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAppCount.g.cs index a88eddd4616..db9f203ebff 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAppCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAssignmentCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAssignmentCount.g.cs index 3b65bd546c4..8a38c7d35d7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAssignmentCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionCount.g.cs index 1aa5640b4dc..4da3ee85617 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgDeviceAppManagementiOSManagedAppProtectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent.g.cs index 306b3861246..673b0cdfcb6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceManagementTroubleshootingEventId : UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEventCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEventCount.g.cs index 2b54983012d..14be951fd16 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEventCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEventCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_Get.g.cs index 8654aa2aedc..0d8cd571ebe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_List.g.cs index 6e4aaad86f0..791217b328b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserDeviceManagementTroubleshootingEvent_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration.g.cs index 965baffce56..4cc745a1d65 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedAppRegistrationId : UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistrationCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistrationCount.g.cs index 61724ef4b79..0507aa9b5ad 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistrationCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistrationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_Get.g.cs index 65df7c267c0..4a763c5b769 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_List.g.cs index 6fe07d6588a..c711d0c3615 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedAppRegistration_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice.g.cs index 213fd8fab7b..3cbe93b6f02 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManagedDeviceId : UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategory.g.cs index 6cc18d546b5..879d306971e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategory.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategoryByRef.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategoryByRef.g.cs index 79b6295cdb9..9ef6b8e892e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategoryByRef.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCategoryByRef.g.cs @@ -42,7 +42,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState.g.cs index 692a754ab99..75655610ab4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceCompliancePolicyStateId : ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyStateCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyStateCount.g.cs index 4b18cf11632..67e22eb5352 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyStateCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyStateCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_Get.g.cs index cf4f12044e4..3d6ed27fe98 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_List.g.cs index 2c0253a5f76..d064e6186f1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCompliancePolicyState_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState.g.cs index ab60e00cc1b..419b937f378 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceConfigurationStateId : ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationStateCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationStateCount.g.cs index ae90e9ddb4e..2c2e1cc4983 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationStateCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationStateCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_Get.g.cs index bfcdbbff138..4270d91a3ac 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_List.g.cs index 19d9e65974f..e8afd6207d4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceConfigurationState_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCount.g.cs index ff07821f44b..6ffabc14a2e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionRequestCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionRequestCount.g.cs index c47ac436aa0..f201a0b5049 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionRequestCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionRequestCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse.g.cs index cfd11cf6c5a..6d5fc816182 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceLogCollectionResponseId : ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_Get.g.cs index 9974a8d2598..18368052d1a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_List.g.cs index 3c69a582436..689bdd1292e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceLogCollectionResponse_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceUser.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceUser.g.cs index 69a06a443ae..411d64e25ab 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceUser.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceUser.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionState.g.cs index 2df480d7598..0cfb27490dc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionState.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index 25d7db0b675..505d1277b8f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsDeviceMalwareStateId : ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs index 22c1cae28fe..2fff45d69f6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareStateCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs index 7d40c0c02fc..9620df87ed2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs index 64afb0c5194..d4a67a7a62e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_Get.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_Get.g.cs index 87286a4ffa3..eb909dcdf3b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_Get.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_List.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_List.g.cs index ca2be8e4e5b..50488209935 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_List.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/GetMgUserManagedDevice_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanUserManagedDeviceWindowsDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanUserManagedDeviceWindowsDevice.g.cs index 2a317fcd423..2475f919f23 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanUserManagedDeviceWindowsDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgCleanUserManagedDeviceWindowsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCommit.g.cs index 1d51c176a93..7d1543400f2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileRenewUpload.g.cs index dd242151f3b..5776d45090c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCommit.g.cs index 5042f526518..df089df2d6a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileRenewUpload.g.cs index cf8bba319d9..5ac123b7912 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCommit.g.cs index 004cf348088..5c4872a797e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileRenewUpload.g.cs index b9cec383ba5..ce6e26c1c65 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCommit.g.cs index ede2854fb0f..4ee8e219fe2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileRenewUpload.g.cs index 6321da987a1..8c521a1e866 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCommit.g.cs index d71bae018fd..d5922538a37 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileRenewUpload.g.cs index c7b720e85b2..9e48ecb4294 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCommit.g.cs index 910df814f7e..a5e81ad2fa4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileRenewUpload.g.cs index 3202db49fbf..78773071c2e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCommit.g.cs index 3881df60cbb..d6f5466f21a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileRenewUpload.g.cs index 30c9372414e..de20dba8bcc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCommit.g.cs index c39a9914f62..1b66e4d6c26 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileRenewUpload.g.cs index 6edd9fc3339..a43adeee693 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCommit.g.cs index 50d38bdaac1..d4625091767 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileRenewUpload.g.cs index ddd054be626..d6d6bc0b687 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCommit.g.cs index 687bc892f1f..00619232285 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileRenewUpload.g.cs index 61c768e19a1..c677f529427 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCommit.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCommit.g.cs index fd14241c415..672e32544b2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCommit.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileCommit.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileRenewUpload.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileRenewUpload.g.cs index c5874910bc0..552beb93301 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileRenewUpload.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFileRenewUpload.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDownUserManagedDeviceShut.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDownUserManagedDeviceShut.g.cs index 2db94ef0587..cda8a660d3e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDownUserManagedDeviceShut.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgDownUserManagedDeviceShut.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutUserManagedDeviceSharedAppleDeviceActiveUser.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutUserManagedDeviceSharedAppleDeviceActiveUser.g.cs index 04d5f67d37d..f068f04f601 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutUserManagedDeviceSharedAppleDeviceActiveUser.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgLogoutUserManagedDeviceSharedAppleDeviceActiveUser.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireUserManagedDevice.g.cs index 8da1d894ba6..aeb28555d9c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgRetireUserManagedDevice.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgScanUserManagedDeviceWindowsDefender.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgScanUserManagedDeviceWindowsDefender.g.cs index 02e086a1344..f32f26aef19 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgScanUserManagedDeviceWindowsDefender.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgScanUserManagedDeviceWindowsDefender.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppPolicyApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppPolicyApp.g.cs index 814bfd0bb2d..f9a7665a2c8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppPolicyApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppPolicyApp.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.g.cs index 9e8a8b61856..bee37ba5b6f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationAppliedPolicyApp.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.g.cs index 8c84315006c..362da6cf327 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementManagedAppRegistrationIntendedPolicyApp.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs index b4d37258550..cf068f9966c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/InvokeMgTargetDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/LockMgUserManagedDeviceRemote.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/LockMgUserManagedDeviceRemote.g.cs index ad7e9577768..7967922de45 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/LockMgUserManagedDeviceRemote.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/LockMgUserManagedDeviceRemote.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtection.g.cs index 47ba90858e2..dc94f6e17b8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtection.g.cs @@ -290,7 +290,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs index cc0946bdc7e..380e023a13a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs index 682a1068a31..fefb954362a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtection.g.cs index c9cadb17d77..6405f9b682e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtection.g.cs @@ -296,7 +296,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs index faa1a08e02e..6ca3072bcf0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtection.g.cs index 0b9ed5dde5c..b9bc994c5a7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtection.g.cs @@ -272,7 +272,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionApp.g.cs index 4cd5e82725b..a612cc62a9d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs index a00b329af8f..8c8baa1c47c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppPolicy.g.cs index d2fd7c6808a..bc45935737a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppPolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistration.g.cs index 57621e89e35..f24380ab876 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistration.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs index 86439f4cd1f..54059bbe2e1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs index 94ae71de880..3c90f0f26aa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationOperation.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationOperation.g.cs index 030ee121b0e..e69dc85a6eb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationOperation.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppRegistrationOperation.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppStatus.g.cs index fcf0d51d745..9cbc202a6eb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedAppStatus.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBook.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBook.g.cs index facf990e5e7..0e8a60f9162 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBook.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBook.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookAssignment.g.cs index 357b6870945..b401687e3ea 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookAssignment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookDeviceState.g.cs index 249e1d3777a..e14a682e11b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookDeviceState.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummary.g.cs index 3c39ee84c6e..d4339457b53 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummary.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs index bce9d1e4c7a..376ce20e3d4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs index 9da1d0d151e..c3edfe39c9b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs @@ -206,7 +206,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs index fba07772b23..2c9a8aa4737 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index edf0680d1ba..66f75a63286 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 7c8eff36f44..4d4ed6d56be 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileApp.g.cs index 472cfa55d31..9b9dc465e42 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileApp.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs index 019e4db8368..32dae10918d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs index aca2763e465..96c57e01a31 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs index ca334e25ef2..ae58643964d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs index 0eb5192216c..92fc81a1349 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs index a07e02605e0..5724273450c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs index 376af345769..e32d0b44305 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs index dcc726085ca..51b651dc1d4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs index cd8bdedb363..f305214a06e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs index 60ceebe88f0..4bb3f7f7850 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs index 99c3db2206b..4b6ce6a49ef 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs index 31f0ca913f7..8c727bf69ce 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs index 13625433bb3..b0baa4fe57c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs index da5a54e911f..ce12d805913 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs index 8790b0962af..d1273be16bf 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs index 318a32a91ae..79e698bdbb0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs index 3b9eeb65596..6295d9d4f52 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs index e982724f07d..462282d7f65 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs index 5719731ed12..d5c5e32ed7e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs index fb1fd864806..60c6e560dec 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs index 56427f8497d..9615bd81ffa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs index 5c3b599bf0e..952c52893ec 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs index b24442700f8..8ce2011555d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs index 4328bc567eb..f259c412b90 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs index 6cf3352f6ca..1e22a1db500 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs index 6a9f23a862b..23fe9cc7f3b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs index cdde5ea0a51..74b86abb640 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs index fa0f7c0dbbb..88643666ff2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs index be470b872cd..971f6281074 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs index 92124af3644..0e218001f4a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs index 8a4e395711f..754c1cbdf63 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs index d9aede5bf1e..d63895c0614 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs index 39fe2be8ba0..df1f3d9001b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs index 9f05ccc4e81..cf11094fa27 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs index 22cc40e9e0e..9ede561055c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs index a1b6bb05473..fc375185079 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs index df28dd2b98b..f5d9b4e01e3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs index 693b6e2099a..8a5ef2ed104 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs index 71cf6036674..4deaaf8fc28 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs index abf1cbc6207..a01025018df 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs index 7f2dbd12744..82281a0f9f9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs index 5f493267423..e480af8b7ff 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs index dabe6779499..fc8cd68aba5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs index 5587a2b4ac7..5da25aa2295 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs index bf8682ab0c0..7f82d0aee59 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs index 6dbb3feb4d1..43b25f19d0d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs index 8a409942581..96e16e694ae 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs index 0f20bd9bdd0..c4641d11aeb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs index d4c09552276..8ab61fff3d2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs index e234685ac04..42bd814ab2f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs index a4ffe4a4fc8..6e3c70d6131 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAssignment.g.cs index d967b28be7e..01839a462c7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppAssignment.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppCategory.g.cs index 389a90c086c..db57ed16b48 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppCategory.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfiguration.g.cs index 2621cc92049..f9e9d185677 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfiguration.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs index 401bdb7808a..7e9c9f79c9b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs index 6a1d346fcbd..c69d809e76f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs index 6eebbdfdcac..e6b21c21891 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppRelationship.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppRelationship.g.cs index caa20589e74..48ae9255fb0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppRelationship.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementMobileAppRelationship.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs index 76b1866814e..1c30ad79fbc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs index 4c93d541c06..9dfc4e8e0b3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs index 3df316a3920..1d5a36c154b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementVppToken.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementVppToken.g.cs index a55dbdfbac2..001285a0fb4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementVppToken.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementVppToken.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs index ee026cb9d4e..84b067382b4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs @@ -278,7 +278,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs index 226449cf7fb..21d8a756e33 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 458d8ce0803..7e9d040f640 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 7f46cce2f4f..94b585976ca 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserDeviceManagementTroubleshootingEvent.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserDeviceManagementTroubleshootingEvent.g.cs index 1d29ac5e6ee..2aa4a50040d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserDeviceManagementTroubleshootingEvent.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserDeviceManagementTroubleshootingEvent.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDevice.g.cs index b23c9df3a5a..22015e8e535 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDevice.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceCompliancePolicyState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceCompliancePolicyState.g.cs index ff458e535aa..4fbbcd4f989 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceCompliancePolicyState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceCompliancePolicyState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceConfigurationState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceConfigurationState.g.cs index 1a41ad18539..9c69989f875 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceConfigurationState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceConfigurationState.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionRequestDownloadUrl.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionRequestDownloadUrl.g.cs index 88a14dd9548..a35a05ab22b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionRequestDownloadUrl.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionRequestDownloadUrl.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionResponse.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionResponse.g.cs index dae808cd5b4..cc140b77574 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionResponse.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceLogCollectionResponse.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index e62b7b1fdc9..72c216569fe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/NewMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtection.g.cs index 388b01530d7..e13fd90f685 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs index 030172f48a5..f850f36049a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs index 93f36393bb8..3f66f359f64 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs index d78265e5d67..2ccb54dc381 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtection.g.cs index c556bf56985..8754fc1d837 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs index d3010fad7f6..842a3860a05 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs index f571cebfe79..ce2bbf01e4e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtection.g.cs index 1aa7cf2d5fc..dec42911707 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionApp.g.cs index 264cf31e524..23d50b5b0c4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs index 65c0eeac6a1..36993c40faa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs index 592cd0ad133..5d6b929683c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppPolicy.g.cs index d214892aab1..70ee2e41f54 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistration.g.cs index 170179fb25e..ab894ad30df 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs index 5c0a220ecaa..c4da844c050 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs index c358daccac4..d8ffb78a9eb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationOperation.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationOperation.g.cs index af2c25020c2..f0af69b336a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationOperation.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppRegistrationOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppOperationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppStatus.g.cs index 0baadcfb8ae..1c58ccf8574 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedAppStatus.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBook.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBook.g.cs index 2caed1ffae6..c5a35fdfa57 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBook.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBook.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookAssignment.g.cs index 067f3745b6e..64ada82aa54 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookDeviceState.g.cs index b65ec00fafa..b15c0330968 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookDeviceState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookInstallSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookInstallSummary.g.cs index 79f0db190dc..9d62eba0fd6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookInstallSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookInstallSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummary.g.cs index 5dd1d7f98fd..327ef7b5f17 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummary.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs index 62598d6a0f3..348fabb8b17 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs index 728a389bba6..99975d2a924 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs index 49c1fff7d52..da698f29b8e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 5796961d4a7..7b20e4307b9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index d3e7fa709a2..6311a36f89e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileApp.g.cs index 9da7a72b98f..49c96f1ed39 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileApp.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs index 4d7d601df3b..b7bfc36e715 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs index 58f4d312b33..509185a88af 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs index 98521a425d4..dfcd577511e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs index ae339d4798c..fc1c663dee0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs index f2b814c8e4d..2ff394cc5d8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs index c80d6ffbcef..fefc1c8be5f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs index f9c12ffb1e9..cbf6f8f5679 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs index da712274420..c9f4675d65e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs index 8e8abf123fd..94d337c1915 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs index 3f3a76e4685..ab0c171512a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs index 0f893fd92bc..dbd6f8bfcad 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs index 84ad39b643c..b911327d1e2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs index 0322d7eeca8..5a895c7118c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs index ac58a3434fb..826833536eb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs index feaa680f3d2..26c133c6a88 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs index 5d4bb5fb7b9..c3eb40be74d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs index a94ba1eb70a..9ceb4207c28 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs index c620984880b..9ffc4d61ddd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs index 35c696c3d11..8f4543866a1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs index 65f1eb62312..648bba4ec7e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs index 4b37eff9330..5ec01607ee6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs index b0e08634a82..e6cc53c25b4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs index 07ff3c0b914..032fcfc80e1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs index 3476b2b2fb3..7a01a04f7b2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs index 371d46329f5..2cf58a4dc01 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs index bd536f87028..32dc42810f8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs index 5b14ec4c608..07304a50dd7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs index eb60ec613aa..e905ab6bb95 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs index fa71a657a7c..ddfe475b911 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs index 0bf7cd15d32..c3029c1797b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs index e72a3a4a7ec..53fa46242ab 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs index f2573579438..db32ba8f4cd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs index 359764d1d8a..87667158c05 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs index 44ae98fc534..25dd9c3d3e4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs index 72fc596bd63..60389361761 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs index f873cff9e03..2b15a9ed550 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs index f8e706742e8..d69d0bc2b6c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs index 4fa5bdc3ee9..7fd406ba321 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs index 6ed3800237b..076409dc54b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs index 2788ca948cb..9016a4db954 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs index e3746128fa2..3804080a35e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs index 936c7571687..72668cdaf14 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs index caa97d99135..27706a66316 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs index 491470f2c69..da276fdb93b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs index 09df68f624d..1084039e3c2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs index 91ac8f88130..b490aa1be9a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs index beef0cb8aff..8ddb03cc361 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs index 9ab0c860db0..31c241458fc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs index 130fac438ed..2702fe10da5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs index 9945ff31da9..1858ab32480 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAssignment.g.cs index 143274caf42..809c42afe6d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppCategory.g.cs index 47d441875e5..3d059129881 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppCategory.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfiguration.g.cs index 438f41fc11c..6f4a241c048 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs index a75e38554c8..e261819453d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs index 5d7a64360ff..7994672e4ab 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationDeviceStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs index 9cec70c0ca0..0c964c774d1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs index 55125955524..cb498fb5ac7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationUserStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs index 89a493623dc..11a4c200880 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppRelationship.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppRelationship.g.cs index b6acb3a8ced..116f5dc9e49 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppRelationship.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementMobileAppRelationship.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppRelationshipId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs index f5580a75ebd..03d40c206dc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs index cf91fe270d0..17e4bc3b9ec 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs index 49210bfe6de..adbbf4b9e18 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs index 6d24a7ca443..753009fc604 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementVppToken.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementVppToken.g.cs index bd5cb5c282c..a83e069d669 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementVppToken.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementVppToken.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VppTokenId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs index 64882e52446..ac6f9550848 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs index e3589ecfe20..d2b467e3c12 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 013530d766e..0e90d01c412 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 10f196d17d7..5c1dade5ebb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserDeviceManagementTroubleshootingEvent.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserDeviceManagementTroubleshootingEvent.g.cs index ded44f54067..938f9772234 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserDeviceManagementTroubleshootingEvent.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserDeviceManagementTroubleshootingEvent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDevice.g.cs index b5fccda8b71..e0317aeae57 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategory.g.cs index c3a661b297d..7d6d4a88c6e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategoryByRef.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategoryByRef.g.cs index 6369756b01f..af86a750300 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategoryByRef.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCategoryByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCompliancePolicyState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCompliancePolicyState.g.cs index c793ad470f6..7117e525065 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCompliancePolicyState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceCompliancePolicyState.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceConfigurationState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceConfigurationState.g.cs index f6f09f13198..7201763b876 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceConfigurationState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceConfigurationState.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceLogCollectionResponse.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceLogCollectionResponse.g.cs index 559e7a6782f..48a152006a7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceLogCollectionResponse.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceLogCollectionResponse.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceUserFromSharedAppleDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceUserFromSharedAppleDevice.g.cs index b4c040e7639..bf68c161555 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceUserFromSharedAppleDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceUserFromSharedAppleDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionState.g.cs index f3df864e4a5..b480a2d35f8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionState.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index 011217bd5ed..3f32a22380a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RemoveMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RequestMgUserManagedDeviceRemoteAssistance.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RequestMgUserManagedDeviceRemoteAssistance.g.cs index 264f46f5604..d7ba2d294e2 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RequestMgUserManagedDeviceRemoteAssistance.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RequestMgUserManagedDeviceRemoteAssistance.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ResetMgUserManagedDevicePasscode.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ResetMgUserManagedDevicePasscode.g.cs index 87c44a79653..c171e2a13dc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ResetMgUserManagedDevicePasscode.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/ResetMgUserManagedDevicePasscode.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestartMgUserManagedDeviceNow.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestartMgUserManagedDeviceNow.g.cs index 343f9021ee1..eb218b3bd0f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestartMgUserManagedDeviceNow.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestartMgUserManagedDeviceNow.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestoreMgUserManagedDevicePasscode.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestoreMgUserManagedDevicePasscode.g.cs index c4469e0c7c8..72be6e10fa8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestoreMgUserManagedDevicePasscode.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/RestoreMgUserManagedDevicePasscode.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementManagedEBook.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementManagedEBook.g.cs index 5ba8e1eccae..af74db3001c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementManagedEBook.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementManagedEBook.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileApp.g.cs index e7e5f112ecf..f744fefb7c8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileApp.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileAppConfiguration.g.cs index 035c835a192..511bdc17942 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementMobileAppConfiguration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs index 9aec33fea38..795097b3b76 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgUserManagedDeviceCategoryByRef.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgUserManagedDeviceCategoryByRef.g.cs index 60ad23aeeca..7d773f5dae5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgUserManagedDeviceCategoryByRef.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SetMgUserManagedDeviceCategoryByRef.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SkipMgUserManagedDeviceActivationLock.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SkipMgUserManagedDeviceActivationLock.g.cs index 23a654e1aa9..0fdff39f884 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SkipMgUserManagedDeviceActivationLock.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SkipMgUserManagedDeviceActivationLock.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementMicrosoftStoreForBusinessApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementMicrosoftStoreForBusinessApp.g.cs index ac103637274..8b6aa3e5699 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementMicrosoftStoreForBusinessApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementMicrosoftStoreForBusinessApp.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementVppTokenLicense.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementVppTokenLicense.g.cs index 358a20b8e91..98675cbd2a6 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementVppTokenLicense.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgDeviceAppManagementVppTokenLicense.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VppTokenId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgUserManagedDevice.g.cs index 624385a42c2..3565a951808 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/SyncMgUserManagedDevice.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagement.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagement.g.cs index 18436a72c9a..fffa865f59b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagement.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagement.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -84,7 +84,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtection.g.cs index 7d8fd733fab..bbd21d44880 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtection.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; @@ -305,7 +305,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.AndroidManagedAppProtections[AndroidManagedAppProtectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs index bfbc154fec1..e5c3851dd59 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionApp.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.AndroidManagedAppProtections[AndroidManagedAppProtectionId].Apps[ManagedMobileAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs index 2ac12cee313..3109f30fbfa 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.AndroidManagedAppProtections[AndroidManagedAppProtectionId].Assignments[TargetedManagedAppPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs index 79ff3eeb1b0..cbef85e4780 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementAndroidManagedAppProtectionDeploymentSummary.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.AndroidManagedAppProtections[AndroidManagedAppProtectionId].DeploymentSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AndroidManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtection.g.cs index 204df5c6309..02afff18503 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtection.g.cs @@ -297,7 +297,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; @@ -311,7 +311,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.DefaultManagedAppProtections[DefaultManagedAppProtectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs index 2e367476a07..6734e2a8e6e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionApp.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.DefaultManagedAppProtections[DefaultManagedAppProtectionId].Apps[ManagedMobileAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs index 9ff92ea0fa9..07c11397982 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementDefaultManagedAppProtectionDeploymentSummary.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.DefaultManagedAppProtections[DefaultManagedAppProtectionId].DeploymentSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DefaultManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtection.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtection.g.cs index dedbe7bc23c..659410bce21 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtection.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtection.g.cs @@ -273,7 +273,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; @@ -287,7 +287,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.IosManagedAppProtections[IosManagedAppProtectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionApp.g.cs index 9fdef0980ef..356de3b895e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionApp.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.IosManagedAppProtections[IosManagedAppProtectionId].Apps[ManagedMobileAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs index 9d80e7f4787..f64f45230f1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.IosManagedAppProtections[IosManagedAppProtectionId].Assignments[TargetedManagedAppPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs index 9d5b3127c52..e93656c2999 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementIosManagedAppProtectionDeploymentSummary.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.IosManagedAppProtections[IosManagedAppProtectionId].DeploymentSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IosManagedAppProtectionId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppPolicy.g.cs index 8ee16edc3ed..3e54c2fd91f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppPolicies[ManagedAppPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistration.g.cs index c1df99024ca..6b93ef70d32 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistration.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppRegistrations[ManagedAppRegistrationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppRegistrationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs index c8b11bd5e45..8abb0670d47 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationAppliedPolicy.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppRegistrations[ManagedAppRegistrationId].AppliedPolicies[ManagedAppPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs index c0ce5d76a2a..5181aae2ae0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationIntendedPolicy.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppRegistrations[ManagedAppRegistrationId].IntendedPolicies[ManagedAppPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationOperation.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationOperation.g.cs index 9b7d71d2b7e..ecae92f2880 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationOperation.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppRegistrationOperation.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppOperationId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppRegistrations[ManagedAppRegistrationId].Operations[ManagedAppOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppOperationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppStatus.g.cs index 160e749b568..a0894c94bd4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedAppStatus.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppStatusId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedAppStatuses[ManagedAppStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedAppStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBook.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBook.g.cs index e550cc514bc..bf5044f6dd9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBook.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBook.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookAssignment.g.cs index dad58dc5c57..2fb7b6c10cd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookAssignment.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookAssignmentId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].Assignments[ManagedEBookAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookDeviceState.g.cs index a2bf42d3095..de971d4c0c0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookDeviceState.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].DeviceStates[DeviceInstallStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookInstallSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookInstallSummary.g.cs index f9e74880e93..55780a61dc4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookInstallSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookInstallSummary.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].InstallSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedEBookId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummary.g.cs index 935d3e6f031..d78f9b7528c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummary.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].UserStateSummary[UserInstallStateSummaryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserInstallStateSummaryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs index fdb9d0a9e2a..b2c7b7ff139 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementManagedEBookUserStateSummaryDeviceState.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.ManagedEBooks[ManagedEBookId].UserStateSummary[UserInstallStateSummaryId].DeviceStates[DeviceInstallStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceInstallStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs index b90e0513216..887d2ab430d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicy.g.cs @@ -207,7 +207,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; @@ -221,7 +221,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MdmWindowsInformationProtectionPolicies[MdmWindowsInformationProtectionPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MdmWindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs index a529bb509d6..37785c24095 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MdmWindowsInformationProtectionPolicies[MdmWindowsInformationProtectionPolicyId].Assignments[TargetedManagedAppPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 3145842dd87..b1d949359d5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MdmWindowsInformationProtectionPolicies[MdmWindowsInformationProtectionPolicyId].ExemptAppLockerFiles[WindowsInformationProtectionAppLockerFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 528de1e39e1..291ca992561 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMdmWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MdmWindowsInformationProtectionPolicies[MdmWindowsInformationProtectionPolicyId].ProtectedAppLockerFiles[WindowsInformationProtectionAppLockerFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileApp.g.cs index 4b5c3aed86b..7c687aeac7e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileApp.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs index 0cccfbe3a35..18c9e303132 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphAndroidLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs index 7eb00591a8f..bdb9c30968d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphAndroidLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs index 4ed15166b49..53ecd61c202 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphAndroidLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs index 2bbe03a7e4a..002a99d65c8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphAndroidLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs index 9c05608e6a2..027c45119fc 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsAndroidStoreAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphAndroidStoreApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs index 309c36bc778..f1652a906a4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs index 2dee9cbd372..63aa808125f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs index 349d0ad79bf..bf8bcb18dc3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs index fc07ccf3550..7349f1e9315 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs index 5717acc293e..960325696e0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosStoreAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosStoreApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs index 43d3ebce74b..5fa106a6862 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsIosVppAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphIosVppApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs index 18f1900f1a5..95b65f5e77c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSDmgApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs index afb543c93ee..08bef8610a4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSDmgApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs index 0ad5ba21c84..25e4b80a8b8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSDmgApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs index 25730850dcd..26482e675fe 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSDmgAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSDmgApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs index a7bebfa5a57..c3eec77b9d4 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs index 69830dcb384..58d3980900c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs index e73c96c71d1..f36da16daf8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs index 1b4fb12090e..cd758999072 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMacOSLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMacOSLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs index 0164d3995a4..0a1e4467197 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedAndroidLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs index c5f4177e9c6..e5a7bdc9398 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedAndroidLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs index decdc8981a3..f667ebce95b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedAndroidLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs index 8d67ba3379d..6c5001f8e7b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedAndroidLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedAndroidLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs index 9f080cc158e..f1b1db95e1c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedIOSLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs index dfb3c84b1c5..31a6b6965b9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedIOSLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs index 96094dd71b1..40ff4c08af3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedIOSLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs index 60650ccbeb4..df8e395cbf0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedIOSLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedIOSLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs index 69a857a3f71..c2bfdc96c9a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedMobileLobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs index 028d5de8b39..a7225fabbda 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedMobileLobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs index 27c16085d07..c7b46a7b964 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedMobileLobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs index a3542fc8988..88f9bc382e9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsManagedMobileLobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphManagedMobileLobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs index b80762e6c91..5e3dbf45a5a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsMicrosoftStoreForBusinessAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphMicrosoftStoreForBusinessApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs index e15626ad4a2..fffd73bb801 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWin32LobApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs index 771431b9728..e324c48c965 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWin32LobApp.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs index 98592da8019..1749ae8493b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWin32LobApp.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs index d1805fd6086..b7941450a0d 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWin32LobAppContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWin32LobApp.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs index 3ce87fda672..2268331d5a7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsAppX.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs index 7a8ab2cc40e..f5016a5349b 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsAppX.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs index 6e340c0b8c6..a11bcd6a2c3 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsAppX.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs index a7d5ad73962..12b77d99933 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsAppXContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsAppX.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs index d70cda00d8d..27e78fb1858 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsMobileMSI.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs index 6d194856d57..31d1ae9307a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsMobileMSI.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs index b3112de6516..1ae8f4e3c56 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsMobileMSI.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs index a1060f66f8f..d00cd92d733 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsMobileMSIContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsMobileMSI.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs index 7677775aa9f..6ec2acc3579 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsUniversalAppX.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs index c41a6825114..d8cdedc8129 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXCommittedContainedApp.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsUniversalAppX.CommittedContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs index 5c2b7f237cd..33091589ded 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersion.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsUniversalAppX.ContentVersions[MobileAppContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs index 71f04ec1dce..79557abdfeb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionContainedApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsUniversalAppX.ContentVersions[MobileAppContentId].ContainedApps[MobileContainedAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileContainedAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs index 1e2bf88ab17..f712e810519 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsUniversalAppXContentVersionFile.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsUniversalAppX.ContentVersions[MobileAppContentId].Files[MobileAppContentFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppContentFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs index 344b43403de..cce732127d5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAsWindowsWebAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].GraphWindowsWebApp.Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAssignment.g.cs index 55327fcbcaa..2ae66649f49 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppAssignment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileApps[MobileAppId].Assignments[MobileAppAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppCategory.g.cs index c7268ebd11d..93b6d1bd069 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppCategory.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppCategories[MobileAppCategoryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppCategoryId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfiguration.g.cs index c179b28eb93..7b0569fc3a1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfiguration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs index 51d20e801fa..4f5b5189292 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].Assignments[ManagedDeviceMobileAppConfigurationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs index a202b837822..d7bed536698 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatus.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationDeviceStatusId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].DeviceStatuses[ManagedDeviceMobileAppConfigurationDeviceStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationDeviceStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs index 47019a85ccf..27436c3b763 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationDeviceStatusSummary.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].DeviceStatusSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs index 1194b00d61b..9ffcd345945 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatus.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationUserStatusId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].UserStatuses[ManagedDeviceMobileAppConfigurationUserStatusId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationUserStatusId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs index 855f647274b..0c4e20d84d8 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMobileAppConfigurationUserStatusSummary.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppConfigurations[ManagedDeviceMobileAppConfigurationId].UserStatusSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceMobileAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMultipleMobileAppRelationship.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMultipleMobileAppRelationship.g.cs index 03c5a9ed0ea..99c8aac7f2c 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMultipleMobileAppRelationship.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementMultipleMobileAppRelationship.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppRelationshipId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.MobileAppRelationships[MobileAppRelationshipId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MobileAppRelationshipId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs index 8cfcda5f265..2d7c1f2c947 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfiguration.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.TargetedManagedAppConfigurations[TargetedManagedAppConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs index c0077c0f1dc..1c1e4f82c60 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationApp.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.TargetedManagedAppConfigurations[TargetedManagedAppConfigurationId].Apps[ManagedMobileAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedMobileAppId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs index b85b5d1423d..ae254bb0afd 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.TargetedManagedAppConfigurations[TargetedManagedAppConfigurationId].Assignments[TargetedManagedAppPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs index 919a42a37c7..b0b55bb1ab5 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementTargetedManagedAppConfigurationDeploymentSummary.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.TargetedManagedAppConfigurations[TargetedManagedAppConfigurationId].DeploymentSummary.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppConfigurationId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementVppToken.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementVppToken.g.cs index 42d751db52f..38423438c34 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementVppToken.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementVppToken.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VppTokenId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.VppTokens[VppTokenId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VppTokenId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs index 376a15324bb..a474987a4d0 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicy.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; @@ -293,7 +293,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.WindowsInformationProtectionPolicies[WindowsInformationProtectionPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionPolicyId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs index aea6d439b47..0f0aaef7d2a 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyAssignment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.WindowsInformationProtectionPolicies[WindowsInformationProtectionPolicyId].Assignments[TargetedManagedAppPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedManagedAppPolicyAssignmentId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs index 788f95725d6..5cc03c20e76 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyExemptAppLockerFile.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.WindowsInformationProtectionPolicies[WindowsInformationProtectionPolicyId].ExemptAppLockerFiles[WindowsInformationProtectionAppLockerFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs index 5d4ea86fc9a..ad62965580e 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceAppManagementWindowsInformationProtectionPolicyProtectedAppLockerFile.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.DeviceAppManagement.WindowsInformationProtectionPolicies[WindowsInformationProtectionPolicyId].ProtectedAppLockerFiles[WindowsInformationProtectionAppLockerFileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsInformationProtectionAppLockerFileId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserDeviceManagementTroubleshootingEvent.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserDeviceManagementTroubleshootingEvent.g.cs index 85349d1b2ab..f610c68f816 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserDeviceManagementTroubleshootingEvent.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserDeviceManagementTroubleshootingEvent.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].DeviceManagementTroubleshootingEvents[DeviceManagementTroubleshootingEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementTroubleshootingEventId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDevice.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDevice.g.cs index 59e350a62f3..8205f18a6a7 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDevice.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDevice.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCategory.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCategory.g.cs index 96c5236b10e..7a05539e6a1 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCategory.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCategory.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].DeviceCategory.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCompliancePolicyState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCompliancePolicyState.g.cs index c7097e59872..bebfe733af9 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCompliancePolicyState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceCompliancePolicyState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].DeviceCompliancePolicyStates[DeviceCompliancePolicyStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceCompliancePolicyStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceConfigurationState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceConfigurationState.g.cs index 57f5b26e0b5..08a59524a73 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceConfigurationState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceConfigurationState.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].DeviceConfigurationStates[DeviceConfigurationStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceConfigurationStateId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceLogCollectionResponse.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceLogCollectionResponse.g.cs index 2dd9fd05ab6..4755b1fc392 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceLogCollectionResponse.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceLogCollectionResponse.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].LogCollectionRequests[DeviceLogCollectionResponseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLogCollectionResponseId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsDeviceAccount.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsDeviceAccount.g.cs index 673b0f72b8f..b89939c458f 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsDeviceAccount.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsDeviceAccount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionState.g.cs index 3879d5843b6..a2bc0030f30 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionState.g.cs @@ -173,7 +173,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; @@ -187,7 +187,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].WindowsProtectionState.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManagedDeviceId); return; diff --git a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs index 2827d005dc9..d14748d57cb 100644 --- a/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs +++ b/src/Devices.CorporateManagement/wrapper/v1.0/Cmdlets/UpdateMgUserManagedDeviceWindowsProtectionStateDetectedMalwareState.g.cs @@ -109,7 +109,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; @@ -123,7 +123,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ManagedDevices[ManagedDeviceId].WindowsProtectionState.DetectedMalwareState[WindowsDeviceMalwareStateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsDeviceMalwareStateId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Client/kiota-lock.json b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Client/kiota-lock.json index 5d407177b58..678e91d4a7e 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "E3B3D97D456EBAC5725EE95DBF50DB0E1FB0F19274C39F30A6C0B7E7C4D1A4703280FC53202C9698BF988FDC4A3FB3AEC4CC5AA9826B314B1AFC46675C896487", + "descriptionHash": "C3DF6F2855FE67E4322E9B2D7FCF6DEDF51A163BC81D78A3C53802E8E4723DAE40ADB84CC939DED7A14EB5556072375839896369447F7EF80522DBB715EFBD1A", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Devices.ServiceAnnouncement.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentArchive.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentArchive.g.cs deleted file mode 100644 index 662b3913d92..00000000000 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentArchive.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement -{ - [GraphRoute("GET", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachmentsArchive")] - [Cmdlet(VerbsCommon.Get, "MgAdminServiceAnnouncementMessageAttachmentArchive")] - [OutputType(typeof(byte[]))] - public class GetMgAdminServiceAnnouncementMessageAttachmentArchiveCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ServiceUpdateMessageId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].AttachmentsArchive.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ServiceUpdateMessageId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs deleted file mode 100644 index 49b86de30ba..00000000000 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement -{ - [GraphRoute("GET", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachments/{serviceAnnouncementAttachment-id}/content")] - [Cmdlet(VerbsCommon.Get, "MgAdminServiceAnnouncementMessageAttachmentContent")] - [OutputType(typeof(byte[]))] - public class GetMgAdminServiceAnnouncementMessageAttachmentContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ServiceUpdateMessageId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string ServiceAnnouncementAttachmentId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ServiceAnnouncementAttachmentId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview.g.cs index 8979c259269..45b7ee4cffd 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceHealthId : null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewCount.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewCount.g.cs index 9b839fb847f..10befd0a33c 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewCount.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue.g.cs index 2a30dcf32e4..df7e0760ef0 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceHealthIssueId : ServiceHealthId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssueCount.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssueCount.g.cs index a5cde34519c..d7b14a70c81 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssueCount.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssueCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_Get.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_Get.g.cs index 08df90dd103..28720ae1aa5 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_Get.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthIssueId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_List.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_List.g.cs index 3c677e1087d..6c820c06fcc 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_List.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverviewIssue_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_Get.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_Get.g.cs index 938ffdf41bd..65ca366af40 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_Get.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_List.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_List.g.cs index 8e36035be4f..7029c022f8e 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_List.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementHealthOverview_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue.g.cs index ea01b139ee9..18cb826dbd2 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceHealthIssueId : null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssueCount.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssueCount.g.cs index 4c3dcee6d05..3f3386e7b9e 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssueCount.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssueCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_Get.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_Get.g.cs index 4e0fdc07d7c..1e582b6f694 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_Get.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthIssueId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_List.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_List.g.cs index 56dc5a303e3..9d2da305724 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_List.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementIssue_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage.g.cs index 99d23610697..880d6ffee7e 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceUpdateMessageId : null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment.g.cs index 1dead86458b..5fd50a31eac 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceAnnouncementAttachmentId : ServiceUpdateMessageId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentArchive.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentArchive.g.cs new file mode 100644 index 00000000000..d35e3a6aec6 --- /dev/null +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentArchive.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement +{ + [GraphRoute("GET", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachmentsArchive")] + [Cmdlet(VerbsCommon.Get, "MgServiceAnnouncementMessageAttachmentArchive")] + [OutputType(typeof(byte[]))] + public class GetMgServiceAnnouncementMessageAttachmentArchiveCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string ServiceUpdateMessageId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].AttachmentsArchive.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ServiceUpdateMessageId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentContent.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentContent.g.cs new file mode 100644 index 00000000000..484931fb822 --- /dev/null +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentContent.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement +{ + [GraphRoute("GET", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachments/{serviceAnnouncementAttachment-id}/content")] + [Cmdlet(VerbsCommon.Get, "MgServiceAnnouncementMessageAttachmentContent")] + [OutputType(typeof(byte[]))] + public class GetMgServiceAnnouncementMessageAttachmentContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string ServiceUpdateMessageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string ServiceAnnouncementAttachmentId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ServiceAnnouncementAttachmentId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentCount.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentCount.g.cs index 45e41b8ed68..66eac62d95b 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentCount.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceUpdateMessageId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_Get.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_Get.g.cs index 848520b8d61..41f3da06193 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_Get.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceAnnouncementAttachmentId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_List.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_List.g.cs index 1e45985f735..dc58202221d 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_List.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageAttachment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceUpdateMessageId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageCount.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageCount.g.cs index bc7a4f43318..2d4c65e77ed 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageCount.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_Get.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_Get.g.cs index 88a4aca7e9e..537b4a2e205 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_Get.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceUpdateMessageId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_List.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_List.g.cs index 29161b94524..0064be98145 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_List.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/GetMgServiceAnnouncementMessage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgArchiveServiceAnnouncementMessage.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgArchiveServiceAnnouncementMessage.g.cs index 94a9966ef23..249a0e55412 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgArchiveServiceAnnouncementMessage.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgArchiveServiceAnnouncementMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgFavoriteServiceAnnouncementMessage.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgFavoriteServiceAnnouncementMessage.g.cs index b6d01292997..401150e7b4a 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgFavoriteServiceAnnouncementMessage.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgFavoriteServiceAnnouncementMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageRead.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageRead.g.cs index acb5bffe3b4..8677829fa2e 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageRead.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageRead.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageUnread.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageUnread.g.cs index 46d48941913..8b7136959bd 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageUnread.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgMarkServiceAnnouncementMessageUnread.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementHealthOverviewIssueIncident.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementHealthOverviewIssueIncident.g.cs index 677293a8e7e..f5c02a221da 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementHealthOverviewIssueIncident.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementHealthOverviewIssueIncident.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthIssueId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementIssueIncident.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementIssueIncident.g.cs index 3a81e3adfe8..dff4549765a 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementIssueIncident.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgReportServiceAnnouncementIssueIncident.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceHealthIssueId); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveServiceAnnouncementMessage.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveServiceAnnouncementMessage.g.cs index ed6fdf4178b..ff512d39246 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveServiceAnnouncementMessage.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveServiceAnnouncementMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnfavoriteServiceAnnouncementMessage.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnfavoriteServiceAnnouncementMessage.g.cs index 2dcf3a08e1d..bf785f4fc66 100644 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnfavoriteServiceAnnouncementMessage.g.cs +++ b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/InvokeMgUnfavoriteServiceAnnouncementMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/RemoveMgAdminServiceAnnouncementMessageAttachmentContent.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/RemoveMgAdminServiceAnnouncementMessageAttachmentContent.g.cs deleted file mode 100644 index d7bf5416c86..00000000000 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/RemoveMgAdminServiceAnnouncementMessageAttachmentContent.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement -{ - [GraphRoute("DELETE", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachments/{serviceAnnouncementAttachment-id}/content")] - [Cmdlet(VerbsCommon.Remove, "MgAdminServiceAnnouncementMessageAttachmentContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgAdminServiceAnnouncementMessageAttachmentContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ServiceUpdateMessageId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string ServiceAnnouncementAttachmentId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ServiceAnnouncementAttachmentId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ServiceAnnouncementAttachmentId); - return; - } - } - } -} diff --git a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/SetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs b/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/SetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs deleted file mode 100644 index e13e16e514a..00000000000 --- a/src/Devices.ServiceAnnouncement/wrapper/v1.0/Cmdlets/SetMgAdminServiceAnnouncementMessageAttachmentContent.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement -{ - [GraphRoute("PUT", "/admin/serviceAnnouncement/messages/{serviceUpdateMessage-id}/attachments/{serviceAnnouncementAttachment-id}/content")] - [Cmdlet(VerbsCommon.Set, "MgAdminServiceAnnouncementMessageAttachmentContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client.Models.ServiceAnnouncementAttachment))] - public class SetMgAdminServiceAnnouncementMessageAttachmentContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string ServiceUpdateMessageId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string ServiceAnnouncementAttachmentId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, - HelpMessage = "Path to the file whose contents are uploaded.")] - public string InFile { get; set; } = string.Empty; - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ServiceAnnouncementAttachmentId, "Set")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Devices.ServiceAnnouncement.Client.Models.ServiceAnnouncementAttachment? result; - try - { - using var content = System.IO.File.OpenRead(InFile); - result = client.Admin.ServiceAnnouncement.Messages[ServiceUpdateMessageId].Attachments[ServiceAnnouncementAttachmentId].Content.PutAsync(content, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ServiceAnnouncementAttachmentId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/DirectoryObjects/wrapper/v1.0/Client/kiota-lock.json b/src/DirectoryObjects/wrapper/v1.0/Client/kiota-lock.json index 298de089908..441bb60bf83 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Client/kiota-lock.json +++ b/src/DirectoryObjects/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "7E62ED3239238B5302FC118C4FC93D48ABE73CFF2C3F6F40DD872A5DCC54E5906D70E4C1E04C88B2229D5FB2AE7254196D55794B48F9222CB42F2ED90E315692", + "descriptionHash": "248DAC6D898344D97A001532B36F055D8CDA92B2D1F10BD52178E89DA142C54E39523DEF3E1797CAFF2FB7BE51BA901962C8B57EA1EC30D38A7814709490936D", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/DirectoryObjects.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberGroup.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberGroup.g.cs index cc77d3fb8c3..59f5d6f6a4d 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberGroup.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberObject.g.cs index 4a7743032b8..693fbc54602 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryObjectMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject.g.cs index f1e7d73b539..66d83103e40 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectAvailableExtensionProperty.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectAvailableExtensionProperty.g.cs index 89b2d2020bb..06aefe7c14e 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectAvailableExtensionProperty.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectAvailableExtensionProperty.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectById.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectById.g.cs index e15199de55a..71ce16d120e 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectById.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectCount.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectCount.g.cs index f741aad78be..0e6db065d1b 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectCount.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectDelta.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectDelta.g.cs index 2623ef569bf..7542b220c24 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectDelta.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberGroup.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberGroup.g.cs index 1e2b453c98f..8b9f26572b0 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberGroup.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberObject.g.cs index dbc70b9b126..831bc174439 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObjectMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_Get.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_Get.g.cs index d384b7ccdd6..6745ad6ca19 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_Get.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_List.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_List.g.cs index eb70876a503..20233c27379 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_List.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/GetMgDirectoryObject_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/NewMgDirectoryObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/NewMgDirectoryObject.g.cs index f55caec9d1d..b3fca506bff 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/NewMgDirectoryObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/NewMgDirectoryObject.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/RemoveMgDirectoryObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/RemoveMgDirectoryObject.g.cs index b6722208451..3b6915e096a 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/RemoveMgDirectoryObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/RemoveMgDirectoryObject.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/TestMgDirectoryObjectProperty.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/TestMgDirectoryObjectProperty.g.cs index 0ef9b71645b..cafaadf7ee4 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/TestMgDirectoryObjectProperty.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/TestMgDirectoryObjectProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/UpdateMgDirectoryObject.g.cs b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/UpdateMgDirectoryObject.g.cs index ae8c45f964d..0d3c1f86578 100644 --- a/src/DirectoryObjects/wrapper/v1.0/Cmdlets/UpdateMgDirectoryObject.g.cs +++ b/src/DirectoryObjects/wrapper/v1.0/Cmdlets/UpdateMgDirectoryObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.DirectoryObjects[DirectoryObjectId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Education/wrapper/v1.0/Client/Models/Chat.cs b/src/Education/wrapper/v1.0/Client/Models/Chat.cs index fb63b43addc..711fe8da8dc 100644 --- a/src/Education/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Education/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Education.Client. #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Education/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Education/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..898c02bb1d9 --- /dev/null +++ b/src/Education/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Education.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Education.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Education.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Education/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Education/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..4ebcd5f496e --- /dev/null +++ b/src/Education/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Education.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Education/wrapper/v1.0/Client/Models/Group.cs b/src/Education/wrapper/v1.0/Client/Models/Group.cs index 78c6f81b868..3426a85aa94 100644 --- a/src/Education/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Education/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Education.Client #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Education.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Education.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Education/wrapper/v1.0/Client/Models/List.cs b/src/Education/wrapper/v1.0/Client/Models/List.cs index 3935d9a63f5..8ea3262c7f0 100644 --- a/src/Education/wrapper/v1.0/Client/Models/List.cs +++ b/src/Education/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Education.Client. #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Education/wrapper/v1.0/Client/Models/ListItem.cs b/src/Education/wrapper/v1.0/Client/Models/ListItem.cs index 87a9c6f9708..9269dc2781b 100644 --- a/src/Education/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Education/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Education.Cli #else public global::Microsoft.Graph.PowerShell.Education.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 9ea33fcac6e..4d76513e70f 100644 --- a/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Educ #nullable restore #else public global::Microsoft.Graph.PowerShell.Education.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Education.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Education.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Educ #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Education.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..b93e929a4ac --- /dev/null +++ b/src/Education/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Education.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Education/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Education/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index dbc933ac105..7c33e656f49 100644 --- a/src/Education/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Education/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Education.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Education.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Education/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Education/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index ede86e9d9f9..beac8605373 100644 --- a/src/Education/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Education/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Education.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Education.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Education.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Education/wrapper/v1.0/Client/Models/User.cs b/src/Education/wrapper/v1.0/Client/Models/User.cs index 181ff70df85..aada5a881f9 100644 --- a/src/Education/wrapper/v1.0/Client/Models/User.cs +++ b/src/Education/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Education.Client. #nullable restore #else public global::Microsoft.Graph.PowerShell.Education.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Education.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Education.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Education.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Education/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Education/wrapper/v1.0/Client/Models/UserActivityType.cs index cd81ad8d345..76ee4aba2af 100644 --- a/src/Education/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Education/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Education/wrapper/v1.0/Client/kiota-lock.json b/src/Education/wrapper/v1.0/Client/kiota-lock.json index a35809ae3be..286bb80631b 100644 --- a/src/Education/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Education/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "EF06CD2C36EE60F6720526966242FEAAF6C388794D0B8FD27993DE4F256004D7B0E42A887D04A1DA071421B538F1BB06E7C2A23855C71916D2D733A6AF2C9B10", + "descriptionHash": "01CC683D93407C647E2567CC979B69C6D415F6185A20506EB248ECC3873A9BF597DECBA2FE6BCE845792AA8C7BF8960FB53E38325C8E214E0CFD132FD78F21DA", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Education.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducation.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducation.g.cs index 393d4869f1e..485a53c8363 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducation.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass.g.cs index 772613d680d..55957654147 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationClassId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment.g.cs index 21ef7d8a640..7710d07de48 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory.g.cs index 1d91ced33ac..4f08d780d20 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationCategoryId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryByRef.g.cs index b588f6f4efe..f5bf100d448 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryByRef.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -120,7 +120,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryCount.g.cs index 1dd93a3bbd6..fa69e6b810e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryDelta.g.cs index 0de925ebc52..d8a4b7803f1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategoryDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_Get.g.cs index c5772fd2fa3..96c84ff88ae 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_List.g.cs index 9a1173272e0..b8ba6fd635c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCount.g.cs index 6fadf085589..42d55b43494 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDefault.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDefault.g.cs index b1b997a2011..5505df94d33 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDefault.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDefault.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDelta.g.cs index eb5482c2889..2cd3d700bc7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingCategory.g.cs index 4c22f980f96..0d80f31c378 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingCategory.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingScheme.g.cs index edcaec957f3..f4358d5778c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentGradingScheme.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource.g.cs index 3d9e0ae9f86..2ee6d8b7787 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceCount.g.cs index 4182ee5c943..eca259f8920 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource.g.cs index 8326c8d4908..bd244f17db4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId1 : EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResourceCount.g.cs index 697b6cafa9e..d3962c82f6d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_Get.g.cs index 777e4ed7538..4abf464f74d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_List.g.cs index 418bc3a7fae..6e11f4eed38 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResourceDependentResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_Get.g.cs index 833b566df08..fdf9e5fed3e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_List.g.cs index a9fdaaebbfc..73e2990a51a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubric.g.cs index 681e79d5dec..1f8c94ae8c4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubric.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubricByRef.g.cs index 4cdb2f4f90e..98a0ef01f73 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentRubricByRef.g.cs @@ -42,7 +42,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSetting.g.cs index bbeb88367f0..84cf659b7c3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingDefaultGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingDefaultGradingScheme.g.cs index 9b2be403281..5a16aaffc0b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingDefaultGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingDefaultGradingScheme.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory.g.cs index 588a275d627..24a26c39e25 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationGradingCategoryId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategoryCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategoryCount.g.cs index 63ea6aebf9e..e1848886934 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategoryCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_Get.g.cs index 2aad3d1bfa0..26995352dbf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_List.g.cs index 0eee0381029..e2f44c1a558 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme.g.cs index 7397568eec5..e69a20f46b4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationGradingSchemeId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingSchemeCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingSchemeCount.g.cs index f40d49b0c13..ffb3884d143 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingSchemeCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingSchemeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_Get.g.cs index ca0490648bb..3229b01fc66 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingSchemeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_List.g.cs index c8ae3ab0f5a..ee85f6caf7a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSettingGradingScheme_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission.g.cs index b28db392534..4492d1e52b2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionCount.g.cs index 05d8506c7ff..2dbf030b8ec 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome.g.cs index 89a07128c2d..3caf5bea9b9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationOutcomeId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcomeCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcomeCount.g.cs index 28d82267486..e9598da9db4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcomeCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcomeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_Get.g.cs index c1784819dd7..1d56472647e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_List.g.cs index 99b39d413d6..127fb57799b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionOutcome_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource.g.cs index f3e642925e0..1db06ea0e42 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceCount.g.cs index 43d2944f711..3e653057d44 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs index 75bd49d97f4..bb76d7d6c6a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResourceCount.g.cs index 2b637d5cb72..f6d1cad2424 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResourceCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_Get.g.cs index 62ef07b34e6..ad68a710b5f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_List.g.cs index 6c32690fae9..76abb825a4f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResourceDependentResource_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_Get.g.cs index f2de03ad773..f7ee283b6af 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_List.g.cs index 7e3a5080563..2dd50080802 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource.g.cs index 59788d6b239..12e8a93f49f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceCount.g.cs index 00d908ea297..7196138a819 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs index c7e8079f8e2..15a33ed026a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs index 777b5a824ca..bb05d32ba16 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs index b0934ed5190..3ce6b37bbce 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs index e7ed4580b45..0b1f03e89e5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_Get.g.cs index 9bd1a1c4527..796a56e1af7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_List.g.cs index 618e09a58ea..a80db6c78f3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmissionSubmittedResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_Get.g.cs index 36a9c1e14a0..82cd5c49529 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_List.g.cs index cf98738d9ad..03ab10cb18c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignmentSubmission_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_Get.g.cs index 21c44acb492..d3e58b05f37 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_List.g.cs index 08c5f7d788f..f098a04f169 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassCount.g.cs index ed3ee516775..10b61ac8293 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassDelta.g.cs index 9948ee92764..0e4a6abb202 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroup.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroup.g.cs index aeb6795e8c2..ad4b3f872b0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroup.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningError.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningError.g.cs index fa852402c76..feff98c2159 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningError.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningErrorCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningErrorCount.g.cs index 6ee128cbadb..c3da71e8b24 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningErrorCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMember.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMember.g.cs index 0828b6e37ff..10a08820b31 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMember.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMember.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberByRef.g.cs index e5e89733a1b..ca1f7018e76 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberCount.g.cs index 3c4288d323d..250c739d1c1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule.g.cs index db549325d47..6bc767d9fdc 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationModuleId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleCount.g.cs index 6cfd3c280bd..b75b43b862e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource.g.cs index 5cbe7e8c2aa..8cf00cc4bc1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationModuleResourceId : EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResourceCount.g.cs index 7d5717c334d..070bc72ba2e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_Get.g.cs index 57e1abb8033..8a40c1990ad 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_List.g.cs index c573d36b012..65114898c1f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModuleResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_Get.g.cs index 93ea2f8c514..1319ae12a7f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_List.g.cs index 1e0e79001f3..c2e65daab42 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassModule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassRecentlyModifiedSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassRecentlyModifiedSubmission.g.cs index 059235ce29b..97709143fe5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassRecentlyModifiedSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassRecentlyModifiedSubmission.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool.g.cs index bf88d59e0cb..f6f48dc9a0a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSchoolId : EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchoolCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchoolCount.g.cs index df15ecc8124..483549116a1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchoolCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchoolCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_Get.g.cs index bba35700a30..d11046327d7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_List.g.cs index afc101bd9a8..7c07672ad1a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassSchool_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacher.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacher.g.cs index 3590e5f6067..6ef058bd3dc 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacher.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacher.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherByRef.g.cs index f5a2539bbe0..9eb13f02d4f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherCount.g.cs index 3806f8a63c0..e9c82d8a039 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClassTeacherCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_Get.g.cs index 313b7c846b7..0c86b21b9d1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_List.g.cs index 3e30e7b2644..ff821fd95a6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationClass_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMe.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMe.g.cs index c98cab78ef0..d4346d4cf16 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMe.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMe.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment.g.cs index 7273914241a..45d97e6ec16 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategory.g.cs index 070a2514531..9150cc9e5ef 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategory.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryByRef.g.cs index 05b3614fd74..de7b5a60f81 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryCount.g.cs index 5e8f1c48fb3..3a912186c4c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryDelta.g.cs index 42d3a07b852..f0d9d225d11 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCategoryDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCount.g.cs index 4326b104c75..f2f4a2be4ed 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentDelta.g.cs index a00eb15f185..544e1884dba 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingCategory.g.cs index b30e0349ef0..8cdc8b629f6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingCategory.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingScheme.g.cs index 7b043f76cad..caaf6471a96 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentGradingScheme.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource.g.cs index 826009c634a..11d08d0ff4e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceCount.g.cs index 85ff5e43511..b90d438e32a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource.g.cs index a3c0399e9bd..b037836081d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId1 : EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResourceCount.g.cs index 1ecf1dda5ac..97b7b9bde31 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_Get.g.cs index 95f9fe820be..8d10fd5d2d4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_List.g.cs index f95b0f4fd08..896a1c29ff9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResourceDependentResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_Get.g.cs index 86ab9f1cd21..f4c3668c404 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_List.g.cs index dd27885511c..068c9d610fb 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubric.g.cs index 301e054614d..d0c561caff4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubric.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubricByRef.g.cs index 0ed4627229d..e04d253f392 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentRubricByRef.g.cs @@ -40,7 +40,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission.g.cs index fac660ec17a..f72d4813068 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionCount.g.cs index 7c8a95987a0..289bf360d69 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome.g.cs index 53a3ab7865f..7eca5408376 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationOutcomeId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcomeCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcomeCount.g.cs index dfe4ab5a3b0..60ce3cef79b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcomeCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcomeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_Get.g.cs index ed183b8613b..4be5e3534f5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_List.g.cs index 45f69902956..5b5d168e395 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionOutcome_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource.g.cs index 9fe28725994..1663d72da76 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceCount.g.cs index 3e879b1a248..7ad77f9c0cd 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs index 693d2577fc4..430bde91ad5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResourceCount.g.cs index e3c96adf40f..9aa1fabf81b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_Get.g.cs index 8828fbfe77d..64125ce0a53 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_List.g.cs index c4865307960..f17f4ad0f71 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResourceDependentResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_Get.g.cs index be51421b592..6f1e6d7ad66 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_List.g.cs index 828871a7d81..24a9354f5ad 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource.g.cs index 8a35d0f0099..c231b7c80d6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceCount.g.cs index aba8748ae69..e068d66c0b5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs index f9f078c24cb..24be1074554 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs index ea6e80515be..07faf20ab52 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs index 321ad82377c..236d1bbedc7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs index 582e8c204d5..0254855ad48 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_Get.g.cs index c11af259dd5..f92e4a329d7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_List.g.cs index f9c1f3111fb..22c152fe8a3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmissionSubmittedResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_Get.g.cs index 8e416f76f70..d7d962170ac 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_List.g.cs index 2c1f38f3698..38808986870 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignmentSubmission_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_Get.g.cs index 6f38728fb05..a797082e497 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_List.g.cs index d3fe73a5db4..85a578e4828 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass.g.cs index 45532e858fc..3576f5a8abc 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationClassId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClassCount.g.cs index 4aed52d9ede..495d817dfec 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClassCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_Get.g.cs index 910886f20ee..c0b855c241a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_List.g.cs index bb9b0d8fe66..a834be4c1de 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeClass_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric.g.cs index abeea786ceb..d617be0739d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationRubricId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubricCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubricCount.g.cs index 2a5479f719a..41b093d4105 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubricCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubricCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_Get.g.cs index 05be82b04a8..529bc5aa9e8 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_List.g.cs index e16c19226eb..dc052017e0c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeRubric_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool.g.cs index f1b43a71b10..3d65a2c7c0e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSchoolId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchoolCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchoolCount.g.cs index 7c0ab921b12..07c6ce7b9e2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchoolCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchoolCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_Get.g.cs index 9392490309f..9f5dd35b1bf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_List.g.cs index f6bf8b89fb2..4e9d727d5f3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeSchool_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass.g.cs index 04fbf115c84..30045b7ef4e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationClassId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClassCount.g.cs index 6eb162e853e..42ffffa01d2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClassCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_Get.g.cs index 4c73ad5280f..b2b988555ef 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_List.g.cs index 61e9e6c7736..e6901f9cf95 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeTaughtClass_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUser.g.cs index e53d61e6912..5034867ada1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUser.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserMailboxSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserMailboxSetting.g.cs index 744b8be9325..c3e32296865 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserMailboxSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserMailboxSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningError.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningError.g.cs index e945b379fae..be89e6fac61 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningError.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningError.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningErrorCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningErrorCount.g.cs index 647a5987229..5c79a8e1a17 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningErrorCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationMeUserServiceProvisioningErrorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReport.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReport.g.cs index 84e3b78a4dd..2b8b600abdb 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReport.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReport.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission.g.cs index f913fe37d8b..f4a96480f94 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ReadingAssignmentSubmissionId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmissionCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmissionCount.g.cs index f7d6aa6e530..1e1ba2f0cd4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmissionCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmissionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_Get.g.cs index efc0cdee981..e33ec5c2d78 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_List.g.cs index aded4d74b75..579c3ca8b5e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingAssignmentSubmission_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage.g.cs index 4096a7d7932..aa404b3673a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ReadingCoachPassageId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassageCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassageCount.g.cs index 83d670414a5..1382ecefae3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassageCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_Get.g.cs index 836507a8cb7..884926f2ba8 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingCoachPassageId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_List.g.cs index efbd0bd6f9b..009c03efb72 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReadingCoachPassage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck.g.cs index 529388112f5..9fe30141903 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ReflectCheckInResponseId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheckInResponseCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheckInResponseCount.g.cs index 4d8bd5a7d32..c1f07b21bd4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheckInResponseCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheckInResponseCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_Get.g.cs index 492a12c40aa..0a13257b567 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReflectCheckInResponseId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_List.g.cs index 07766e52334..437fde5af59 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportReflectCheck_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission.g.cs index b517f4c4b3b..f0fecff2161 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SpeakerAssignmentSubmissionId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmissionCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmissionCount.g.cs index f2963861210..34020eaf504 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmissionCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmissionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_Get.g.cs index 9ff1d0d5840..9615caa452c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SpeakerAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_List.g.cs index e69be9c50f3..38e73d88bc2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationReportSpeakerAssignmentSubmission_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool.g.cs index 623b48c62cb..2cd8648282c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSchoolId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolAdministrativeUnit.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolAdministrativeUnit.g.cs index 2cd91936fee..3a992c20490 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolAdministrativeUnit.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolAdministrativeUnit.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClass.g.cs index 000bb7c0722..9a69c3049e7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClass.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassByRef.g.cs index f572e19cad3..e5287de6395 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassCount.g.cs index 999199a9a95..050babe4256 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolClassCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolCount.g.cs index 15903fb0fc5..e8e529a221d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolDelta.g.cs index b28781fce14..ae3db1caf90 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUser.g.cs index 1c2ead19809..8385d30610c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUser.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserByRef.g.cs index 984e64ae762..1885d274573 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserCount.g.cs index 58c03ea4b36..f52a01a8314 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchoolUserCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_Get.g.cs index 9be80d68e03..5c474a0a06f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_List.g.cs index 8c197912030..f2bfa76d987 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationSchool_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser.g.cs index e47250696bb..ba34e9e82ee 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationUserId : null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment.g.cs index 50f7a76387f..198b85db029 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentId : EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategory.g.cs index 5f0a7761511..c8ebf72c760 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategory.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryByRef.g.cs index 5e2f912365a..ffb93f514ad 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryByRef.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -120,7 +120,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryCount.g.cs index f4794de48a1..5e5bdf8afbd 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryDelta.g.cs index bb2c0b7f0ea..f2392973127 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCategoryDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCount.g.cs index 7410d81ecbb..6cf1f2bd8a6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentDelta.g.cs index 4313be75a43..2022074de5c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingCategory.g.cs index ff49144b0d7..0036f1748cd 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingCategory.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingScheme.g.cs index 82d8e52a4a1..501fb631ce6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentGradingScheme.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource.g.cs index 4eb42496b91..ca5168963a5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceCount.g.cs index f4b7c8e8e03..9fd25273e52 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource.g.cs index aacc3d61b43..61e775ab553 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationAssignmentResourceId1 : EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResourceCount.g.cs index 0e3088e3f8d..2963e54a74f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_Get.g.cs index 533e59d5c7e..3b3357eff88 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_List.g.cs index 49028645533..c033707eb35 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResourceDependentResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_Get.g.cs index ea714e3aad0..93562e6fb13 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_List.g.cs index 930a09467d7..ed6c3205625 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubric.g.cs index a635d3443b3..9fb7aa7f453 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubric.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubricByRef.g.cs index 0aacc785b23..7ee2b4e9f68 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentRubricByRef.g.cs @@ -42,7 +42,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission.g.cs index 18d0dfb68ad..4f7a0b9e00d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionId : EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionCount.g.cs index 701cba71c19..0d8e7cbfed5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome.g.cs index d3517c28789..0b3002da4e0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationOutcomeId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcomeCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcomeCount.g.cs index 825f927db13..b8cc033a310 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcomeCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcomeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_Get.g.cs index 33200bb15a8..6bcb5f5e194 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_List.g.cs index 21b82ff3505..4934b826bde 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionOutcome_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource.g.cs index f0436bb379f..874a554fdb0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceCount.g.cs index b217cabf6df..ccfaf691fa5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs index 41fdb601d2d..e42a0e99177 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResourceCount.g.cs index bbb26ae5ce0..1e28a6432f0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResourceCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_Get.g.cs index 5a47e8ad92e..bb2140baa64 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_List.g.cs index 11d72f35b31..b81ac662ad7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResourceDependentResource_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_Get.g.cs index 485288ae66a..82bc6ab7447 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_List.g.cs index 415ea1a76a2..a07b894a70e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource.g.cs index 9c3f7f0aefd..819ef59b416 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId : EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceCount.g.cs index 6ae96167768..4508296eb16 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs index ef8d82d479f..3096018e60a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSubmissionResourceId1 : EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs index 1f2c7678ef9..20421cd8d05 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResourceCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs index 7494d874b93..eca61208736 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs index 1c8895a3f37..900d157590e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_Get.g.cs index c6e5b65f1f4..86c25e837d0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_List.g.cs index 72147443f12..2ba4bee6420 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmissionSubmittedResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_Get.g.cs index 2d7b26316b3..1409c57d5bc 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_List.g.cs index 645f525950c..4f6c4fbdc96 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignmentSubmission_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_Get.g.cs index 64b1002fcbe..bd97c4f3430 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_List.g.cs index 162ab17bd8e..bdad7891305 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass.g.cs index 9c9e644d391..2480faf7c40 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationClassId : EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClassCount.g.cs index 2f7df92e251..a7ad219f0a7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClassCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_Get.g.cs index 194e8446746..3b3aa70f5b3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_List.g.cs index d27a410d563..f758536c5a0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserClass_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserCount.g.cs index 7341a8003e4..e827dea17ea 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserDelta.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserDelta.g.cs index 102daca422b..6ad564a6958 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserDelta.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserMailboxSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserMailboxSetting.g.cs index 41b94795a37..7ed33cd5cae 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserMailboxSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric.g.cs index f88cc0e067a..f955e1abcfa 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationRubricId : EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubricCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubricCount.g.cs index 9a191c405c3..20e59763637 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubricCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubricCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_Get.g.cs index adbcc9727d4..353f2372018 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_List.g.cs index cd7de63e45e..cc1b7f2682b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserRubric_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool.g.cs index 596805be3f0..2694c9dc9f7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationSchoolId : EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchoolCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchoolCount.g.cs index 06e5b1bb213..c25dcb9f04a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchoolCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchoolCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_Get.g.cs index 140b5418972..5fb275dd18e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_List.g.cs index 2bbabb2ee5f..23cfed62678 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserSchool_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningError.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningError.g.cs index 1efbf68a909..bea804120a5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningError.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningErrorCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningErrorCount.g.cs index 6e73bd21bb4..f67e8df9e44 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningErrorCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass.g.cs index 45f0e759859..216ec9c3cef 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EducationClassId : EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClassCount.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClassCount.g.cs index e81868b5cc9..97f33c20b84 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClassCount.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClassCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_Get.g.cs index 2f7456fdb52..8ec3058677c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_List.g.cs index b79c0209b83..2a673e03a47 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUserTaughtClass_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_Get.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_Get.g.cs index 52c38541d49..d9145074354 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_Get.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_List.g.cs b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_List.g.cs index 9514ab80b52..dbb02f06e94 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_List.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/GetMgEducationUser_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationClassAssignment.g.cs index 56af41f80de..46a60c94075 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationClassAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationMeAssignment.g.cs index f9f3e4b109a..e6a1f3ad836 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationMeAssignment.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationUserAssignment.g.cs index 2d8756e719e..9148731a71c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InitializeMgEducationUserAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationClassAssignment.g.cs index 8903b9d8eca..60213b10d98 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationClassAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationMeAssignment.g.cs index 350557575ee..4414bb14545 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationMeAssignment.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationUserAssignment.g.cs index 5f3ceede8ed..f234a61aaea 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgDeactivateEducationUserAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationClassAssignmentSubmission.g.cs index 0fea03373ff..2e0b8cf1abe 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationClassAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationMeAssignmentSubmission.g.cs index 0b15e4adb88..c34a24845c0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationMeAssignmentSubmission.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationUserAssignmentSubmission.g.cs index aa6cac80835..08e43b19bd0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgExcuseEducationUserAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgPinEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgPinEducationClassModule.g.cs index 94142b79def..76d00925e3b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgPinEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgPinEducationClassModule.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationClassAssignmentSubmission.g.cs index 58af15bf276..821840ded46 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationClassAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationMeAssignmentSubmission.g.cs index f679e7e8f83..fcdf11b0ec9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationMeAssignmentSubmission.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationUserAssignmentSubmission.g.cs index 1db91b2e286..0bccf5b0c10 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReassignEducationUserAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationClassAssignmentSubmission.g.cs index 480bddd1d07..7abaaf29ebf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationClassAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationMeAssignmentSubmission.g.cs index d2ae2e80192..e3ccdb159c6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationMeAssignmentSubmission.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationUserAssignmentSubmission.g.cs index 1a8e7e45021..8398c82788b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgReturnEducationUserAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnpinEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnpinEducationClassModule.g.cs index c6eeb4cfea7..10016751e36 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnpinEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnpinEducationClassModule.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationClassAssignmentSubmission.g.cs index 49c1b369e20..fb16897cf16 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationClassAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationMeAssignmentSubmission.g.cs index f63db709dc3..e4ff8806f59 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationMeAssignmentSubmission.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationUserAssignmentSubmission.g.cs index 04f24d00e9d..b30a92e9f9a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/InvokeMgUnsubmitEducationUserAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClass.g.cs index 0f5a6419107..60849a3a8ee 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClass.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignment.g.cs index 929123de2e2..eb1737631d4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignment.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategory.g.cs index 0f190f0effc..6141f4edc1a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategory.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategoryByRef.g.cs index 432b17f4452..94f14d98c7a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentCategoryByRef.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResource.g.cs index f39dca7f594..7b9d7064656 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResourceDependentResource.g.cs index f88f888c046..346046905d6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentResourceDependentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingCategory.g.cs index f89e2d6a0d6..25bc761ae55 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingCategory.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingScheme.g.cs index 74ae62507cc..c92302a4b8e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSettingGradingScheme.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmission.g.cs index 95dc9596a13..51616256af3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmission.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionOutcome.g.cs index 0c39937d9a1..54912a5d074 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionOutcome.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResource.g.cs index 824e75a9f8d..a4e4de9672c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs index f1a7155f17a..a6c9241ab5f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResource.g.cs index 09e0c79c99b..6b54c69bf03 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 69343101c60..5d57e6e6195 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassMemberByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassMemberByRef.g.cs index 4d17cff668d..fc49458593c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassMemberByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassMemberByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModule.g.cs index 0aa645448a6..f3da26f81a9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModule.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModuleResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModuleResource.g.cs index ec0937cba06..c9a16bcf13e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModuleResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassModuleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassTeacherByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassTeacherByRef.g.cs index 60207a37b74..876a79a2e7a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassTeacherByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationClassTeacherByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignment.g.cs index ce8981c492c..7bf728726ee 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignment.g.cs @@ -128,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategory.g.cs index 836133f1ef5..17a5f84d0a7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategory.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategoryByRef.g.cs index 9c1440f1887..c1760c7737b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentCategoryByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResource.g.cs index 9499b41157c..eb3239e7643 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResourceDependentResource.g.cs index fa29aab9f90..966fc06eeb2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentResourceDependentResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmission.g.cs index cf60c3c1551..60a2e5ee76b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmission.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionOutcome.g.cs index 26e9b8b5c68..06c4033bc8e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionOutcome.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResource.g.cs index 2dd6f5f3fab..0f0cc374d92 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs index e0f661a1585..ec3b8d2686b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResource.g.cs index 2ab22b8316f..9a893859885 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs index eaa73aab510..1357c116535 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeRubric.g.cs index 5a3170bb96b..515b8f42ac3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationMeRubric.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingAssignmentSubmission.g.cs index 7a195993185..0f0249d50cf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingAssignmentSubmission.g.cs @@ -170,7 +170,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingCoachPassage.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingCoachPassage.g.cs index f66558d4293..c895c894f3e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingCoachPassage.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReadingCoachPassage.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReflectCheck.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReflectCheck.g.cs index cacbcf609d4..094136574ae 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReflectCheck.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportReflectCheck.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportSpeakerAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportSpeakerAssignmentSubmission.g.cs index a930f2c1d7e..7f538ee8407 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportSpeakerAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationReportSpeakerAssignmentSubmission.g.cs @@ -160,7 +160,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchool.g.cs index 83ffa4a7611..6172d366cc6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchool.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolClassByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolClassByRef.g.cs index 70cb37725d7..9b493757f89 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolClassByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolClassByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolUserByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolUserByRef.g.cs index 4dc89dc8017..db1eb1a02d9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolUserByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationSchoolUserByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUser.g.cs index 08242306bc1..02045abcbd3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUser.g.cs @@ -236,7 +236,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignment.g.cs index c1f34d8f6c2..f40d037e53e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignment.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategory.g.cs index 9fc36256323..3a5c17bb936 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategory.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategoryByRef.g.cs index 63d4637515d..51e96d1c1d7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentCategoryByRef.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResource.g.cs index a96bc028af5..146970a0113 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResourceDependentResource.g.cs index 9049b5c2034..84f184b2223 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentResourceDependentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmission.g.cs index 3571e81a27f..7df716d0e09 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmission.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionOutcome.g.cs index 69b59af23f2..281a229e7f5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionOutcome.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResource.g.cs index 1e3000fce50..3dc77170777 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs index 4b0e6d3c176..f41e30a0349 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResource.g.cs index 6cb5bf52b65..4738ffd6e36 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 375ef4a5295..ce51f89c68c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserRubric.g.cs index b22b4d12038..99ad2ff215d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/NewMgEducationUserRubric.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassAssignment.g.cs index eb8bf731a0f..50d14616202 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassModule.g.cs index 9d7fc4862ac..c551f57d360 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationClassModule.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationMeAssignment.g.cs index 9074495cfd8..f69c88722b0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationMeAssignment.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationUserAssignment.g.cs index 2c10677046c..24eb3693440 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/PublishMgEducationUserAssignment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClass.g.cs index 38aef0dbdc5..1f9f115dbb3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClass.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignment.g.cs index 812cd60f37e..c10bf1d00f9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategory.g.cs index 6928e579d00..ebf3b47b006 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategoryEducationCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategoryEducationCategoryByRef.g.cs index be74e0c1d4d..52787c1fc83 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategoryEducationCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentCategoryEducationCategoryByRef.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentDefault.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentDefault.g.cs index 071bb272056..c916ae39d38 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentDefault.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentDefault.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResource.g.cs index fd419b0c062..c89ed2485fb 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResourceDependentResource.g.cs index 63ed5221fea..ca7da3491ed 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentResourceDependentResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubric.g.cs index d556f775fa4..665a122cfda 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubric.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubricByRef.g.cs index b50369be16f..945350c1a9e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentRubricByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSetting.g.cs index bc86658a3a5..252af0db7fd 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSetting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingCategory.g.cs index 7a8caadd611..d36ab3048e0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingCategory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingScheme.g.cs index 358ca2855b3..f4308b0f0a0 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSettingGradingScheme.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingSchemeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmission.g.cs index a55c2f4c206..86db3140bbc 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmission.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionOutcome.g.cs index 29c543c8c8f..a0100d5d93a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionOutcome.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResource.g.cs index 10a0c3b7db5..b166080ae5c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs index ea796cabdf8..7dab6a35fde 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResource.g.cs index 9d027b90d7d..e0899ba9a1a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 88a5818b627..50f4804e692 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassMemberEducationUserByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassMemberEducationUserByRef.g.cs index 55e8651d948..d53461f634e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassMemberEducationUserByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassMemberEducationUserByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModule.g.cs index 64dbab6350b..d9a1cd05d9b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModule.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModuleResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModuleResource.g.cs index e02dd594be2..1f18171ba03 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModuleResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassModuleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassTeacherEducationUserByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassTeacherEducationUserByRef.g.cs index 28c1dba4a60..dc3a0f2a8f3 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassTeacherEducationUserByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationClassTeacherEducationUserByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMe.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMe.g.cs index 9d1b4e6b9b9..c7ab421cd09 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMe.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMe.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignment.g.cs index dafce5c9d72..3a2732553b1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentCategoryEducationCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentCategoryEducationCategoryByRef.g.cs index 049bece60fe..88c0a373392 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentCategoryEducationCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentCategoryEducationCategoryByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResource.g.cs index bd47ae62248..95d0b6edc77 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResourceDependentResource.g.cs index ddeae207a9a..ff04a50d503 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentResourceDependentResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubric.g.cs index 60efd69e98b..81bf9d86ee5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubric.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubricByRef.g.cs index 85a71288462..4ede571c9b7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentRubricByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmission.g.cs index 518477787ac..15a63ee0f7d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmission.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionOutcome.g.cs index 3fcb82fa879..ac9176775ef 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionOutcome.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResource.g.cs index 7be3a259e39..b25da465a10 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs index 47f0e077f65..fbc08247448 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResource.g.cs index 21423c6d765..51122cf6260 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 39443571c28..0f2757cf637 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeRubric.g.cs index d2f7117267d..048a3dba66c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationMeRubric.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReport.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReport.g.cs index d59d5cbd86d..484578bb6cf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReport.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReport.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingAssignmentSubmission.g.cs index 7ff1ae61f0d..baec4d95119 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingAssignmentSubmission.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingCoachPassage.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingCoachPassage.g.cs index 0c438bc0de5..e2cf5c55056 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingCoachPassage.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReadingCoachPassage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingCoachPassageId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReflectCheck.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReflectCheck.g.cs index 095da1d6bc1..047877a6f56 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReflectCheck.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportReflectCheck.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReflectCheckInResponseId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportSpeakerAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportSpeakerAssignmentSubmission.g.cs index 4b466496fc8..d43f54b0872 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportSpeakerAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationReportSpeakerAssignmentSubmission.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SpeakerAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchool.g.cs index 87f535a5973..8cacfa4b169 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchool.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolClassEducationClassByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolClassEducationClassByRef.g.cs index 1f5caf59ea7..ca28ebe9b26 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolClassEducationClassByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolClassEducationClassByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolUserEducationUserByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolUserEducationUserByRef.g.cs index 5f2fe52ea3b..d8e393da535 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolUserEducationUserByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationSchoolUserEducationUserByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUser.g.cs index f3c90d79337..81f97f99984 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUser.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignment.g.cs index 45279feda4c..b03fb51d6ce 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentCategoryEducationCategoryByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentCategoryEducationCategoryByRef.g.cs index 40ae5e5cc91..3d5e8bd0833 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentCategoryEducationCategoryByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentCategoryEducationCategoryByRef.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResource.g.cs index 011a0c3f416..0281b031d7e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResourceDependentResource.g.cs index 741d429429e..513aa583a83 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentResourceDependentResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubric.g.cs index db5f98ad239..a47bb748eb9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubric.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubricByRef.g.cs index d84949cc2e0..2f536dcdff8 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentRubricByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmission.g.cs index 0bc9f1e6d80..238e73c01b6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmission.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionOutcome.g.cs index 83c8fb4798c..af0e5f91b87 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionOutcome.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResource.g.cs index 7db8f8b5d82..fe404061188 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs index f8628294aa0..918cd648058 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResource.g.cs index e356b5ca23a..10f27f428c6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 10bcf3bab2a..a64960df7d9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserRubric.g.cs index 9716af2a8a7..affda6199c9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/RemoveMgEducationUserRubric.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentRubricByRef.g.cs index 864614b3479..85e381285d5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentRubricByRef.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentSubmissionUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentSubmissionUpResourceFolder.g.cs index ea8e62dd647..f3d8e6f3ce4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentSubmissionUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentSubmissionUpResourceFolder.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpFeedbackResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpFeedbackResourceFolder.g.cs index 86ef3c6bf8d..90849c4132d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpFeedbackResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpFeedbackResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpResourceFolder.g.cs index 479f93792a1..eb58bc12ba9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassAssignmentUpResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassModuleUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassModuleUpResourceFolder.g.cs index cf584c69846..1da9b33677d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassModuleUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationClassModuleUpResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentRubricByRef.g.cs index 0aa6a321ac7..f2d42f32f1c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentRubricByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentSubmissionUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentSubmissionUpResourceFolder.g.cs index fd96cd85c85..c6f2dc69be2 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentSubmissionUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentSubmissionUpResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpFeedbackResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpFeedbackResourceFolder.g.cs index 363143d22e2..a30058a371f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpFeedbackResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpFeedbackResourceFolder.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpResourceFolder.g.cs index 8bcf815214d..61f3c9b16ba 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationMeAssignmentUpResourceFolder.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentRubricByRef.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentRubricByRef.g.cs index d0ff31e4db9..9127458a457 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentRubricByRef.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentRubricByRef.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentSubmissionUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentSubmissionUpResourceFolder.g.cs index 7a60d910803..4e00e686d3e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentSubmissionUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentSubmissionUpResourceFolder.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpFeedbackResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpFeedbackResourceFolder.g.cs index 75c51eba0c3..dd2c9ad0e58 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpFeedbackResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpFeedbackResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpResourceFolder.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpResourceFolder.g.cs index 622c03e8ef8..33f10691e71 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpResourceFolder.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SetMgEducationUserAssignmentUpResourceFolder.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationClassAssignmentSubmission.g.cs index 52dd25e6fe5..5378c04baff 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationClassAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationMeAssignmentSubmission.g.cs index 3a2c5f21755..662b62112f6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationMeAssignmentSubmission.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationUserAssignmentSubmission.g.cs index af095caa98c..9dab3a605ab 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/SubmitMgEducationUserAssignmentSubmission.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducation.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducation.g.cs index d73c68d3727..e11249c2911 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducation.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Education.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClass.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClass.g.cs index 1fece05d86f..ee422c0f602 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClass.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClass.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignment.g.cs index 01698df40cc..171ba8987ab 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignment.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentCategory.g.cs index 2bb47b774a6..d7b97dc4feb 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentCategory.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].AssignmentCategories[EducationCategoryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentDefault.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentDefault.g.cs index fae9ec1b31d..c777a84e335 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentDefault.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentDefault.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].AssignmentDefaults.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResource.g.cs index 4a825295df3..74157f487e5 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResourceDependentResource.g.cs index f8474978f73..3985d2cc0c7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].DependentResources[EducationAssignmentResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentRubric.g.cs index f419db2522f..ba914b30c80 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentRubric.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Rubric.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSetting.g.cs index a4b26c37c49..b5a6c35be5d 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].AssignmentSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationClassId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingCategory.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingCategory.g.cs index 4eee2706557..2676e5dbc84 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingCategory.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingCategory.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingCategoryId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].AssignmentSettings.GradingCategories[EducationGradingCategoryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingCategoryId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingScheme.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingScheme.g.cs index 4c5d3c997fa..5449c35fd43 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingScheme.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSettingGradingScheme.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingSchemeId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].AssignmentSettings.GradingSchemes[EducationGradingSchemeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationGradingSchemeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmission.g.cs index 7e5a37608e2..83fd0e161a8 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmission.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionOutcome.g.cs index f727476ffa3..dc89478886e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionOutcome.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Outcomes[EducationOutcomeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResource.g.cs index b27bfd3bee6..06830c131b7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs index 153bd86c3f4..585d9402813 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionResourceDependentResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResource.g.cs index b74aeeb3f52..1dbeaf37542 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 44fddb2ef83..cfe19d89a98 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModule.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModule.g.cs index 1c651f39780..9b95a3c78af 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModule.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModule.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Modules[EducationModuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModuleResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModuleResource.g.cs index 4e10c20214a..56a851d8366 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModuleResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationClassModuleResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleResourceId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Education.Classes[EducationClassId].Modules[EducationModuleId].Resources[EducationModuleResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationModuleResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMe.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMe.g.cs index 368fd9db678..6dd1d31c664 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMe.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMe.g.cs @@ -236,7 +236,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -250,7 +250,7 @@ protected override void ProcessRecord() { result = client.Education.Me.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignment.g.cs index 35995bdf9b5..b4b1c9fbbfe 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignment.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -143,7 +143,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResource.g.cs index 6640e1ecfe7..cdc11b1a741 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResourceDependentResource.g.cs index 98862a7adc5..324c43c20ad 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentResourceDependentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].DependentResources[EducationAssignmentResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentRubric.g.cs index 9a985b04660..0dae762b4bb 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentRubric.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Rubric.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmission.g.cs index 16c71ecb745..712b68982b7 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmission.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionOutcome.g.cs index 42cd3ffc4e5..35af3d86528 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionOutcome.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Outcomes[EducationOutcomeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResource.g.cs index fa8fc27d52a..5a510fbca13 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs index f7502e8a047..ea5becccde9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResource.g.cs index 35c4ca95f91..718b82cf42b 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 7ad44eb12ff..ff4303b4e55 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeRubric.g.cs index 85e2a6a4fce..52882e1073c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeRubric.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Education.Me.Rubrics[EducationRubricId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeUserMailboxSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeUserMailboxSetting.g.cs index 3578cf074d3..e945e076d9c 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeUserMailboxSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationMeUserMailboxSetting.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -112,7 +112,7 @@ protected override void ProcessRecord() { result = client.Education.Me.User.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReport.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReport.g.cs index db6eb3d9c09..8039fb493bf 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReport.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReport.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Education.Reports.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingAssignmentSubmission.g.cs index 93cd00648f1..d12142847ec 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingAssignmentSubmission.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingAssignmentSubmissionId); return; @@ -185,7 +185,7 @@ protected override void ProcessRecord() { result = client.Education.Reports.ReadingAssignmentSubmissions[ReadingAssignmentSubmissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingCoachPassage.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingCoachPassage.g.cs index 0f580706e07..fcb746690cd 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingCoachPassage.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReadingCoachPassage.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingCoachPassageId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Education.Reports.ReadingCoachPassages[ReadingCoachPassageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReadingCoachPassageId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReflectCheck.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReflectCheck.g.cs index 4abee95e723..e1fed87b416 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReflectCheck.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportReflectCheck.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReflectCheckInResponseId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Education.Reports.ReflectCheckInResponses[ReflectCheckInResponseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ReflectCheckInResponseId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportSpeakerAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportSpeakerAssignmentSubmission.g.cs index 43b1c02c06e..595fb08bcda 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportSpeakerAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationReportSpeakerAssignmentSubmission.g.cs @@ -161,7 +161,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SpeakerAssignmentSubmissionId); return; @@ -175,7 +175,7 @@ protected override void ProcessRecord() { result = client.Education.Reports.SpeakerAssignmentSubmissions[SpeakerAssignmentSubmissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SpeakerAssignmentSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchool.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchool.g.cs index 18f3d2a3566..dc18c0c5ae4 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchool.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchool.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Education.Schools[EducationSchoolId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchoolAdministrativeUnit.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchoolAdministrativeUnit.g.cs index dba977dff9b..30ab59c77e8 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchoolAdministrativeUnit.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationSchoolAdministrativeUnit.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Education.Schools[EducationSchoolId].AdministrativeUnit.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSchoolId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUser.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUser.g.cs index b8aa4b3a13a..8ad3b5623f9 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUser.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUser.g.cs @@ -237,7 +237,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; @@ -251,7 +251,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignment.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignment.g.cs index b878d40c99e..0b93966c8a1 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignment.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignment.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResource.g.cs index 442270afb7c..3e5069fd813 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResource.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResourceDependentResource.g.cs index 7729711e3c1..ab487fc4eab 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentResourceDependentResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Resources[EducationAssignmentResourceId].DependentResources[EducationAssignmentResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentRubric.g.cs index aecd0c72749..691a4e4bd7f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentRubric.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Rubric.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationAssignmentId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmission.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmission.g.cs index 388d9bc5a50..68f8173ac1e 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmission.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmission.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionOutcome.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionOutcome.g.cs index 9cabc1dcba1..5d1dc59527a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionOutcome.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionOutcome.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Outcomes[EducationOutcomeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationOutcomeId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResource.g.cs index a8b4e0dc90c..bac7d870601 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs index bc24ff9712c..74768982f0f 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionResourceDependentResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].Resources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResource.g.cs index 489702a21fb..feb2e34d7b6 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResource.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs index 1ac64880b6e..777e502eb34 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserAssignmentSubmissionSubmittedResourceDependentResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Assignments[EducationAssignmentId].Submissions[EducationSubmissionId].SubmittedResources[EducationSubmissionResourceId].DependentResources[EducationSubmissionResourceId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationSubmissionResourceId1); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserMailboxSetting.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserMailboxSetting.g.cs index 92c1ff089c3..1722d34718a 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserMailboxSetting.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].User.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationUserId); return; diff --git a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserRubric.g.cs b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserRubric.g.cs index 9611ce48965..09708255a67 100644 --- a/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserRubric.g.cs +++ b/src/Education/wrapper/v1.0/Cmdlets/UpdateMgEducationUserRubric.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Education.Users[EducationUserId].Rubrics[EducationRubricId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EducationRubricId); return; diff --git a/src/Files/wrapper/v1.0/Client/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs index 2d896edbf68..a6a3665231f 100644 --- a/src/Files/wrapper/v1.0/Client/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Drives/Item/Items/Item/AssignSensitivityLabel/AssignSensitivityLabelRequestBuilder.cs @@ -34,7 +34,8 @@ public AssignSensitivityLabelRequestBuilder(string rawUrl, IRequestAdapter reque { } /// - /// Invoke action assignSensitivityLabel + /// Asynchronously assign a sensitivity label to a driveItem. This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered as protected. Protected APIs require you to have more validations, beyond permission and consent, before you can use them. For more information about sensitivity labels from an administrator's perspective, see Enable sensitivity labels for Office files in SharePoint and OneDrive. This API applies sensitivity labels to files at rest. Office clients don't apply watermarks, headers, or footers to files that contain the label information. For more information about sensitivity labels from an administrator's perspective, see Enable sensitivity labels for Office files in SharePoint and OneDrive. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -58,7 +59,7 @@ public async Task PostAsync(global::Microsoft.Graph.PowerShell.Files.Client.Driv await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action assignSensitivityLabel + /// Asynchronously assign a sensitivity label to a driveItem. This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered as protected. Protected APIs require you to have more validations, beyond permission and consent, before you can use them. For more information about sensitivity labels from an administrator's perspective, see Enable sensitivity labels for Office files in SharePoint and OneDrive. This API applies sensitivity labels to files at rest. Office clients don't apply watermarks, headers, or footers to files that contain the label information. For more information about sensitivity labels from an administrator's perspective, see Enable sensitivity labels for Office files in SharePoint and OneDrive. /// /// A /// The request body diff --git a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 84b196dc2f8..8232e2a7605 100644 --- a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs index e5fb8a51b67..46750eab100 100644 --- a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Files.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.List.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs index 82e8786f521..045e96d8fe1 100644 --- a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs index 3be8f5b941f..1cb84fc66be 100644 --- a/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Drives/Item/List/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Files.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.List.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from drives + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Models/Chat.cs b/src/Files/wrapper/v1.0/Client/Models/Chat.cs index 0094adb954f..27ee6de9372 100644 --- a/src/Files/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Files/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Files.Client.Mode #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Files/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Files/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..e634ad03a97 --- /dev/null +++ b/src/Files/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Files.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Files.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Files.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Files/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Files/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..f14c2082fcd --- /dev/null +++ b/src/Files/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Files.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Files/wrapper/v1.0/Client/Models/Group.cs b/src/Files/wrapper/v1.0/Client/Models/Group.cs index 0ad3d243dec..0c9893952f4 100644 --- a/src/Files/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Files/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Files.Client.Mod #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Files.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Files.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Files/wrapper/v1.0/Client/Models/List.cs b/src/Files/wrapper/v1.0/Client/Models/List.cs index ae4de8e0933..dcefa399ef4 100644 --- a/src/Files/wrapper/v1.0/Client/Models/List.cs +++ b/src/Files/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Files.Client.Mode #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Files/wrapper/v1.0/Client/Models/ListItem.cs b/src/Files/wrapper/v1.0/Client/Models/ListItem.cs index ef0876e5054..f3d47d506ff 100644 --- a/src/Files/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Files/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Files.Client. #else public global::Microsoft.Graph.PowerShell.Files.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 8e15af974a6..e4509184a9a 100644 --- a/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.File #nullable restore #else public global::Microsoft.Graph.PowerShell.Files.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Files.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Files.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.File #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Files.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..4f39b7f9ba3 --- /dev/null +++ b/src/Files/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Files.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Files/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Files/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index a66ec1be725..a626a9b5b28 100644 --- a/src/Files/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Files/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Files.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Files.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Files/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Files/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 58f2118a9ff..9072c78b702 100644 --- a/src/Files/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Files/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Files.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Files.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Files.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Files/wrapper/v1.0/Client/Models/User.cs b/src/Files/wrapper/v1.0/Client/Models/User.cs index 3484b6d1138..f0df5df0e6c 100644 --- a/src/Files/wrapper/v1.0/Client/Models/User.cs +++ b/src/Files/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Files.Client.Mode #nullable restore #else public global::Microsoft.Graph.PowerShell.Files.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Files.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Files.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Files.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Files/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Files/wrapper/v1.0/Client/Models/UserActivityType.cs index 47120163e58..ec4a98c5450 100644 --- a/src/Files/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Files/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 112c242a59f..5d8a3151f49 100644 --- a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs index 99f3ea4fa10..ec05f4b18a1 100644 --- a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Files.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Files.Client.Shares.Item.List.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs index 6c59249a784..c6ebadddb3f 100644 --- a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/PermissionsRequestBuilder.cs b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/PermissionsRequestBuilder.cs index 89e7d1d2e36..632dcf587b7 100644 --- a/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/PermissionsRequestBuilder.cs +++ b/src/Files/wrapper/v1.0/Client/Shares/Item/List/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Files.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Files.Client.Shares.Item.List.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from shares + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Files/wrapper/v1.0/Client/kiota-lock.json b/src/Files/wrapper/v1.0/Client/kiota-lock.json index 75d3b098e3b..0c160d63d57 100644 --- a/src/Files/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Files/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "CC6FB110197A15E690AB7CA6DD8EA550F6562D283940B2DE093AF91D8871522DF9136638FDB0FA946924A3F39048CCC61AD2118FF176A31EB9AB59BF42B0BACC", + "descriptionHash": "1F38E1AC5F1100A04B04F291FE371BB5436F61A82074A353A87BDC7DEE9A940B8CCD959A023AA7942771FF0DE752C331F67E342503C47CB21F5F101AD71CA987", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Files.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopy.g.cs b/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopy.g.cs index 38d912e9c71..37cd245d45f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopy.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopyFromContentTypeHub.g.cs b/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopyFromContentTypeHub.g.cs index 5f690d4c64e..b36cda5a48c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/AddMgDriveListContentTypeCopyFromContentTypeHub.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopy.g.cs b/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopy.g.cs index 795d38120b8..58198ec4983 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopy.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopyFromContentTypeHub.g.cs b/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopyFromContentTypeHub.g.cs index 290967b12ce..e56b85568a9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/AddMgShareListContentTypeCopyFromContentTypeHub.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveItem.g.cs index 82a7dead79d..bb909dc46bd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveItem.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveListContentTypeToDefaultContentLocation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveListContentTypeToDefaultContentLocation.g.cs index a7a1c418b12..3e650dd5d95 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveListContentTypeToDefaultContentLocation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/CopyMgDriveListContentTypeToDefaultContentLocation.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/CopyMgShareListContentTypeToDefaultContentLocation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/CopyMgShareListContentTypeToDefaultContentLocation.g.cs index 68dd6b62109..f4467f71574 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/CopyMgShareListContentTypeToDefaultContentLocation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/CopyMgShareListContentTypeToDefaultContentLocation.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive.g.cs index b1f0100644f..c7fa2a65b03 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive.g.cs @@ -78,7 +78,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveId : null); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle.g.cs index 6560af5b0a5..64cf1e7b560 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleContent.g.cs index 602bc96a4c4..683014d9eee 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleCount.g.cs index 0ae31319999..ce93a06bd1e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_Get.g.cs index 838a6fae8d2..5e8913f1b6a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_List.g.cs index 1cf01d4d244..182af7603eb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveBundle_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBase.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBase.g.cs index 75d0b6c30c4..85d3af1e9c9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBase.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBase.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType.g.cs index 6a689d7b3e2..f3f58259af7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId1 : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseTypeCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseTypeCount.g.cs index e2bc01d2f7e..2a76cee3f74 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseTypeCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseTypeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_Get.g.cs index 26a592fcc74..21ae65ea3e4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_List.g.cs index dde0625511f..e59bd0a86bf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveContentTypeBaseType_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUser.g.cs index 021c58a36ff..f948096f85f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserMailboxSetting.g.cs index 6376b3e5af0..14a4f4dc471 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningError.g.cs index 08f77f54ddd..dd1f12f1b77 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningErrorCount.g.cs index 9c526f9aa95..2fa5faf6f59 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveCreatedByUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing.g.cs index 66675dfc4e1..7dd5f513e12 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingContent.g.cs index 0ac9ae946e9..c0cadd72d77 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingCount.g.cs index 2c35f1b2ddc..04094c25c98 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_Get.g.cs index 8dd23bc3801..cefe850dbdf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_List.g.cs index e00250823d1..6e5fd81acab 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveFollowing_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem.g.cs index 1fe56451245..61279023f8a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemActivityByInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemActivityByInterval.g.cs index 93b7233571c..36f0fdadbd8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemActivityByInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemActivityByInterval.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalytic.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalytic.g.cs index 3415fb5dbf6..2588634cf33 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalytic.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalytic.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat.g.cs index b39255f760b..f9588d2072a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityStatId : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity.g.cs index c71698f272a..b029420be50 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityId : ItemActivityStatId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs deleted file mode 100644 index b13ae4888a0..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemAnalyticItemActivityStatActivityDriveItemContent")] - [OutputType(typeof(byte[]))] - public class GetMgDriveItemAnalyticItemActivityStatActivityDriveItemContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ItemActivityStatId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string ItemActivityId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ItemActivityId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_Get.g.cs index a65a4d6c07d..729a93bca97 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_List.g.cs index d87c50aa3d7..4ca9d9fa45a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatActivity_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatCount.g.cs index caac547847b..6c4f833f39f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStatCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_Get.g.cs index c5c0273025d..21920e3947a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_List.g.cs index dcd6cd994ee..8c1896c64fd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticItemActivityStat_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticLastSevenDay.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticLastSevenDay.g.cs index 88fd4cc2ed4..ac659399a7a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticLastSevenDay.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticLastSevenDay.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticTime.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticTime.g.cs index e5a6ffa266c..cbb5d3585c9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticTime.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemAnalyticTime.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild.g.cs index 272b94de50e..bd3ae5dfa97 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId1 : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildContent.g.cs index 3f44cf441e2..f9fe680338e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildCount.g.cs index 8464f8119d2..9d820a6a9fc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChildCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_Get.g.cs index 0f90f284154..9958adfa0a3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_List.g.cs index ceb08990777..0799bd12273 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemChild_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemContent.g.cs index 90f48b602b5..d5a1b84d506 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCount.g.cs index 76f2a8aab8f..5a7d6656c4d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUser.g.cs index 282b46ffc95..daf5b4fdbc3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserMailboxSetting.g.cs index 2f6fe464bad..6ffd0f85a3d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningError.g.cs index 07dad3d105e..b968365110c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningErrorCount.g.cs index 903829b28ad..e2298c3cc11 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemDelta.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemDelta.g.cs index 618ab04fa9f..7e87dbacf4b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemDelta.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 4ae3919a502..cdbf987806b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUser.g.cs index a26d91ad0a4..eb3974863bc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserMailboxSetting.g.cs index bc7341aaf37..323ceac20ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningError.g.cs index 583118766a3..7986b1a11a5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningErrorCount.g.cs index f66b2c2876d..9a49d233d2c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemListItem.g.cs index c993bf0cd6d..21a448a8593 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemListItem.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission.g.cs index f0ebdf8a8b0..f506993e5fe 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermissionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermissionCount.g.cs index 492ab75e0a0..2407391ecf8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermissionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermissionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_Get.g.cs index 272ffb03b03..9709f838fc8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_List.g.cs index 393413d5a8a..8b0b6b15aec 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemPermission_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemRetentionLabel.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemRetentionLabel.g.cs index b42d1b22e55..933d2667010 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemRetentionLabel.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemRetentionLabel.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSearchWithQ.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSearchWithQ.g.cs index 566e5a8ffc9..632bb041070 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSearchWithQ.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSearchWithQ.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription.g.cs index 2762f4bfbb7..e5d6c4c92fa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscriptionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscriptionCount.g.cs index 3d406e5387f..a8e695b1abf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscriptionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscriptionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_Get.g.cs index e3eebb0824a..28b2bbba51a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_List.g.cs index ff0346c4877..60afe0bea16 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemSubscription_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail.g.cs index cf0f1ef23f4..03593e9e061 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ThumbnailSetId : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnailCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnailCount.g.cs index bbf02ae5c75..abf24356504 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnailCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnailCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_Get.g.cs index 1780a62e348..9b0caf47a27 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThumbnailSetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_List.g.cs index 05177491725..438f014f917 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemThumbnail_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion.g.cs index 3184c8a100e..dc9594d6d09 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemVersionId : DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionContent.g.cs index 34471593d2a..ecb4961c0ba 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionCount.g.cs index c60b7990de6..4d97b4211f5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_Get.g.cs index 75ee33f525e..393826c66e5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_List.g.cs index 9e25eae2446..00d6ecdade7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeBoundingRectWithAnotherRange.g.cs index 5d1e14fde8c..ecab625ee0f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeCellWithRowWithColumn.g.cs index 98461ee4c35..3785b63fbc2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnWithColumn.g.cs index 00dfcf00edc..e39330c3804 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsAfterWithCount.g.cs index e5ced429805..75de38e46e3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsBeforeWithCount.g.cs index 50b0e4e8b0b..087b8b836cf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeIntersectionWithAnotherRange.g.cs index 05dcd64e44a..8758eb61c65 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 40b39623c03..0e84b3fb5c2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 826e15d7bfb..1931db2b5b4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowWithRow.g.cs index bb82ade5ee1..b2f947d25c2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsAboveWithCount.g.cs index 7be9c995bfd..a8d6e20a567 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsBelowWithCount.g.cs index 1b36a4c8d83..be0f1eba6e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly.g.cs index e468c8eb815..705383c33f3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookNameRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookSessionInfoResourceWithKey.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookSessionInfoResourceWithKey.g.cs index 3173ab00edd..7569d39f686 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookSessionInfoResourceWithKey.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookSessionInfoResourceWithKey.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnCount.g.cs deleted file mode 100644 index 2c3c25f892d..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/columns/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookTableColumnCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookTableColumnCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookTableId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Item.Columns.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Tables[WorkbookTableId].Columns.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookTableId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs index 65bf0cac1a6..1f0370c2873 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn.g.cs index 0757a990fa5..f5a7e859788 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnWithColumn.g.cs index 7013811f66f..f88fcd73ee1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount.g.cs index 15dc04d6984..2b4889a77a0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs index 47574b478da..0a8e007ac7c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs index 01f6f9edd0f..086175140c6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index ea01a10c2d8..7b706f32111 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index cef3b124288..b45f9a63685 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowWithRow.g.cs index 615a0621032..cb565071e94 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsAboveWithCount.g.cs index aa6eb55ab38..a299edc22f6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsBelowWithCount.g.cs index e72d472afc6..28ae6021786 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs index e67aab6a369..27e448b7bb3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs index 4f00523bc8e..dc0710fb935 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs index 4102c0c32c3..f23ddb5d7b9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnWithColumn.g.cs index 1d9fcf5e30f..7ffca607a33 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs index e9b6c5b15b8..69946af8b54 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs index b217ade0ece..66921dcbe00 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs index 14fbc36d8dd..8981f84a08b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 73369463648..b113d44982e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 9c241e6f901..269dd88340e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowWithRow.g.cs index 65f6d063c6d..5229c7f0172 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsAboveWithCount.g.cs index 30e21bc5785..bc4ace01eb1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsBelowWithCount.g.cs index 04e67c13a05..4ec79e0eadc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs index 0a4ac837024..eece313661d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnItemAtWithIndex.g.cs index 845812ed0f3..c222aa43f94 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnItemAtWithIndex.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeBoundingRectWithAnotherRange.g.cs index 2be358fef09..f19b97debb9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeCellWithRowWithColumn.g.cs index 5448618d505..714fe7ac726 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnWithColumn.g.cs index 5b121c27971..a1fb41242ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsAfterWithCount.g.cs index 5f535f3f28a..a97cf3da36d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsBeforeWithCount.g.cs index f1bd1341eba..c1b44bc5b7b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeIntersectionWithAnotherRange.g.cs index c1c3e9084f2..33522fb1a16 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index bdf8ecfc5d7..dfe1f983214 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index a3b6abf707e..4c47042c875 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowWithRow.g.cs index f26c2860a4c..574cf5ab521 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsAboveWithCount.g.cs index ec17cc65247..4dcc34a6b5c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsBelowWithCount.g.cs index ca00585b51d..c7f761316ac 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeUsedRangeWithValuesOnly.g.cs index ed51567c15c..6e1718702c3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs index 1af0bf69125..8f0d1f377b1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeCellWithRowWithColumn.g.cs index 1ffc919ecf6..37d5b73c913 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnWithColumn.g.cs index e189b8ff154..432a55ecf91 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsAfterWithCount.g.cs index 543aaf39290..1f4ea25c40d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs index c1fde2b6cb8..ff5ea1d6009 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs index 7f3d8777e38..285a6111c7e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 32527ebe933..ce20027d62f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 8b3275a05e1..0e5dfa22996 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow.g.cs index 5f250c109d3..fa5408c002a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsAboveWithCount.g.cs index 9ee01dc477a..7ca29973a10 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount.g.cs index 49da8e4c34f..235d9204001 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs index 7c3638efb12..f0b7a51c9ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableCount.g.cs deleted file mode 100644 index 381310059ba..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableCount.g.cs +++ /dev/null @@ -1,59 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/tables/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookTableCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookTableCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Tables.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange.g.cs index 2fc891e7dce..212ec3220ef 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn.g.cs index f4b1018f791..4c27ed3c1c0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnWithColumn.g.cs index 66e8b4137a3..0abdc59932a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount.g.cs index 115d7ee1bfc..bfa7731322c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsBeforeWithCount.g.cs index 9eb887c32e8..db5d40cbad4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeIntersectionWithAnotherRange.g.cs index 5a8868e2b70..672d16341fc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 9ed2f67ba1f..b976366aa8c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index c5fa090a1b9..68b5ee1fb20 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowWithRow.g.cs index f54e4c60bfc..55a231caf43 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsAboveWithCount.g.cs index 795374dea06..b457a0ccfbf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsBelowWithCount.g.cs index b5be1e3ab15..821ffcf4c54 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeUsedRangeWithValuesOnly.g.cs index 77e0db1c717..407e8e19f16 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableDataBodyRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs index 0c6f6b5b49d..3d2091afdc6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeCellWithRowWithColumn.g.cs index 0cac642c962..182307923b3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnWithColumn.g.cs index f68f9b485f8..9a261e85bc8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsAfterWithCount.g.cs index 3e8d4607c78..6646bef6d4e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsBeforeWithCount.g.cs index 0f3d7d80a37..e4e50372bab 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeIntersectionWithAnotherRange.g.cs index d5cd44756d4..068e1fa2f6a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 28c1056a7dd..eadaaa15ad2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 238991b3cd2..7d0e6c46a9d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowWithRow.g.cs index 0b7457d35a9..98ab7117aa7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsAboveWithCount.g.cs index 8e21579d23d..8db8164099e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsBelowWithCount.g.cs index 8f87db9d8b7..98b8b35e7d1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs index 492cb9e548c..a2ae20599a8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableItemAtWithIndex.g.cs index c5ee7980f49..c52bd8fc7a5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableItemAtWithIndex.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeBoundingRectWithAnotherRange.g.cs index 85234713ccc..433e9241603 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeCellWithRowWithColumn.g.cs index 6ec7f1a52d7..00d63519f4f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnWithColumn.g.cs index 7debf9fb6e2..fe4aa204dab 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsAfterWithCount.g.cs index bd0110d2bc5..65f4f26e9b3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsBeforeWithCount.g.cs index a3cc78098e8..59313135fee 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeIntersectionWithAnotherRange.g.cs index e1ba3a6d3a0..a86cd404a5d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 0c6e4ad3e7b..35f1c54c661 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 544fe99efe3..e6631e57a5c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowWithRow.g.cs index b2ee7cdf203..842aba0ef00 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsAboveWithCount.g.cs index 846847b7386..89dbfd3ff7d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsBelowWithCount.g.cs index 8d50e1cfb8f..dbbcb3506ad 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly.g.cs index 8dcee00b625..6cf40612ab2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowCount.g.cs deleted file mode 100644 index 92370aa8f5b..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/tables/{workbookTable-id}/rows/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookTableRowCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookTableRowCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookTableId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Tables.Item.Rows.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Tables[WorkbookTableId].Rows.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookTableId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowItemAtWithIndex.g.cs index 327256e5578..e9b32be3082 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowItemAtWithIndex.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowOperationResultWithKey.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowOperationResultWithKey.g.cs index 34af6fa8918..c3b7820732a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowOperationResultWithKey.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowOperationResultWithKey.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange.g.cs index 51f9f863d78..6d7ae06f3a7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeCellWithRowWithColumn.g.cs index 651f7cd5c37..974105e2c8d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnWithColumn.g.cs index 7fe94ce7736..8fa9ad704ff 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsAfterWithCount.g.cs index 9e77d8b983b..27dbeaa50e6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsBeforeWithCount.g.cs index cd9e949ca69..eed06b78698 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeIntersectionWithAnotherRange.g.cs index 4afc8c61fb6..ff00b0a04b7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 6cef69475b4..5da55520c85 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index f118a4e3941..01c5fe8b50d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowWithRow.g.cs index a2d4e74caaf..88798b10b65 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsAboveWithCount.g.cs index fbdb514df84..27d41e389f0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsBelowWithCount.g.cs index 3744b4407c8..39906e8f3e2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeUsedRangeWithValuesOnly.g.cs index 7fcc327166b..df49814e374 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableRowRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeBoundingRectWithAnotherRange.g.cs index e26d7cabe21..3d808dab5bb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeCellWithRowWithColumn.g.cs index 3d87ad54022..589a285677d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnWithColumn.g.cs index f5c2e2ae6e7..b70c315f03c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsAfterWithCount.g.cs index 942c246b2cf..ee7009e24a5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsBeforeWithCount.g.cs index 0278d05768c..09a91ee781b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeIntersectionWithAnotherRange.g.cs index 19bb539bc74..a66440b4d29 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index fa3159d42ce..43180c377ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 194c237fb3c..b84a8e0ed31 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowWithRow.g.cs index f5cf7416aa6..bc4355542dd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsAboveWithCount.g.cs index daab794bbfd..8e03aa20eaf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsBelowWithCount.g.cs index a2061ce939f..609cb2dfff3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly.g.cs index 8e1ba74c91c..7eb68e70ac7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookTableTotalRowRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetCellWithRowWithColumn.g.cs index 6e132247ace..b9de2469608 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartCount.g.cs deleted file mode 100644 index ef4200c71a8..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetChartCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetChartCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Charts.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookWorksheetId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidth.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidth.g.cs index 4312b89c5ba..c8472f097d3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidth.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidth.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookChartId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight.g.cs index ed04382d438..d84fe0ac70e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeight.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookChartId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode.g.cs index 42b266851b0..58c5d9963c1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartImageWithWidthWithHeightWithFittingMode.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookChartId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemAtWithIndex.g.cs index 4a6a57cfe06..84cf0f79e93 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemAtWithIndex.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemWithName.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemWithName.g.cs index c5a2d9ee1a9..e492582d2e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemWithName.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartItemWithName.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryCount.g.cs deleted file mode 100644 index 2fd85d64395..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryCount.g.cs +++ /dev/null @@ -1,63 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/{workbookChart-id}/series/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetChartSeryCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetChartSeryCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string WorkbookChartId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Charts[WorkbookChartId].Series.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookChartId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex.g.cs index 2ee7560afa9..d6e6aa6063c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryItemAtWithIndex.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookChartId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointCount.g.cs deleted file mode 100644 index db65fa482a3..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointCount.g.cs +++ /dev/null @@ -1,65 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/charts/{workbookChart-id}/series/{workbookChartSeries-id}/points/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetChartSeryPointCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetChartSeryPointCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string WorkbookChartId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string WorkbookChartSeriesId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Charts.Item.Series.Item.Points.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Charts[WorkbookChartId].Series[WorkbookChartSeriesId].Points.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookChartSeriesId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex.g.cs index 083705ad817..0fdf8bfeb03 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetChartSeryPointItemAtWithIndex.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookChartSeriesId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange.g.cs index 5426b6c29d5..93a2e9b1145 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn.g.cs index 3203267b432..c31d6841f64 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnWithColumn.g.cs index 02b562a895a..b698b099a4d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsAfterWithCount.g.cs index 307d6d9377c..d2f327592fc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsBeforeWithCount.g.cs index e8bc3d921f1..35fbada55b1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeIntersectionWithAnotherRange.g.cs index dee9966269d..4cb27aeffeb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 93ee975659c..866db21f5c6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 2917d6d9458..3c9a2bd4e47 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowWithRow.g.cs index 2c08730b2c7..06506a6fece 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsAboveWithCount.g.cs index c82dd815b6c..5d59a6b2463 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsBelowWithCount.g.cs index 5522c7d222f..1df5c8a142a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeUsedRangeWithValuesOnly.g.cs index 5f02d6472cd..2f459716023 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetNameRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookNamedItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeBoundingRectWithAnotherRange.g.cs index b8db20992aa..77529b31781 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeCellWithRowWithColumn.g.cs index af9524aee8b..c49125c3654 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnWithColumn.g.cs index 85d2136d57e..0a33dc913c7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsAfterWithCount.g.cs index 0ed0c2918f6..f7c66804e87 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsBeforeWithCount.g.cs index 3554a89e2d5..34653138d5d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeIntersectionWithAnotherRange.g.cs index c776589749b..27b7dd03310 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 99e216bb8f8..524ea73f498 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 97c07522004..a59dd94c8fb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowWithRow.g.cs index 055e4b4a5bd..1d9b431e051 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsAboveWithCount.g.cs index e7c7922cba4..b06dcff2397 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsBelowWithCount.g.cs index 82db145fe59..0666a36833b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly.g.cs index d5f48ec064e..96c7915ccaa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeWithAddress.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeWithAddress.g.cs index 23e0f298a3e..b72e446a9e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeWithAddress.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetRangeWithAddress.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnCount.g.cs deleted file mode 100644 index c64fb0b275e..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnCount.g.cs +++ /dev/null @@ -1,63 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/columns/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetTableColumnCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetTableColumnCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string WorkbookTableId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Columns.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Tables[WorkbookTableId].Columns.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookTableId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs index a15b6d575ac..b5e6c2419e6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeBoundingRectWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn.g.cs index 8a2f6548e35..8c315277ad3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeCellWithRowWithColumn.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnWithColumn.g.cs index 3b2c23c5224..a7329573ae0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnWithColumn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount.g.cs index 0ab95e78692..e612d9b66b2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsAfterWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs index 35f7302520c..a75d9dc27f1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeColumnsBeforeWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs index 8bdd9d22d59..b63517821ba 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeIntersectionWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 80659008e26..5c8e28c5355 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 11b014d0ba3..146018a8e91 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowWithRow.g.cs index 47b9579f228..75ce8ec2df1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowWithRow.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsAboveWithCount.g.cs index e321fb64e89..eb16ef29cdc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsAboveWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsBelowWithCount.g.cs index e3fb351ebda..5b8ff4d8015 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeRowsBelowWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs index 49ad4a6ce7e..857625dabc5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnDataBodyRangeUsedRangeWithValuesOnly.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs index 0fd15f73c18..54839297bcc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeBoundingRectWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs index ffc139024c1..3bef9d683e5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeCellWithRowWithColumn.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnWithColumn.g.cs index a4a627d6f1c..01047150891 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnWithColumn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs index c2964b030e1..7b755dc90b2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsAfterWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs index 4496399db1c..7a5590feb7c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeColumnsBeforeWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs index 967cf795d33..de39aec174a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeIntersectionWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 9a2b7dc93ff..3683bce530c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 0cec14ea7cd..e71c24bbadc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowWithRow.g.cs index ff076280357..82bb0c716cc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowWithRow.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsAboveWithCount.g.cs index dcf3ae501a9..c9a9dda54b0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsAboveWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsBelowWithCount.g.cs index ab14cc1f627..99ec9ca2b1a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeRowsBelowWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs index 6895c44d8f5..f076eaba5ea 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnHeaderRowRangeUsedRangeWithValuesOnly.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnItemAtWithIndex.g.cs index c647b9c445a..3383f554ede 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnItemAtWithIndex.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeBoundingRectWithAnotherRange.g.cs index bd3d360c458..9011c3e2df0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeBoundingRectWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeCellWithRowWithColumn.g.cs index 48d433efa32..a505faaaef9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeCellWithRowWithColumn.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnWithColumn.g.cs index 1847f0df115..0eb35e534d6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnWithColumn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsAfterWithCount.g.cs index 9a3a1b50297..78928df6a66 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsAfterWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsBeforeWithCount.g.cs index 34ae94b6af2..d561404b483 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeColumnsBeforeWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeIntersectionWithAnotherRange.g.cs index c44bcad36ac..118903c5da0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeIntersectionWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 47db79ca83d..5145454f091 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index d0c433f1a3e..c1f70d2c7fa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowWithRow.g.cs index 2dd090023c5..fd6ba66ab25 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowWithRow.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsAboveWithCount.g.cs index 94777f1627b..8a75aa69479 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsAboveWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsBelowWithCount.g.cs index 6490324660c..1bca8760b95 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeRowsBelowWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeUsedRangeWithValuesOnly.g.cs index ec889b7aae3..5867c49010c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnRangeUsedRangeWithValuesOnly.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs index 77ffb1cee01..ca2e1f624af 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeBoundingRectWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeCellWithRowWithColumn.g.cs index 8405efb066b..c8c4b1cdae6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeCellWithRowWithColumn.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnWithColumn.g.cs index e9427c326ed..ef7914dae57 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnWithColumn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsAfterWithCount.g.cs index 80f6addb2f9..88401da1006 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsAfterWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs index eb6368dbb4f..a04a9743c52 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeColumnsBeforeWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs index 57ac26c44c2..77f8aca16a2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeIntersectionWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 543d85605d5..e85b98f5209 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 0f73a47b969..46241232b28 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow.g.cs index 027fa6e7484..18f5786a1d2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowWithRow.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsAboveWithCount.g.cs index 1637e39b536..475735c1f23 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsAboveWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount.g.cs index a1f7f5c49d7..293b63371a7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeRowsBelowWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs index 0c862c00e1a..6a3ca2810b6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableColumnTotalRowRangeUsedRangeWithValuesOnly.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableColumnId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableCount.g.cs deleted file mode 100644 index 52f1e971f9f..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableCount.g.cs +++ /dev/null @@ -1,61 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetTableCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetTableCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Tables.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookWorksheetId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange.g.cs index 70c785ead03..1df33373b1f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn.g.cs index ae7bff3d236..81bd495240b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnWithColumn.g.cs index 293bc9850da..eba54c0396e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount.g.cs index 704ab71d825..51d2be69924 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsBeforeWithCount.g.cs index dbf70932c93..cbfce557756 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeIntersectionWithAnotherRange.g.cs index 511e6b11521..6b4c7fed109 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 6593d8d4b13..7e8539e5b67 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index b8ee28f6111..701354bcd4d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowWithRow.g.cs index f11a7a07771..b961021a81e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsAboveWithCount.g.cs index 7dbf1da1d77..67fbbb25dbb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsBelowWithCount.g.cs index 27587b5fb05..b9aeea6ccf5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeUsedRangeWithValuesOnly.g.cs index dd5b49c6196..2a3a84df130 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableDataBodyRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs index 17f34a333b0..659d33bb68e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeCellWithRowWithColumn.g.cs index 602d432c785..8c085ed8084 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnWithColumn.g.cs index f106abdcc42..fded88078c7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsAfterWithCount.g.cs index 80e2d95b835..afda74dd4e8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsBeforeWithCount.g.cs index 071696c012b..53609fb7887 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeIntersectionWithAnotherRange.g.cs index 5dec5eb2aa9..c2b5c9d2b64 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 5c39fd5eccf..1211d359a37 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index b07c94e8df5..1524fcc7d1d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowWithRow.g.cs index e847f2e5df6..6f848e7be15 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsAboveWithCount.g.cs index 18abe11e81c..ce2085e57fe 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsBelowWithCount.g.cs index fe28e2ecb2d..88b4bfe3a8f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs index b2deb803206..5b0ac12220e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableHeaderRowRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableItemAtWithIndex.g.cs index c9cc1453bf0..6fd1b337189 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableItemAtWithIndex.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeBoundingRectWithAnotherRange.g.cs index 00d7f069fa6..e13742bb39c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeCellWithRowWithColumn.g.cs index 63a572b8d49..96a97410999 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnWithColumn.g.cs index 1c16328d020..79896296f5c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsAfterWithCount.g.cs index a80c19b283f..59cdccb42ac 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsBeforeWithCount.g.cs index d6e99d039f1..ae6ec789811 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeIntersectionWithAnotherRange.g.cs index f7af83584b3..11c6b43dc0a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index b71f75ce278..900178a91c3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index f2f262690ed..a5d150f2394 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowWithRow.g.cs index 3e9db18e950..0b3a4ce26b2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsAboveWithCount.g.cs index 249c63f722f..46c60867e78 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount.g.cs index d6a3dc4e216..f36a97b4f92 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly.g.cs index ca207fadc4f..20757c0271b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowCount.g.cs deleted file mode 100644 index f59e3dd6252..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowCount.g.cs +++ /dev/null @@ -1,63 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("GET", "/drives/{drive-id}/items/{driveItem-id}/workbook/worksheets/{workbookWorksheet-id}/tables/{workbookTable-id}/rows/count()")] - [Cmdlet(VerbsCommon.Get, "MgDriveItemWorkbookWorksheetTableRowCount")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count.CountGetResponse))] - public class GetMgDriveItemWorkbookWorksheetTableRowCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string WorkbookWorksheetId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string WorkbookTableId { get; set; } = string.Empty; - - - - - - - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Worksheets.Item.Tables.Item.Rows.Count.CountGetResponse? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Worksheets[WorkbookWorksheetId].Tables[WorkbookTableId].Rows.Count.GetAsCountGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, WorkbookTableId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowItemAtWithIndex.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowItemAtWithIndex.g.cs index cec194180b1..d6f0819bd2e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowItemAtWithIndex.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowItemAtWithIndex.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange.g.cs index 949e564a89e..d7d2372544b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeBoundingRectWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn.g.cs index ec4b538b74e..2133b2ffd27 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeCellWithRowWithColumn.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnWithColumn.g.cs index 804a5bca464..44a44329191 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnWithColumn.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsAfterWithCount.g.cs index c91f9982cff..39663ff46c0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsAfterWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsBeforeWithCount.g.cs index 02acfb9ed7d..f2247ff89e2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeColumnsBeforeWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeIntersectionWithAnotherRange.g.cs index 3e760178def..d240ba72e7a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeIntersectionWithAnotherRange.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 97329fa2084..2ebab802c6d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 59316daa8a8..df762baaaa2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowWithRow.g.cs index 2f3534e20ba..be359a8ccff 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowWithRow.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsAboveWithCount.g.cs index 4b8cc0746cb..90deabf5f51 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsAboveWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsBelowWithCount.g.cs index 1633dec76ea..79a97ae341b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeRowsBelowWithCount.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeUsedRangeWithValuesOnly.g.cs index abd5f6539f2..ee131d3c405 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableRowRangeUsedRangeWithValuesOnly.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableRowId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeBoundingRectWithAnotherRange.g.cs index 20d9a460ec6..fc68e362bd1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeBoundingRectWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeCellWithRowWithColumn.g.cs index 49962137deb..c4fb9fe1acd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeCellWithRowWithColumn.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnWithColumn.g.cs index 1142b266b67..1e554df0439 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnWithColumn.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsAfterWithCount.g.cs index 0ee7e48d855..58bfa3e5b0d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsAfterWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsBeforeWithCount.g.cs index 2e96660eb86..16dd258cefa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeColumnsBeforeWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeIntersectionWithAnotherRange.g.cs index ed807ca3664..0c0592bfd3f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeIntersectionWithAnotherRange.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index bd9ec58460a..1e1cb90fdb1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 49c03fec9c0..1ba6f839d68 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowWithRow.g.cs index 75ca66febfc..e5f5466a2a1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowWithRow.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsAboveWithCount.g.cs index 0829402b57a..29663786cf4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsAboveWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsBelowWithCount.g.cs index fd079710f0e..51f9c28a2ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeRowsBelowWithCount.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeUsedRangeWithValuesOnly.g.cs index 53785197e52..cfec0c02cc7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetTableTotalRowRangeUsedRangeWithValuesOnly.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookTableId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeBoundingRectWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeBoundingRectWithAnotherRange.g.cs index 7fa56b12422..a936a468d18 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeBoundingRectWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeBoundingRectWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeCellWithRowWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeCellWithRowWithColumn.g.cs index f2252206643..7d27d4b1f38 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeCellWithRowWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeCellWithRowWithColumn.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnWithColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnWithColumn.g.cs index ed74b5d9133..ce9bdcb260e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnWithColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnWithColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsAfterWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsAfterWithCount.g.cs index 6da930b8013..2930d401cba 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsAfterWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsAfterWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsBeforeWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsBeforeWithCount.g.cs index a0926dde98e..3e6724bd7bf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsBeforeWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeColumnsBeforeWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeIntersectionWithAnotherRange.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeIntersectionWithAnotherRange.g.cs index a0f6135cdb2..69719effb7a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeIntersectionWithAnotherRange.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeIntersectionWithAnotherRange.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs index 2ee526a9570..92711e8c0d8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeOffsetRangeWithRowOffsetWithColumnOffset.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs index 578c1d1ac8a..b3dcd535b5c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeResizedRangeWithDeltaRowsWithDeltaColumns.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowWithRow.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowWithRow.g.cs index 69d865bc606..5c81cb728fa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowWithRow.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowWithRow.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsAboveWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsAboveWithCount.g.cs index 492ff953651..55c04f7542c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsAboveWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsAboveWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsBelowWithCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsBelowWithCount.g.cs index c5e2bd2e009..cae691be308 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsBelowWithCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeRowsBelowWithCount.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeWithValuesOnly.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeWithValuesOnly.g.cs index 8b3c8e55d3c..52442eb8479 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeWithValuesOnly.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItemWorkbookWorksheetUsedRangeWithValuesOnly.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkbookWorksheetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_Get.g.cs index 2dc1105be33..fcc6ab8de51 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_List.g.cs index 853b4a5057d..2994cccb3fb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveItem_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUser.g.cs index 36cf88c3bd0..c80a2076a89 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserMailboxSetting.g.cs index 2fb513e9bc0..6245e3e253c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningError.g.cs index 14d77dc33f5..57a9322e7d1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningErrorCount.g.cs index 0fe139a600c..9bc5183ba80 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveList.g.cs index ffb2fabb422..17aa66a785e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveList.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn.g.cs index 38d10d2009a..f99ec16bf71 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnCount.g.cs index bbb2cfbadf2..b5cf30cb01d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnSourceColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnSourceColumn.g.cs index 9195b0220c2..6a15fb4d716 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnSourceColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumnSourceColumn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_Get.g.cs index 66fd4c8175b..d588148c10d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_List.g.cs index 7a5a653478a..7b919858825 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListColumn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType.g.cs index 030fa5f450e..8a85b8a6777 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn.g.cs index 678d46aa6e2..1191424c25d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnCount.g.cs index cdb77a66dd1..fe5a1187c64 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink.g.cs index 9f26fc5300c..57b43ca6610 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLinkCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLinkCount.g.cs index d55881f4d43..a42c49f1090 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLinkCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLinkCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_Get.g.cs index 60b85a6d42b..db0349ec03c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_List.g.cs index 60cccf43ace..3b8ad698312 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnLink_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition.g.cs index 2b3a521ece8..762a87ce505 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPositionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPositionCount.g.cs index 7110a7dd42f..4921e06d389 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPositionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPositionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_Get.g.cs index b30e1e881f3..130cbc0eb2e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_List.g.cs index 5718529bdd0..65c16f4b68c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnPosition_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnSourceColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnSourceColumn.g.cs index 801b8607a58..4ccf8fd235d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnSourceColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumnSourceColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_Get.g.cs index e0071909643..5e47de48823 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_List.g.cs index 3fc0a061aae..83611733872 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCompatibleHubContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCompatibleHubContentType.g.cs index fa3b2a4f17d..3b9af7663f0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCompatibleHubContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCompatibleHubContentType.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCount.g.cs index 3cc123428e5..cd836edb70e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentTypeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_Get.g.cs index 55bde5bd4b6..1b457cff756 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_List.g.cs index 97f9d46f83e..a2905225898 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListContentType_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUser.g.cs index 80923bd816c..c3809c4ea0b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserMailboxSetting.g.cs index c008c232930..058a0402aa9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningError.g.cs index d84d617e45c..410225c6406 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningErrorCount.g.cs index bdaf3d6c72e..dd9697b3847 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListCreatedByUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListDrive.g.cs index 89dc29b6568..7406a94bd07 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListDrive.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem.g.cs index 08cec5c4411..7c1632ab4e3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemActivityByInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemActivityByInterval.g.cs index 34429f9f6ed..d32d1e39106 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemActivityByInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemActivityByInterval.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemAnalytic.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemAnalytic.g.cs index 301cf8a58c3..73a78f39bcd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemAnalytic.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemAnalytic.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCount.g.cs index 8d76c8fb2d5..4ef2df3e605 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUser.g.cs index 5ab88578ad8..49fed94555a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserMailboxSetting.g.cs index 834b6d45fa3..fa8d964e330 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningError.g.cs index d29ff16b246..c2e2a63ac38 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningErrorCount.g.cs index 82c4a69babe..6f20bbc7b7f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDelta.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDelta.g.cs index 44fca5361b3..6b5cb39c4df 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDelta.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion.g.cs index cc22e4bc67f..961141649a9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DocumentSetVersionId : ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionCount.g.cs index 5d017269c9b..b70c273db72 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionField.g.cs index 4d84052beb0..9bc5d184d1b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_Get.g.cs index 299750b0c60..1163a29883d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_List.g.cs index 5783a71778a..9c46147d19b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDocumentSetVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItem.g.cs index f90f7604cb2..60f1d15a528 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItem.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItemContent.g.cs index cf18f1b4719..a12144ebbb9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemDriveItemContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemField.g.cs index 950f21740aa..f5ae796e306 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemField.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 578bccb06a0..a7e5261fcc8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion.g.cs index ef62504eace..34e96cd6609 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemVersionId : ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionCount.g.cs index 0ac1822561f..d0ad4681e88 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionField.g.cs index d0d2b3adb4f..2231813feeb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_Get.g.cs index 968227c1ff0..e000697b87e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_List.g.cs index 141d433df53..04c25f1ccb5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItemVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_Get.g.cs index 770e02ba6d4..fa14b0e3afb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_List.g.cs index fe7c7a50b80..a543e6ab1ed 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListItem_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation.g.cs index 0bf9efdfa8f..ff05561c4ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperationCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperationCount.g.cs index 4cb356f77d6..9d27dc1f079 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperationCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_Get.g.cs index 1db8734621d..d92fbacfa4e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_List.g.cs index 76e2d1823c4..e472d134a06 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription.g.cs index 7c9d140d504..023d0dfbeca 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscriptionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscriptionCount.g.cs index d90818078a2..e9587142aa7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscriptionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscriptionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_Get.g.cs index 6fe1c6480bf..1edc8ab5b43 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_List.g.cs index 7876e6c5f6f..3bbf3e7dfd2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveListSubscription_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRoot.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRoot.g.cs index 79b6c137299..b1132c984f8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRoot.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRoot.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRootContent.g.cs index ca6051e9f7f..7c8c5d6332f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveRootContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSearchWithQ.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSearchWithQ.g.cs index f56978c7ae2..24d0cf47e22 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSearchWithQ.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSearchWithQ.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial.g.cs index d068687d631..2b792bfb98c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId : DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialContent.g.cs index 4bd635c37be..21a2b830f92 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialCount.g.cs index 4d4ce41a47b..c2a7e3b9bff 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecialCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_Get.g.cs index 8c4c0848fbc..ee82fe7e6e4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_List.g.cs index 9777c1ad7ce..e570f64db4c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDriveSpecial_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_Get.g.cs index 516b603d8f6..052d78f8f21 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_List.g.cs index bb16d94cae0..5f0beb895de 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgDrive_List.g.cs @@ -109,7 +109,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -125,7 +125,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDefaultDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDefaultDrive.g.cs index d56d04f58f9..f96252fdf65 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDefaultDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDefaultDrive.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive.g.cs index b6aa43402f8..063766e7c6c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveId : GroupId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDriveCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDriveCount.g.cs index 4c2a224c384..707ca40e09b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDriveCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDriveCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_Get.g.cs index 5054b8bea67..dd1c1f06a63 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_List.g.cs index 1fa8fc941f1..4d5f1f91ca6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgGroupDrive_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare.g.cs index 9d745fa26ec..58efb43780a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedDriveItemId : null); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBase.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBase.g.cs index 1a3c96be764..61e0fb949a0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBase.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBase.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType.g.cs index ca5e71596e3..43b12e93951 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId1 : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseTypeCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseTypeCount.g.cs index 21d266eea3d..ed2c0f44fde 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseTypeCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseTypeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_Get.g.cs index b1f21d763cb..78d9c5beab5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_List.g.cs index 52ff76dcad1..aa5f248a388 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareContentTypeBaseType_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCount.g.cs index a5b09dfb235..9031d41f199 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUser.g.cs index 795fe94c14d..80ba22d4c1d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserMailboxSetting.g.cs index 101091cb9c8..e074055b9dd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningError.g.cs index 94b91be3b24..06142b8f230 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningErrorCount.g.cs index 6868fe4b4ed..eaf9afe07f7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareCreatedByUserServiceProvisioningErrorCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItem.g.cs index 8a9cf29c1be..ca0283f68f3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItem.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItemContent.g.cs index ad58bf51354..92a7f2a1fb7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareDriveItemContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem.g.cs index cfc367943b7..68f53bbe970 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveItemId : SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemContent.g.cs index b1f4c48bb8f..a162b58d30d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemCount.g.cs index d1e01e46864..138268fe47f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUser.g.cs index 2b694b47497..f1ba03fd589 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserMailboxSetting.g.cs index 7eb53796ad6..1e6b0c6b49d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningError.g.cs index 582be9b331d..6f32a2c2b43 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningErrorCount.g.cs index 3eea69d3b2e..d313ce39061 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItemLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_Get.g.cs index 859472e0708..a4395ef67ab 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_List.g.cs index de384bd4f97..0acc6b78d46 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareItem_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUser.g.cs index ffe8c2d5bd6..301ea3bea13 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserMailboxSetting.g.cs index 4b870dbc677..41a5da71a31 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningError.g.cs index 9861942d538..25cb1aa415b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningErrorCount.g.cs index 438ce3a4efa..a727ae335e3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareList.g.cs index 776abe8804e..442d7a7217d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareList.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn.g.cs index d1de352ebed..0feec9206c1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnCount.g.cs index b2723efb30b..59a54c7c36a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnSourceColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnSourceColumn.g.cs index 776a5fa153d..69d58608376 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnSourceColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumnSourceColumn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_Get.g.cs index 2055177a140..ff6b3a0d274 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_List.g.cs index 7488e76db43..ecf5780d07a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListColumn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType.g.cs index 621f37104a3..6f4aab05462 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn.g.cs index 49a5467bf37..bd165d86681 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnCount.g.cs index 17f0509c320..04619dff30d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink.g.cs index 66e0927a515..e093049a272 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLinkCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLinkCount.g.cs index 4a21fc15a07..8ed5689fc2a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLinkCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLinkCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_Get.g.cs index 7e2198683ee..204051d7d85 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_List.g.cs index eee260cd489..27a21921e96 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnLink_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition.g.cs index 4ff998f5c70..25edaa5a3a2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPositionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPositionCount.g.cs index deed05c6e1e..87f7f10a312 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPositionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPositionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_Get.g.cs index a100218eee2..c03d1877a32 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_List.g.cs index 812b36caabe..df464dd315a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnPosition_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnSourceColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnSourceColumn.g.cs index 30b4854aba1..bc31d22f8f9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnSourceColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumnSourceColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_Get.g.cs index 07e87d74f88..a28411f1556 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_List.g.cs index fdf089d2bfa..364850df196 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCompatibleHubContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCompatibleHubContentType.g.cs index b2d8f16851b..1177e1b31d0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCompatibleHubContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCompatibleHubContentType.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCount.g.cs index d6227ff05d0..d329781be99 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentTypeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_Get.g.cs index f45cd50e016..253e5721ffd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_List.g.cs index dd5a6232691..e10a92886d4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListContentType_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUser.g.cs index 46e924596e2..98249250d74 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserMailboxSetting.g.cs index a80ae0130a3..7033815af18 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningError.g.cs index 744871296c0..6771089f018 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningErrorCount.g.cs index 3f8502f34f4..68925a1b246 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListCreatedByUserServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListDrive.g.cs index 9b1622e736d..a1fca079559 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListDrive.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItem.g.cs index 2a54818d294..9d4e1cadbf4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItem.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemActivityByInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemActivityByInterval.g.cs index 0d7063e5359..d6c87ac9b7f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemActivityByInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemActivityByInterval.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemAnalytic.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemAnalytic.g.cs index a51f84c6025..9c55574fad9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemAnalytic.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemAnalytic.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUser.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUser.g.cs index b1d8f37bdbd..03a6cc6aab6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUser.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserMailboxSetting.g.cs index e4b396c60e7..61e5d5b48b7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningError.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningError.g.cs index 4fead5c86d4..c2bdedd4880 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningError.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningErrorCount.g.cs index 3753024bcf0..e10b8c11b42 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDelta.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDelta.g.cs index 2ac21359a19..78657b5387a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDelta.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion.g.cs index 002810eceb7..5f00c1b1250 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DocumentSetVersionId : ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionCount.g.cs index 3febd51d235..4587da35371 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionField.g.cs index 8cb0788669c..1684df62230 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_Get.g.cs index 282c30b61d5..899eb88bd55 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_List.g.cs index 62df52e0730..e8387f77809 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDocumentSetVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItem.g.cs index b404b0c7c82..6af90d63116 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItem.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItemContent.g.cs index 3a334a2cf52..812ed960be6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemDriveItemContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemField.g.cs index 89310d7e5c1..0988787723b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemField.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 0190e1607b9..6ffcad30501 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion.g.cs index 099aa7dbee4..8e1b5a6f67f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemVersionId : ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionCount.g.cs index d1279f38491..83f8d0df242 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionField.g.cs index 55108da0254..b74210fd7b6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_Get.g.cs index 68b50939793..2a2c1071ad3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_List.g.cs index 685470f7284..518db1ad87d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListItemVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation.g.cs index b9d7a73cd7d..54684e590d4 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperationCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperationCount.g.cs index 4b2d2c7842d..d3ec6618a1d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperationCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_Get.g.cs index 9491c8b3834..e89f9c64ea7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_List.g.cs index 34d76bb8cce..9562ccd233a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription.g.cs index e61d2fc3e92..d1f8455baac 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscriptionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscriptionCount.g.cs index a6c33f3b0d0..2d817488f63 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscriptionCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscriptionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_Get.g.cs index 871144656fd..bdda6fb0669 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_List.g.cs index 4313791f0ad..8b18aeac00b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareListSubscription_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgSharePermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgSharePermission.g.cs index a68717c8e09..e381ef8dfbb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgSharePermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgSharePermission.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRoot.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRoot.g.cs index 6c563f44269..130cef41696 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRoot.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRoot.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRootContent.g.cs index d85143af8f9..4263e2c24b7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareRootContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareSite.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareSite.g.cs index cc57a8f1aa6..747bc6f5daa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShareSite.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShareSite.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_Get.g.cs index a947b315297..7b1f650b1cb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_List.g.cs index c167bc727b4..9461ba5018d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgShare_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDefaultDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDefaultDrive.g.cs index efb7256c89b..b6c1ca6de85 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDefaultDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDefaultDrive.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive.g.cs index e07e8ee1183..77c1717bb04 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveId : UserId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDriveCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDriveCount.g.cs index b827cdea934..0c166cb11bf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDriveCount.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDriveCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_Get.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_Get.g.cs index 6d14395dae2..0cc992963e6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_Get.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_List.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_List.g.cs index f91158330dc..fa47ea31ec7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_List.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GetMgUserDrive_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GrantMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GrantMgDriveItemPermission.g.cs index c7a781555f7..be23f634671 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GrantMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GrantMgDriveItemPermission.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/GrantMgSharePermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/GrantMgSharePermission.g.cs index eb47340dfa9..528ce7c96d3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/GrantMgSharePermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/GrantMgSharePermission.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckinDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckinDriveItem.g.cs index f7e4b3e991d..1ff4a69f99b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckinDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckinDriveItem.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckoutDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckoutDriveItem.g.cs index c2904049fde..d3c28dc0a7a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckoutDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgCheckoutDriveItem.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Dist.g.cs deleted file mode 100644 index ef2cfbe8bee..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Dist.g.cs +++ /dev/null @@ -1,121 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/beta_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionBeta_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionBeta_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? Beta { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - [Parameter(Mandatory = false)] - public object? A { get; set; } - - [Parameter(Mandatory = false)] - public object? B { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Beta_Dist.Beta_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(Beta))) - { - var untypedBeta = UntypedValue.From(Beta); - if (untypedBeta is not null) - body.Beta = untypedBeta; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - if (this.IsParameterBound(nameof(A))) - { - var untypedA = UntypedValue.From(A); - if (untypedA is not null) - body.A = untypedA; - } - - if (this.IsParameterBound(nameof(B))) - { - var untypedB = UntypedValue.From(B); - if (untypedB is not null) - body.B = untypedB; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Beta_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Inv.g.cs deleted file mode 100644 index f72a551b76a..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBeta_Inv.g.cs +++ /dev/null @@ -1,111 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/beta_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionBeta_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionBeta_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? Beta { get; set; } - - [Parameter(Mandatory = false)] - public object? A { get; set; } - - [Parameter(Mandatory = false)] - public object? B { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Beta_Inv.Beta_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(Beta))) - { - var untypedBeta = UntypedValue.From(Beta); - if (untypedBeta is not null) - body.Beta = untypedBeta; - } - - if (this.IsParameterBound(nameof(A))) - { - var untypedA = UntypedValue.From(A); - if (untypedA is not null) - body.A = untypedA; - } - - if (this.IsParameterBound(nameof(B))) - { - var untypedB = UntypedValue.From(B); - if (untypedB is not null) - body.B = untypedB; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Beta_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist.g.cs deleted file mode 100644 index 2525db8c4aa..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionBinom_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionBinom_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? NumberS { get; set; } - - [Parameter(Mandatory = false)] - public object? Trials { get; set; } - - [Parameter(Mandatory = false)] - public object? ProbabilityS { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist.Binom_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(NumberS))) - { - var untypedNumberS = UntypedValue.From(NumberS); - if (untypedNumberS is not null) - body.NumberS = untypedNumberS; - } - - if (this.IsParameterBound(nameof(Trials))) - { - var untypedTrials = UntypedValue.From(Trials); - if (untypedTrials is not null) - body.Trials = untypedTrials; - } - - if (this.IsParameterBound(nameof(ProbabilityS))) - { - var untypedProbabilityS = UntypedValue.From(ProbabilityS); - if (untypedProbabilityS is not null) - body.ProbabilityS = untypedProbabilityS; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist_Range.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist_Range.g.cs deleted file mode 100644 index fe589df3e56..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Dist_Range.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Dist_Range")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionBinom_Dist_Range", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionBinom_Dist_RangeCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Trials { get; set; } - - [Parameter(Mandatory = false)] - public object? ProbabilityS { get; set; } - - [Parameter(Mandatory = false)] - public object? NumberS { get; set; } - - [Parameter(Mandatory = false)] - public object? NumberS2 { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Binom_Dist_Range.Binom_Dist_RangePostRequestBody(); - - if (this.IsParameterBound(nameof(Trials))) - { - var untypedTrials = UntypedValue.From(Trials); - if (untypedTrials is not null) - body.Trials = untypedTrials; - } - - if (this.IsParameterBound(nameof(ProbabilityS))) - { - var untypedProbabilityS = UntypedValue.From(ProbabilityS); - if (untypedProbabilityS is not null) - body.ProbabilityS = untypedProbabilityS; - } - - if (this.IsParameterBound(nameof(NumberS))) - { - var untypedNumberS = UntypedValue.From(NumberS); - if (untypedNumberS is not null) - body.NumberS = untypedNumberS; - } - - if (this.IsParameterBound(nameof(NumberS2))) - { - var untypedNumberS2 = UntypedValue.From(NumberS2); - if (untypedNumberS2 is not null) - body.NumberS2 = untypedNumberS2; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Dist_Range.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Inv.g.cs deleted file mode 100644 index e0b937445ab..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionBinom_Inv.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/binom_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionBinom_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionBinom_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Trials { get; set; } - - [Parameter(Mandatory = false)] - public object? ProbabilityS { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Binom_Inv.Binom_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Trials))) - { - var untypedTrials = UntypedValue.From(Trials); - if (untypedTrials is not null) - body.Trials = untypedTrials; - } - - if (this.IsParameterBound(nameof(ProbabilityS))) - { - var untypedProbabilityS = UntypedValue.From(ProbabilityS); - if (untypedProbabilityS is not null) - body.ProbabilityS = untypedProbabilityS; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Binom_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Math.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Math.g.cs deleted file mode 100644 index 7f6120a38c5..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Math.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/ceiling_Math")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionCeiling_Math", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionCeiling_MathCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - [Parameter(Mandatory = false)] - public object? Mode { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Math.Ceiling_MathPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - if (this.IsParameterBound(nameof(Mode))) - { - var untypedMode = UntypedValue.From(Mode); - if (untypedMode is not null) - body.Mode = untypedMode; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ceiling_Math.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Precise.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Precise.g.cs deleted file mode 100644 index 5845fbb6f74..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCeiling_Precise.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/ceiling_Precise")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionCeiling_Precise", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionCeiling_PreciseCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Ceiling_Precise.Ceiling_PrecisePostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ceiling_Precise.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist.g.cs deleted file mode 100644 index 8c53f93c5df..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionChiSq_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionChiSq_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist.ChiSq_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist_RT.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist_RT.g.cs deleted file mode 100644 index 444bd3d1bd6..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Dist_RT.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Dist_RT")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionChiSq_Dist_RT", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionChiSq_Dist_RTCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Dist_RT.ChiSq_Dist_RTPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Dist_RT.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv.g.cs deleted file mode 100644 index 59cee6b8431..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionChiSq_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionChiSq_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv.ChiSq_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv_RT.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv_RT.g.cs deleted file mode 100644 index e183892a8c5..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionChiSq_Inv_RT.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/chiSq_Inv_RT")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionChiSq_Inv_RT", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionChiSq_Inv_RTCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.ChiSq_Inv_RT.ChiSq_Inv_RTPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.ChiSq_Inv_RT.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_Norm.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_Norm.g.cs deleted file mode 100644 index b36cf2c0e43..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_Norm.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/confidence_Norm")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionConfidence_Norm", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionConfidence_NormCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - [Parameter(Mandatory = false)] - public object? Size { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Confidence_Norm.Confidence_NormPostRequestBody(); - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - if (this.IsParameterBound(nameof(Size))) - { - var untypedSize = UntypedValue.From(Size); - if (untypedSize is not null) - body.Size = untypedSize; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Confidence_Norm.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_T.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_T.g.cs deleted file mode 100644 index 5a4dfc5e832..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionConfidence_T.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/confidence_T")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionConfidence_T", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionConfidence_TCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - [Parameter(Mandatory = false)] - public object? Size { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Confidence_T.Confidence_TPostRequestBody(); - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - if (this.IsParameterBound(nameof(Size))) - { - var untypedSize = UntypedValue.From(Size); - if (untypedSize is not null) - body.Size = untypedSize; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Confidence_T.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCount.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCount.g.cs deleted file mode 100644 index 7d01f6ee411..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionCount.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/count")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionCount", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Count.CountPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Count.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionEcma_Ceiling.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionEcma_Ceiling.g.cs deleted file mode 100644 index 4287ff58e4a..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionEcma_Ceiling.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/ecma_Ceiling")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionEcma_Ceiling", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionEcma_CeilingCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Ecma_Ceiling.Ecma_CeilingPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Ecma_Ceiling.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErfC_Precise.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErfC_Precise.g.cs deleted file mode 100644 index 7b23016373c..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErfC_Precise.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/erfC_Precise")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionErfC_Precise", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionErfC_PreciseCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.ErfC_Precise.ErfC_PrecisePostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.ErfC_Precise.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErf_Precise.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErf_Precise.g.cs deleted file mode 100644 index 0f3ce2cbe45..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionErf_Precise.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/erf_Precise")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionErf_Precise", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionErf_PreciseCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Erf_Precise.Erf_PrecisePostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Erf_Precise.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionError_Type.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionError_Type.g.cs deleted file mode 100644 index 2a798a5e3c8..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionError_Type.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/error_Type")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionError_Type", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionError_TypeCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? ErrorVal { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Error_Type.Error_TypePostRequestBody(); - - if (this.IsParameterBound(nameof(ErrorVal))) - { - var untypedErrorVal = UntypedValue.From(ErrorVal); - if (untypedErrorVal is not null) - body.ErrorVal = untypedErrorVal; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Error_Type.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionExpon_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionExpon_Dist.g.cs deleted file mode 100644 index 259f360ac59..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionExpon_Dist.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/expon_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionExpon_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionExpon_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Lambda { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Expon_Dist.Expon_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Lambda))) - { - var untypedLambda = UntypedValue.From(Lambda); - if (untypedLambda is not null) - body.Lambda = untypedLambda; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Expon_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist.g.cs deleted file mode 100644 index 8b08786ba15..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionF_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionF_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom1 { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom2 { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.F_Dist.F_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom1))) - { - var untypedDegFreedom1 = UntypedValue.From(DegFreedom1); - if (untypedDegFreedom1 is not null) - body.DegFreedom1 = untypedDegFreedom1; - } - - if (this.IsParameterBound(nameof(DegFreedom2))) - { - var untypedDegFreedom2 = UntypedValue.From(DegFreedom2); - if (untypedDegFreedom2 is not null) - body.DegFreedom2 = untypedDegFreedom2; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist_RT.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist_RT.g.cs deleted file mode 100644 index 3c6b4b8f6f8..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Dist_RT.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Dist_RT")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionF_Dist_RT", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionF_Dist_RTCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom1 { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom2 { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.F_Dist_RT.F_Dist_RTPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom1))) - { - var untypedDegFreedom1 = UntypedValue.From(DegFreedom1); - if (untypedDegFreedom1 is not null) - body.DegFreedom1 = untypedDegFreedom1; - } - - if (this.IsParameterBound(nameof(DegFreedom2))) - { - var untypedDegFreedom2 = UntypedValue.From(DegFreedom2); - if (untypedDegFreedom2 is not null) - body.DegFreedom2 = untypedDegFreedom2; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Dist_RT.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv.g.cs deleted file mode 100644 index cd6c5004751..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionF_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionF_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom1 { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom2 { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.F_Inv.F_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom1))) - { - var untypedDegFreedom1 = UntypedValue.From(DegFreedom1); - if (untypedDegFreedom1 is not null) - body.DegFreedom1 = untypedDegFreedom1; - } - - if (this.IsParameterBound(nameof(DegFreedom2))) - { - var untypedDegFreedom2 = UntypedValue.From(DegFreedom2); - if (untypedDegFreedom2 is not null) - body.DegFreedom2 = untypedDegFreedom2; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv_RT.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv_RT.g.cs deleted file mode 100644 index 79b0ffe9e02..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionF_Inv_RT.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/f_Inv_RT")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionF_Inv_RT", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionF_Inv_RTCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom1 { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom2 { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.F_Inv_RT.F_Inv_RTPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom1))) - { - var untypedDegFreedom1 = UntypedValue.From(DegFreedom1); - if (untypedDegFreedom1 is not null) - body.DegFreedom1 = untypedDegFreedom1; - } - - if (this.IsParameterBound(nameof(DegFreedom2))) - { - var untypedDegFreedom2 = UntypedValue.From(DegFreedom2); - if (untypedDegFreedom2 is not null) - body.DegFreedom2 = untypedDegFreedom2; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.F_Inv_RT.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Math.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Math.g.cs deleted file mode 100644 index 2960c70e009..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Math.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/floor_Math")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionFloor_Math", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionFloor_MathCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - [Parameter(Mandatory = false)] - public object? Mode { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Floor_Math.Floor_MathPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - if (this.IsParameterBound(nameof(Mode))) - { - var untypedMode = UntypedValue.From(Mode); - if (untypedMode is not null) - body.Mode = untypedMode; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Floor_Math.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Precise.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Precise.g.cs deleted file mode 100644 index be0dc68d0b3..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionFloor_Precise.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/floor_Precise")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionFloor_Precise", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionFloor_PreciseCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Floor_Precise.Floor_PrecisePostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Floor_Precise.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGammaLn_Precise.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGammaLn_Precise.g.cs deleted file mode 100644 index 099172899c8..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGammaLn_Precise.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/gammaLn_Precise")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionGammaLn_Precise", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionGammaLn_PreciseCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.GammaLn_Precise.GammaLn_PrecisePostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.GammaLn_Precise.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Dist.g.cs deleted file mode 100644 index fd413e0980b..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/gamma_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionGamma_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionGamma_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? Beta { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Gamma_Dist.Gamma_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(Beta))) - { - var untypedBeta = UntypedValue.From(Beta); - if (untypedBeta is not null) - body.Beta = untypedBeta; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Gamma_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Inv.g.cs deleted file mode 100644 index 23892f040f7..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionGamma_Inv.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/gamma_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionGamma_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionGamma_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? Beta { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Gamma_Inv.Gamma_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(Beta))) - { - var untypedBeta = UntypedValue.From(Beta); - if (untypedBeta is not null) - body.Beta = untypedBeta; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Gamma_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionHypGeom_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionHypGeom_Dist.g.cs deleted file mode 100644 index 9f5c5b48bdb..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionHypGeom_Dist.g.cs +++ /dev/null @@ -1,111 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/hypGeom_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionHypGeom_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionHypGeom_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? SampleS { get; set; } - - [Parameter(Mandatory = false)] - public object? NumberSample { get; set; } - - [Parameter(Mandatory = false)] - public object? PopulationS { get; set; } - - [Parameter(Mandatory = false)] - public object? NumberPop { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.HypGeom_Dist.HypGeom_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(SampleS))) - { - var untypedSampleS = UntypedValue.From(SampleS); - if (untypedSampleS is not null) - body.SampleS = untypedSampleS; - } - - if (this.IsParameterBound(nameof(NumberSample))) - { - var untypedNumberSample = UntypedValue.From(NumberSample); - if (untypedNumberSample is not null) - body.NumberSample = untypedNumberSample; - } - - if (this.IsParameterBound(nameof(PopulationS))) - { - var untypedPopulationS = UntypedValue.From(PopulationS); - if (untypedPopulationS is not null) - body.PopulationS = untypedPopulationS; - } - - if (this.IsParameterBound(nameof(NumberPop))) - { - var untypedNumberPop = UntypedValue.From(NumberPop); - if (untypedNumberPop is not null) - body.NumberPop = untypedNumberPop; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.HypGeom_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionIso_Ceiling.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionIso_Ceiling.g.cs deleted file mode 100644 index 270f17a3cc5..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionIso_Ceiling.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/iso_Ceiling")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionIso_Ceiling", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionIso_CeilingCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Iso_Ceiling.Iso_CeilingPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Iso_Ceiling.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Dist.g.cs deleted file mode 100644 index 9646a28a918..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/logNorm_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionLogNorm_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionLogNorm_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Mean { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Dist.LogNorm_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Mean))) - { - var untypedMean = UntypedValue.From(Mean); - if (untypedMean is not null) - body.Mean = untypedMean; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.LogNorm_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Inv.g.cs deleted file mode 100644 index a326c3db6bc..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionLogNorm_Inv.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/logNorm_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionLogNorm_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionLogNorm_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? Mean { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.LogNorm_Inv.LogNorm_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(Mean))) - { - var untypedMean = UntypedValue.From(Mean); - if (untypedMean is not null) - body.Mean = untypedMean; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.LogNorm_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNegBinom_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNegBinom_Dist.g.cs deleted file mode 100644 index d4057f4bafc..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNegBinom_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/negBinom_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNegBinom_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNegBinom_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? NumberF { get; set; } - - [Parameter(Mandatory = false)] - public object? NumberS { get; set; } - - [Parameter(Mandatory = false)] - public object? ProbabilityS { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.NegBinom_Dist.NegBinom_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(NumberF))) - { - var untypedNumberF = UntypedValue.From(NumberF); - if (untypedNumberF is not null) - body.NumberF = untypedNumberF; - } - - if (this.IsParameterBound(nameof(NumberS))) - { - var untypedNumberS = UntypedValue.From(NumberS); - if (untypedNumberS is not null) - body.NumberS = untypedNumberS; - } - - if (this.IsParameterBound(nameof(ProbabilityS))) - { - var untypedProbabilityS = UntypedValue.From(ProbabilityS); - if (untypedProbabilityS is not null) - body.ProbabilityS = untypedProbabilityS; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.NegBinom_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNetworkDays_Intl.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNetworkDays_Intl.g.cs deleted file mode 100644 index 8152b5d4cf5..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNetworkDays_Intl.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/networkDays_Intl")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNetworkDays_Intl", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNetworkDays_IntlCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? StartDate { get; set; } - - [Parameter(Mandatory = false)] - public object? EndDate { get; set; } - - [Parameter(Mandatory = false)] - public object? Weekend { get; set; } - - [Parameter(Mandatory = false)] - public object? Holidays { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.NetworkDays_Intl.NetworkDays_IntlPostRequestBody(); - - if (this.IsParameterBound(nameof(StartDate))) - { - var untypedStartDate = UntypedValue.From(StartDate); - if (untypedStartDate is not null) - body.StartDate = untypedStartDate; - } - - if (this.IsParameterBound(nameof(EndDate))) - { - var untypedEndDate = UntypedValue.From(EndDate); - if (untypedEndDate is not null) - body.EndDate = untypedEndDate; - } - - if (this.IsParameterBound(nameof(Weekend))) - { - var untypedWeekend = UntypedValue.From(Weekend); - if (untypedWeekend is not null) - body.Weekend = untypedWeekend; - } - - if (this.IsParameterBound(nameof(Holidays))) - { - var untypedHolidays = UntypedValue.From(Holidays); - if (untypedHolidays is not null) - body.Holidays = untypedHolidays; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.NetworkDays_Intl.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Dist.g.cs deleted file mode 100644 index af228f6ef0e..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNorm_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNorm_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Mean { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Norm_Dist.Norm_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Mean))) - { - var untypedMean = UntypedValue.From(Mean); - if (untypedMean is not null) - body.Mean = untypedMean; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Inv.g.cs deleted file mode 100644 index cececbe0f32..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_Inv.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNorm_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNorm_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? Mean { get; set; } - - [Parameter(Mandatory = false)] - public object? StandardDev { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Norm_Inv.Norm_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(Mean))) - { - var untypedMean = UntypedValue.From(Mean); - if (untypedMean is not null) - body.Mean = untypedMean; - } - - if (this.IsParameterBound(nameof(StandardDev))) - { - var untypedStandardDev = UntypedValue.From(StandardDev); - if (untypedStandardDev is not null) - body.StandardDev = untypedStandardDev; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Dist.g.cs deleted file mode 100644 index e03be8be578..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Dist.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_S_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNorm_S_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNorm_S_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Z { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Dist.Norm_S_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(Z))) - { - var untypedZ = UntypedValue.From(Z); - if (untypedZ is not null) - body.Z = untypedZ; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_S_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Inv.g.cs deleted file mode 100644 index 5934022d37f..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionNorm_S_Inv.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/norm_S_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionNorm_S_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionNorm_S_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Norm_S_Inv.Norm_S_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Norm_S_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Exc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Exc.g.cs deleted file mode 100644 index b39512e97f2..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Exc.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentRank_Exc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionPercentRank_Exc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionPercentRank_ExcCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Exc.PercentRank_ExcPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.PercentRank_Exc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Inc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Inc.g.cs deleted file mode 100644 index aaffc650391..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentRank_Inc.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentRank_Inc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionPercentRank_Inc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionPercentRank_IncCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Significance { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.PercentRank_Inc.PercentRank_IncPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Significance))) - { - var untypedSignificance = UntypedValue.From(Significance); - if (untypedSignificance is not null) - body.Significance = untypedSignificance; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.PercentRank_Inc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Exc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Exc.g.cs deleted file mode 100644 index d3fbadf6a7d..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Exc.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentile_Exc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionPercentile_Exc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionPercentile_ExcCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? K { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Percentile_Exc.Percentile_ExcPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(K))) - { - var untypedK = UntypedValue.From(K); - if (untypedK is not null) - body.K = untypedK; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Percentile_Exc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Inc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Inc.g.cs deleted file mode 100644 index 9677cd3213e..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPercentile_Inc.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/percentile_Inc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionPercentile_Inc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionPercentile_IncCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? K { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Percentile_Inc.Percentile_IncPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(K))) - { - var untypedK = UntypedValue.From(K); - if (untypedK is not null) - body.K = untypedK; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Percentile_Inc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPoisson_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPoisson_Dist.g.cs deleted file mode 100644 index 6d395050031..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionPoisson_Dist.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/poisson_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionPoisson_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionPoisson_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Mean { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Poisson_Dist.Poisson_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Mean))) - { - var untypedMean = UntypedValue.From(Mean); - if (untypedMean is not null) - body.Mean = untypedMean; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Poisson_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Exc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Exc.g.cs deleted file mode 100644 index 6bc08f11515..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Exc.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/quartile_Exc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionQuartile_Exc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionQuartile_ExcCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? Quart { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Quartile_Exc.Quartile_ExcPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(Quart))) - { - var untypedQuart = UntypedValue.From(Quart); - if (untypedQuart is not null) - body.Quart = untypedQuart; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Quartile_Exc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Inc.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Inc.g.cs deleted file mode 100644 index a46bc753ad9..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionQuartile_Inc.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/quartile_Inc")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionQuartile_Inc", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionQuartile_IncCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? Quart { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Quartile_Inc.Quartile_IncPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(Quart))) - { - var untypedQuart = UntypedValue.From(Quart); - if (untypedQuart is not null) - body.Quart = untypedQuart; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Quartile_Inc.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Avg.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Avg.g.cs deleted file mode 100644 index 506f6503673..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Avg.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/rank_Avg")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionRank_Avg", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionRank_AvgCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Ref { get; set; } - - [Parameter(Mandatory = false)] - public object? Order { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Rank_Avg.Rank_AvgPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Ref))) - { - var untypedRef = UntypedValue.From(Ref); - if (untypedRef is not null) - body.Ref = untypedRef; - } - - if (this.IsParameterBound(nameof(Order))) - { - var untypedOrder = UntypedValue.From(Order); - if (untypedOrder is not null) - body.Order = untypedOrder; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Rank_Avg.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Eq.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Eq.g.cs deleted file mode 100644 index 89cbc204155..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionRank_Eq.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/rank_Eq")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionRank_Eq", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionRank_EqCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Number { get; set; } - - [Parameter(Mandatory = false)] - public object? Ref { get; set; } - - [Parameter(Mandatory = false)] - public object? Order { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Rank_Eq.Rank_EqPostRequestBody(); - - if (this.IsParameterBound(nameof(Number))) - { - var untypedNumber = UntypedValue.From(Number); - if (untypedNumber is not null) - body.Number = untypedNumber; - } - - if (this.IsParameterBound(nameof(Ref))) - { - var untypedRef = UntypedValue.From(Ref); - if (untypedRef is not null) - body.Ref = untypedRef; - } - - if (this.IsParameterBound(nameof(Order))) - { - var untypedOrder = UntypedValue.From(Order); - if (untypedOrder is not null) - body.Order = untypedOrder; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Rank_Eq.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionSkew_p.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionSkew_p.g.cs deleted file mode 100644 index ea2be5861e7..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionSkew_p.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/skew_p")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionSkew_p", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionSkew_pCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Skew_p.Skew_pPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Skew_p.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_P.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_P.g.cs deleted file mode 100644 index 5af0a866730..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_P.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDev_P")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionStDev_P", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionStDev_PCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.StDev_P.StDev_PPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.StDev_P.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_S.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_S.g.cs deleted file mode 100644 index ecb30786b91..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionStDev_S.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/stDev_S")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionStDev_S", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionStDev_SCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.StDev_S.StDev_SPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.StDev_S.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist.g.cs deleted file mode 100644 index c646baf6e15..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionT_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionT_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.T_Dist.T_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_2T.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_2T.g.cs deleted file mode 100644 index 79715a04a59..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_2T.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist_2T")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionT_Dist_2T", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionT_Dist_2TCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.T_Dist_2T.T_Dist_2TPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist_2T.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_RT.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_RT.g.cs deleted file mode 100644 index c18b9e19764..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Dist_RT.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Dist_RT")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionT_Dist_RT", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionT_Dist_RTCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.T_Dist_RT.T_Dist_RTPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Dist_RT.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv.g.cs deleted file mode 100644 index ec1eb601b4b..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Inv")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionT_Inv", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionT_InvCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.T_Inv.T_InvPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Inv.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv_2T.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv_2T.g.cs deleted file mode 100644 index 8b082702ed0..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionT_Inv_2T.g.cs +++ /dev/null @@ -1,81 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/t_Inv_2T")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionT_Inv_2T", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionT_Inv_2TCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Probability { get; set; } - - [Parameter(Mandatory = false)] - public object? DegFreedom { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.T_Inv_2T.T_Inv_2TPostRequestBody(); - - if (this.IsParameterBound(nameof(Probability))) - { - var untypedProbability = UntypedValue.From(Probability); - if (untypedProbability is not null) - body.Probability = untypedProbability; - } - - if (this.IsParameterBound(nameof(DegFreedom))) - { - var untypedDegFreedom = UntypedValue.From(DegFreedom); - if (untypedDegFreedom is not null) - body.DegFreedom = untypedDegFreedom; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.T_Inv_2T.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_P.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_P.g.cs deleted file mode 100644 index c03bf6bb316..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_P.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/var_P")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionVar_P", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionVar_PCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Var_P.Var_PPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Var_P.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_S.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_S.g.cs deleted file mode 100644 index 5556bf3a572..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionVar_S.g.cs +++ /dev/null @@ -1,71 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/var_S")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionVar_S", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionVar_SCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Values { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Var_S.Var_SPostRequestBody(); - - if (this.IsParameterBound(nameof(Values))) - { - var untypedValues = UntypedValue.From(Values); - if (untypedValues is not null) - body.Values = untypedValues; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Var_S.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWeibull_Dist.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWeibull_Dist.g.cs deleted file mode 100644 index 41723aef21b..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWeibull_Dist.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/weibull_Dist")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionWeibull_Dist", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionWeibull_DistCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Alpha { get; set; } - - [Parameter(Mandatory = false)] - public object? Beta { get; set; } - - [Parameter(Mandatory = false)] - public object? Cumulative { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Weibull_Dist.Weibull_DistPostRequestBody(); - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Alpha))) - { - var untypedAlpha = UntypedValue.From(Alpha); - if (untypedAlpha is not null) - body.Alpha = untypedAlpha; - } - - if (this.IsParameterBound(nameof(Beta))) - { - var untypedBeta = UntypedValue.From(Beta); - if (untypedBeta is not null) - body.Beta = untypedBeta; - } - - if (this.IsParameterBound(nameof(Cumulative))) - { - var untypedCumulative = UntypedValue.From(Cumulative); - if (untypedCumulative is not null) - body.Cumulative = untypedCumulative; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Weibull_Dist.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWorkDay_Intl.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWorkDay_Intl.g.cs deleted file mode 100644 index d1626795738..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionWorkDay_Intl.g.cs +++ /dev/null @@ -1,101 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/workDay_Intl")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionWorkDay_Intl", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionWorkDay_IntlCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? StartDate { get; set; } - - [Parameter(Mandatory = false)] - public object? Days { get; set; } - - [Parameter(Mandatory = false)] - public object? Weekend { get; set; } - - [Parameter(Mandatory = false)] - public object? Holidays { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.WorkDay_Intl.WorkDay_IntlPostRequestBody(); - - if (this.IsParameterBound(nameof(StartDate))) - { - var untypedStartDate = UntypedValue.From(StartDate); - if (untypedStartDate is not null) - body.StartDate = untypedStartDate; - } - - if (this.IsParameterBound(nameof(Days))) - { - var untypedDays = UntypedValue.From(Days); - if (untypedDays is not null) - body.Days = untypedDays; - } - - if (this.IsParameterBound(nameof(Weekend))) - { - var untypedWeekend = UntypedValue.From(Weekend); - if (untypedWeekend is not null) - body.Weekend = untypedWeekend; - } - - if (this.IsParameterBound(nameof(Holidays))) - { - var untypedHolidays = UntypedValue.From(Holidays); - if (untypedHolidays is not null) - body.Holidays = untypedHolidays; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.WorkDay_Intl.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionZ_Test.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionZ_Test.g.cs deleted file mode 100644 index 76dc2137da8..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgDriveItemWorkbookFunctionZ_Test.g.cs +++ /dev/null @@ -1,91 +0,0 @@ -#nullable enable - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Graph.PowerShell.Files.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("POST", "/drives/{drive-id}/items/{driveItem-id}/workbook/functions/z_Test")] - [Cmdlet(VerbsLifecycle.Invoke, "MgDriveItemWorkbookFunctionZ_Test", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult))] - public class InvokeMgDriveItemWorkbookFunctionZ_TestCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public object? Array { get; set; } - - [Parameter(Mandatory = false)] - public object? X { get; set; } - - [Parameter(Mandatory = false)] - public object? Sigma { get; set; } - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(DriveItemId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Files.Client.Drives.Item.Items.Item.Workbook.Functions.Z_Test.Z_TestPostRequestBody(); - - if (this.IsParameterBound(nameof(Array))) - { - var untypedArray = UntypedValue.From(Array); - if (untypedArray is not null) - body.Array = untypedArray; - } - - if (this.IsParameterBound(nameof(X))) - { - var untypedX = UntypedValue.From(X); - if (untypedX is not null) - body.X = untypedX; - } - - if (this.IsParameterBound(nameof(Sigma))) - { - var untypedSigma = UntypedValue.From(Sigma); - if (untypedSigma is not null) - body.Sigma = untypedSigma; - } - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.WorkbookFunctionResult? result; - try - { - result = client.Drives[DriveId].Items[DriveItemId].Workbook.Functions.Z_Test.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, DriveItemId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgExtractDriveItemSensitivityLabel.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgExtractDriveItemSensitivityLabel.g.cs index 7b7c401e07e..be0948736be 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgExtractDriveItemSensitivityLabel.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgExtractDriveItemSensitivityLabel.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgFollowDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgFollowDriveItem.g.cs index 9e9eeb92f3c..027cbdfb30f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgFollowDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgFollowDriveItem.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgGraphDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgGraphDrive.g.cs index 595e2683192..d82d7228d4f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgGraphDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgGraphDrive.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgInviteDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgInviteDriveItem.g.cs index 76dbd327f56..dfacdbf66bf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgInviteDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgInviteDriveItem.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgPreviewDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgPreviewDriveItem.g.cs index affbd713464..ee95a300503 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgPreviewDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgPreviewDriveItem.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveItemSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveItemSubscription.g.cs index 3fab4c83ea4..c44ff65daaa 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveItemSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveItemSubscription.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveListSubscription.g.cs index 0c70038aaaf..bb1e01ac681 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeDriveListSubscription.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeShareListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeShareListSubscription.g.cs index b115756d08b..b011aa5cf10 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeShareListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeShareListSubscription.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgRecentDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgRecentDrive.g.cs index ca635ce877b..db27b4e5a4f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgRecentDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgRecentDrive.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgUnfollowDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgUnfollowDriveItem.g.cs index 05986e1a9b7..684901d30e6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/InvokeMgUnfollowDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/InvokeMgUnfollowDriveItem.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/JoinMgDriveListContentTypeWithHubSite.g.cs b/src/Files/wrapper/v1.0/Cmdlets/JoinMgDriveListContentTypeWithHubSite.g.cs index be56ec41072..6389b1520ba 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/JoinMgDriveListContentTypeWithHubSite.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/JoinMgDriveListContentTypeWithHubSite.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/JoinMgShareListContentTypeWithHubSite.g.cs b/src/Files/wrapper/v1.0/Cmdlets/JoinMgShareListContentTypeWithHubSite.g.cs index afcc2d48090..64359e8f8a2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/JoinMgShareListContentTypeWithHubSite.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/JoinMgShareListContentTypeWithHubSite.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDrive.g.cs index b6d1a4a09e7..39b5fc1e0dc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDrive.g.cs @@ -128,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveBundle.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveBundle.g.cs index f8db83aad64..2bf58a5e173 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveBundle.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveBundle.g.cs @@ -243,7 +243,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItem.g.cs index d75c87c1cdc..ba1e968d04d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItem.g.cs @@ -243,7 +243,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemAnalyticItemActivityStat.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemAnalyticItemActivityStat.g.cs index e2a3c9e1db1..fcd400bc7ff 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemAnalyticItemActivityStat.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemAnalyticItemActivityStat.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemChild.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemChild.g.cs index c8b97cd28b0..d84440e1f9a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemChild.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemChild.g.cs @@ -245,7 +245,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemLink.g.cs index 0b9e1adafc6..17a9cbdc92c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemLink.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemPermission.g.cs index 1dee7496146..be440a93e2f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemPermission.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemSubscription.g.cs index 401cffbd0f3..09cad4c6c85 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemSubscription.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemThumbnail.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemThumbnail.g.cs index fa58ba27fa7..39db2068967 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemThumbnail.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemThumbnail.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemUploadSession.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemUploadSession.g.cs index a073d52fc12..60df9154efe 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemUploadSession.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemUploadSession.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemVersion.g.cs index 113998532f7..d6073bfb9e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveItemVersion.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListColumn.g.cs index ed4a39f7744..f1784275a59 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListColumn.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentType.g.cs index 444bcfe60dd..b4e5339b647 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentType.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumn.g.cs index 03515c01df8..8abf2e7589c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumnLink.g.cs index 49783dfc6fd..1b6d8034c26 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListContentTypeColumnLink.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItem.g.cs index 3d63b221d8a..03717b3b3ea 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItem.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemDocumentSetVersion.g.cs index 8a65dc29540..14341e841de 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemDocumentSetVersion.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemLink.g.cs index c3e8d3e2b19..d5c8e3cbadb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemLink.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemVersion.g.cs index 6ad0f4f58e2..07ccb4c82d2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListItemVersion.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListOperation.g.cs index 81432a12b0a..542a9e81470 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListOperation.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListSubscription.g.cs index f2a11002cc6..1a5bc82d2b0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgDriveListSubscription.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShare.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShare.g.cs index b6522471867..10bdf3d0125 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShare.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShare.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListColumn.g.cs index dae817256ea..86e4098fcd7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListColumn.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentType.g.cs index 66cff8017ad..7191584465f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentType.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumn.g.cs index 066c707cee9..41c3160ffb5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumnLink.g.cs index e247257badd..4a86c6e8c71 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListContentTypeColumnLink.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItem.g.cs index fe817ac9334..8e932b059ae 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItem.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemDocumentSetVersion.g.cs index 68dc9192123..3cca59b63b5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemDocumentSetVersion.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemVersion.g.cs index ca51745351e..33f0d0d3bdf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListItemVersion.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListOperation.g.cs index 75879909890..9cbeafe711a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListOperation.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListSubscription.g.cs index e41087bd1a0..2b28539fc28 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/NewMgShareListSubscription.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/PublishMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/PublishMgDriveListContentType.g.cs index 3db153784a9..c1abd81cbad 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/PublishMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/PublishMgDriveListContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/PublishMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/PublishMgShareListContentType.g.cs index bd54228a37f..f890ab1ab80 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/PublishMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/PublishMgShareListContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDrive.g.cs index 4b1dd65681e..9a5958cc598 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDrive.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveBundleContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveBundleContent.g.cs index c0100f11354..4b0c00ea482 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveBundleContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveBundleContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveFollowingContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveFollowingContent.g.cs index b37e94bab0f..2872be471e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveFollowingContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveFollowingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItem.g.cs index 78992c58884..13590e23721 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItem.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalytic.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalytic.g.cs index 25932e50bf5..184c626e0e5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalytic.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalytic.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStat.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStat.g.cs index 57db8ffa9ee..92274643e70 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStat.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStat.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs deleted file mode 100644 index d28323c3375..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("DELETE", "/drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content")] - [Cmdlet(VerbsCommon.Remove, "MgDriveItemAnalyticItemActivityStatActivityDriveItemContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgDriveItemAnalyticItemActivityStatActivityDriveItemContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ItemActivityStatId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string ItemActivityId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ItemActivityId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ItemActivityId); - return; - } - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemCheckout.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemCheckout.g.cs index 8e069ee9208..59f7a87f49e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemCheckout.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemCheckout.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemChildContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemChildContent.g.cs index 71ccd3ae831..b21a8f1bdb6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemChildContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemChildContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemContent.g.cs index d5d0ff634db..6fa249f09ce 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermanent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermanent.g.cs index 53f449cc4cd..d9b63b272b6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermanent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermission.g.cs index 51dff4cd7c0..f6ed9a19b03 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemPermission.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemRetentionLabel.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemRetentionLabel.g.cs index a7f7fa0a1d0..d182b07cd21 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemRetentionLabel.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemRetentionLabel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemSubscription.g.cs index a15c37d4af3..6ca331ac847 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemSubscription.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemThumbnail.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemThumbnail.g.cs index f4526ae1f4e..d406273f543 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemThumbnail.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemThumbnail.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThumbnailSetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersion.g.cs index 64d72faf18b..c70ff7d1397 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersionContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersionContent.g.cs index fa78c729195..850f9b0195a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersionContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveItemVersionContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveList.g.cs index 45e9328c8d6..7699d8a59d6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveList.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListColumn.g.cs index a425a2acfba..ce3591d73c7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListColumn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentType.g.cs index 87a8148c595..bb89e93219c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentType.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumn.g.cs index df0b17ee945..36a182aacdf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumnLink.g.cs index 28de9bd17fd..a50b0d18782 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListContentTypeColumnLink.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItem.g.cs index bf30aa7242d..47195d97dee 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItem.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersion.g.cs index 338c16c75cf..e08f461a497 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersionField.g.cs index 59534a44ab3..9b534f9ad41 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDocumentSetVersionField.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDriveItemContent.g.cs index dba8e83740f..c2b190403f3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemField.g.cs index 811a2c50bf8..a4663895769 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemField.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersion.g.cs index e57f24921aa..20dfb533ca3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersionField.g.cs index 1cce6f07480..c3fa804c0e3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListItemVersionField.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListOperation.g.cs index 5fe87b4657f..4c0a472338e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListSubscription.g.cs index 4449949921e..1d78a755cd3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveListSubscription.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveRootContent.g.cs index df66b6c3187..a3eca5e1d6b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveRootContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveSpecialContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveSpecialContent.g.cs index 2b42c337710..78cb755d7e1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveSpecialContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgDriveSpecialContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShare.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShare.g.cs index 7409f4e9f9a..dbae2a0689f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShare.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShare.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareDriveItemContent.g.cs index 12c48487310..bd73749e3bd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareDriveItemContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareItemContent.g.cs index 5db46910bb8..b407b2b7c3b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareList.g.cs index ceb79586061..206359b85a5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareList.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListColumn.g.cs index e7fb5f0600a..e48bce5f376 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListColumn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentType.g.cs index 13c98c6bb64..cc05ead8ff5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentType.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumn.g.cs index d25141c0356..6ebc8978084 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumnLink.g.cs index a1380bad515..87e9d6c57bc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListContentTypeColumnLink.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItem.g.cs index 455ab8d47cb..0e7930738e5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItem.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersion.g.cs index 9cc6ae098f1..5a353541160 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersionField.g.cs index 034fb75c296..a7ed79d2ed6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDocumentSetVersionField.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDriveItemContent.g.cs index bc127c5deef..1a8b108797a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemField.g.cs index 3ed129e4b01..a36fd2003c3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemField.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersion.g.cs index e8e4b5a2b11..ee1f9e67ab2 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersionField.g.cs index d059b46b60d..a091b0c869b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListItemVersionField.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListOperation.g.cs index 9cdf4246a0d..871e6c15258 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListSubscription.g.cs index 93c5226af39..8df821f6c6e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareListSubscription.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgSharePermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgSharePermission.g.cs index 2a48eab5331..a5480261a5b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgSharePermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgSharePermission.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareRootContent.g.cs index 2eae5b3df24..a9ee4a1fa42 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RemoveMgShareRootContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItem.g.cs index 6972e7a6179..9772dcd2f16 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItem.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItemVersion.g.cs index ce7cae80a4d..355889184fe 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveItemVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemDocumentSetVersion.g.cs index f8498b42244..b70bb96bad5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemDocumentSetVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemVersion.g.cs index 920bf750ff5..482e948caa8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgDriveListItemVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemDocumentSetVersion.g.cs index cca9686a87d..d8b2e64cc75 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemDocumentSetVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemVersion.g.cs index 0aabe223e8d..d578da5de28 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/RestoreMgShareListItemVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveBundleContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveBundleContent.g.cs index 99ffcc5157e..0d0abef5328 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveBundleContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveBundleContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveFollowingContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveFollowingContent.g.cs index 96f02258649..25e44f4e5c7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveFollowingContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveFollowingContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs deleted file mode 100644 index 590b8515398..00000000000 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ /dev/null @@ -1,64 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Files.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Files -{ - [GraphRoute("PUT", "/drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content")] - [Cmdlet(VerbsCommon.Set, "MgDriveItemAnalyticItemActivityStatActivityDriveItemContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Files.Client.Models.DriveItem))] - public class SetMgDriveItemAnalyticItemActivityStatActivityDriveItemContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string DriveId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string DriveItemId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ItemActivityStatId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string ItemActivityId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, - HelpMessage = "Path to the file whose contents are uploaded.")] - public string InFile { get; set; } = string.Empty; - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ItemActivityId, "Set")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Files.Client.Models.DriveItem? result; - try - { - using var content = System.IO.File.OpenRead(InFile); - result = client.Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].DriveItem.Content.PutAsync(content, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ItemActivityId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemChildContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemChildContent.g.cs index 398f79e5b33..cddae8506d5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemChildContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemChildContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId1); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemContent.g.cs index 8479019935f..c488e6b1310 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemSensitivityLabel.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemSensitivityLabel.g.cs index c351168ca7f..ea2a4cad6ee 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemSensitivityLabel.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemSensitivityLabel.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemVersionContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemVersionContent.g.cs index a15cf79b823..cfcf315da4f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemVersionContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveItemVersionContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveListItemDriveItemContent.g.cs index 4f1579af1db..3637cb7d802 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveListItemDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveRootContent.g.cs index a98f7738223..c7d08509c98 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveRootContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveSpecialContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveSpecialContent.g.cs index 699b803b7b0..c43607785c7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveSpecialContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgDriveSpecialContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareDriveItemContent.g.cs index e35db833c29..5efc5838497 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareDriveItemContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareItemContent.g.cs index 64945d5110a..0bec3dfeb03 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareListItemDriveItemContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareListItemDriveItemContent.g.cs index 6fe30e9957a..f5605ff250a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareListItemDriveItemContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareListItemDriveItemContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareRootContent.g.cs b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareRootContent.g.cs index d0cd53823ef..f9229956d0d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/SetMgShareRootContent.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/SetMgShareRootContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveItemPermission.g.cs index 50a4ac5c0d5..0ad4091224d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveItemPermission.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveListContentTypePublished.g.cs b/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveListContentTypePublished.g.cs index f2e00bdb00b..5dcbd858963 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveListContentTypePublished.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/TestMgDriveListContentTypePublished.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/TestMgShareListContentTypePublished.g.cs b/src/Files/wrapper/v1.0/Cmdlets/TestMgShareListContentTypePublished.g.cs index 30e8e3b47c4..37675e4e4c5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/TestMgShareListContentTypePublished.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/TestMgShareListContentTypePublished.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgDriveListContentType.g.cs index 823585f753a..19a4f5d4deb 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgDriveListContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgShareListContentType.g.cs index 7390d68e43a..9b85e4407e5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UnpublishMgShareListContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDrive.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDrive.g.cs index 182296fc35a..8c9d6234e61 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDrive.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDrive.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -143,7 +143,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveCreatedByUserMailboxSetting.g.cs index 5cd5d770269..c67ea2d6ff3 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveCreatedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItem.g.cs index 324cdd3ca1b..336eb2aa1ed 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItem.g.cs @@ -245,7 +245,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; @@ -259,7 +259,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalytic.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalytic.g.cs index bba6361d0bf..b9f1dd1031e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalytic.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalytic.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Analytics.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalyticItemActivityStat.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalyticItemActivityStat.g.cs index 91539d3da2e..2724eb80acc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalyticItemActivityStat.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemAnalyticItemActivityStat.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Analytics.ItemActivityStats[ItemActivityStatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemCreatedByUserMailboxSetting.g.cs index a761578042d..0705e86bf5d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemLastModifiedByUserMailboxSetting.g.cs index bde45eda4f4..4b0cfe434ec 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemPermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemPermission.g.cs index 8bd13d83b70..1c36338713d 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemPermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemPermission.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -129,7 +129,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemRetentionLabel.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemRetentionLabel.g.cs index 196a689a88c..24404d290d8 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemRetentionLabel.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemRetentionLabel.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].RetentionLabel.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemSubscription.g.cs index b18de3aa48d..87a1b3ed48f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemSubscription.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemThumbnail.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemThumbnail.g.cs index 36df1e67075..8e142befa07 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemThumbnail.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemThumbnail.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThumbnailSetId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Thumbnails[ThumbnailSetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThumbnailSetId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemVersion.g.cs index 6f470ff2911..513774e0898 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveItemVersion.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].Items[DriveItemId].Versions[DriveItemVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveLastModifiedByUserMailboxSetting.g.cs index 478f760fd70..469f2d54b7f 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveLastModifiedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveList.g.cs index e8d9b662ecb..7f3e30a05c9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveList.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListColumn.g.cs index d1108ef0277..8d545c5ffbc 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -247,7 +247,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentType.g.cs index d9722a69207..336e61dd029 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentType.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumn.g.cs index f08a73f7d57..030d2e5e652 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -249,7 +249,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumnLink.g.cs index 4daaf61f78f..4e161c8005c 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListContentTypeColumnLink.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListCreatedByUserMailboxSetting.g.cs index d8952ea044c..ef5113ab8e6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListCreatedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItem.g.cs index c693a4ddd93..ec61c872f25 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItem.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemCreatedByUserMailboxSetting.g.cs index 1068d55404f..be9fa219f9a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersion.g.cs index 74112a6fdab..9c2bddf838e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersion.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersionField.g.cs index 54c0875e519..602fc68cf09 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemDocumentSetVersionField.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemField.g.cs index 1e2e3d6ef3e..d4cc6db73ed 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemField.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemLastModifiedByUserMailboxSetting.g.cs index 43ab5ca6d09..16f7ab8bfe6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersion.g.cs index 0a1fc50c86f..97be92adaf0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersion.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].Versions[ListItemVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersionField.g.cs index 03cb1bef40a..067325f32e0 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListItemVersionField.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Items[ListItemId].Versions[ListItemVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListLastModifiedByUserMailboxSetting.g.cs index fa279e6b1b8..c8cf07c0fda 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListLastModifiedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListOperation.g.cs index da7e6e44e71..807c4e8985a 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListOperation.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListSubscription.g.cs index 4bb764c6adc..5f556e301cf 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgDriveListSubscription.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -147,7 +147,7 @@ protected override void ProcessRecord() { result = client.Drives[DriveId].List.Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShare.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShare.g.cs index 28ae7329287..a1b7a5e89bd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShare.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShare.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareCreatedByUserMailboxSetting.g.cs index dc31ef1e4b8..3bf3632053b 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareCreatedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareLastModifiedByUserMailboxSetting.g.cs index 170be25eca5..4022520eda6 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareLastModifiedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareList.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareList.g.cs index db5ac7891f3..1ea96766607 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareList.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareList.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListColumn.g.cs index f384a6721d7..54c33e0cdae 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -247,7 +247,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentType.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentType.g.cs index 05c0d5aacdd..02944c1e021 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentType.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentType.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumn.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumn.g.cs index d6d1cf6832a..a3180a811b7 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumn.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -249,7 +249,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumnLink.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumnLink.g.cs index 2dcef3dcc7a..48359a49f9e 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumnLink.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListContentTypeColumnLink.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListCreatedByUserMailboxSetting.g.cs index 8be01d381cf..b64bd8dd142 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListCreatedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItem.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItem.g.cs index 97754a9e03f..b8e5f173f55 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItem.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItem.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemCreatedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemCreatedByUserMailboxSetting.g.cs index b3c3a8968fd..b4e8aa70fd1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersion.g.cs index 5e34f9bd59b..3b183421937 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersion.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersionField.g.cs index e09334fe7d5..70f554d88c9 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemDocumentSetVersionField.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemField.g.cs index 659a44a8110..8d5674d92b5 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemField.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemLastModifiedByUserMailboxSetting.g.cs index 3d60a5cc6d0..744a1614160 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersion.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersion.g.cs index b500bdaa86c..4ce11841d84 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersion.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersion.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].Versions[ListItemVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersionField.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersionField.g.cs index 8e1f373158a..6c54583b835 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersionField.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListItemVersionField.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Items[ListItemId].Versions[ListItemVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListLastModifiedByUserMailboxSetting.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListLastModifiedByUserMailboxSetting.g.cs index ee34728e0cf..481e2504ffd 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListLastModifiedByUserMailboxSetting.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListLastModifiedByUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListOperation.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListOperation.g.cs index a32d66066c2..b9be05b4fd1 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListOperation.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListOperation.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListSubscription.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListSubscription.g.cs index 8130190821c..226b97bc439 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListSubscription.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgShareListSubscription.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -147,7 +147,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].List.Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgSharePermission.g.cs b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgSharePermission.g.cs index de72db7ad0e..32a4d358445 100644 --- a/src/Files/wrapper/v1.0/Cmdlets/UpdateMgSharePermission.g.cs +++ b/src/Files/wrapper/v1.0/Cmdlets/UpdateMgSharePermission.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.Shares[SharedDriveItemId].Permission.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedDriveItemId); return; diff --git a/src/Groups/wrapper/v1.0/Client/Models/Chat.cs b/src/Groups/wrapper/v1.0/Client/Models/Chat.cs index 74137e96826..44576ce291a 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Groups.Client.Mod #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Groups/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Groups/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..45d1402e0a4 --- /dev/null +++ b/src/Groups/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Groups.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Groups.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Groups.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Groups/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Groups/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..37fd6be5c86 --- /dev/null +++ b/src/Groups/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Groups.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Groups/wrapper/v1.0/Client/Models/Group.cs b/src/Groups/wrapper/v1.0/Client/Models/Group.cs index 116fb2202cd..c08c70a8289 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Groups.Client.Mo #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Groups.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Groups.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Groups/wrapper/v1.0/Client/Models/List.cs b/src/Groups/wrapper/v1.0/Client/Models/List.cs index cffdc68708c..7246d869257 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/List.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Groups.Client.Mod #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Groups/wrapper/v1.0/Client/Models/ListItem.cs b/src/Groups/wrapper/v1.0/Client/Models/ListItem.cs index 80c7e78d74b..468a08d252c 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Groups.Client #else public global::Microsoft.Graph.PowerShell.Groups.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 1b0a1b86fdf..79ef29a2e9d 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Grou #nullable restore #else public global::Microsoft.Graph.PowerShell.Groups.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Groups.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Groups.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Grou #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Groups.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..884d390d6f5 --- /dev/null +++ b/src/Groups/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Groups.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Groups/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Groups/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index d286042b613..12c050b15f8 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Groups.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Groups.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Groups/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Groups/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index c32744b6dce..7ecf58f4857 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Groups.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Groups.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Groups.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Groups/wrapper/v1.0/Client/Models/User.cs b/src/Groups/wrapper/v1.0/Client/Models/User.cs index 87a985ad298..d1538369bd8 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/User.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Groups.Client.Mod #nullable restore #else public global::Microsoft.Graph.PowerShell.Groups.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Groups.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Groups.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Groups.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Groups/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Groups/wrapper/v1.0/Client/Models/UserActivityType.cs index 9a92a46ca46..775206bda66 100644 --- a/src/Groups/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Groups/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Groups/wrapper/v1.0/Client/kiota-lock.json b/src/Groups/wrapper/v1.0/Client/kiota-lock.json index db9670216bb..5981dccf248 100644 --- a/src/Groups/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Groups/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "53222AFAE62490D25804FFD2401FE1BE100299F6B54C2A5C529A61263CDDFAF23342F9DE6321AFCE96EF6E224090DA9E002FACF9A5EA880508E33196ECE05772", + "descriptionHash": "061EB567B8A7C1AB056FBDC65B8BAABC7D4904026FE7A7DE4BA90902ACE80A4F5E9E93C41F25E8E1D638F5E71D999D304DF374E3BA5F30D51CD4AAD30A4B6564", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Groups.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupFavorite.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupFavorite.g.cs index dab6badcfe5..4048079ae7a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupFavorite.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupFavorite.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupToLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupToLifecyclePolicy.g.cs index e6b027a5056..18caa19ca37 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupToLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/AddMgGroupToLifecyclePolicy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupGrantedPermissionForApp.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupGrantedPermissionForApp.g.cs index de1a4dc9976..478db966815 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupGrantedPermissionForApp.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupGrantedPermissionForApp.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberGroup.g.cs index ba8e54c7712..53b70da50f4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberObject.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberObject.g.cs index f54c1a58554..5eacb507e46 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberObject.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberGroup.g.cs index 9cb82f7ac51..f0ec352cd95 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberObject.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberObject.g.cs index 3219fbec526..c0d3423171a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberObject.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ConfirmMgGroupSettingTemplateMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup.g.cs index 852ed08791d..150fa104cb5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupId : null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSender.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSender.g.cs index 6d7abd1d3b9..34040284c96 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSender.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSender.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderByRef.g.cs index a64bc3a577c..c8301176c2b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderCount.g.cs index 2678cd46556..b23bb650389 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupAcceptedSenderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupById.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupById.g.cs index c10f162d9bc..364614e768d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupById.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation.g.cs index a8502fb8464..e79507774e7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationCount.g.cs index 2ae49bc0da6..5ef1dc447c6 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread.g.cs index 9680e749714..056aa888d0f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationThreadId : ConversationId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadCount.g.cs index baeafca2711..b5687d97e85 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost.g.cs index 39a407bd0e1..589f20fe289 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PostId : ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment.g.cs index f6904d12394..ea896c73269 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachmentCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachmentCount.g.cs index 84d63050716..d63d08a8741 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachmentCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachmentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_Get.g.cs index bc980417050..95183fdc4b3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_List.g.cs index a9f70bd60b4..fab5e750ad0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostAttachment_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostCount.g.cs index 92f1bc3ef6a..be93dc21963 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension.g.cs index 4b0eadc2fbf..f69b9d00112 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtensionCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtensionCount.g.cs index b91bed1f2f9..8d0b520f38b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtensionCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtensionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_Get.g.cs index 4ab9ce0061d..56ec14afccc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_List.g.cs index 1689652d941..1ebd88095bc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostExtension_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment.g.cs index 3aadb0cf072..f2f9d8afc37 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachmentCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachmentCount.g.cs index b8835fa1e7c..adee8a79bb8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachmentCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachmentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_Get.g.cs index 1eec5195189..2f4cfe37728 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_List.g.cs index 8600bb9a030..9cebb0838df 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToAttachment_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension.g.cs index 2e571df8f50..cc9467247e3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtensionCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtensionCount.g.cs index 8bd73d576f6..09a67e523c1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtensionCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtensionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_Get.g.cs index 0fd5673a409..9f8413ba14a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_List.g.cs index b0c46d1d7e8..1591e391a78 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPostInReplyToExtension_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_Get.g.cs index eee87576175..5863d3a0b36 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_List.g.cs index da80402212e..92ab1bbcdff 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThreadPost_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_Get.g.cs index 0bd11690b02..61a9df57992 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_List.g.cs index 8088c73ca26..85d1ce732e2 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversationThread_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_Get.g.cs index c859e4ff201..7152deac88c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_List.g.cs index aaaaf1131ec..6adad947d0c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupConversation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCount.g.cs index fe32efe9f2d..f79a8e320db 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCreatedOnBehalfOf.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCreatedOnBehalfOf.g.cs index 2f92f4c8175..d87ea7fc455 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCreatedOnBehalfOf.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupCreatedOnBehalfOf.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupDelta.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupDelta.g.cs index aee910dd401..33f85fab72e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupDelta.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension.g.cs index 1a490b2e1f0..4aad5652f0d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtensionCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtensionCount.g.cs index b6381d17710..d8c907208b5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtensionCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_Get.g.cs index b3692f87b59..6f9f48c52e9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_List.g.cs index b7f9fdee3ff..28eec2ee71e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy.g.cs index 19db846c894..c093c0e9359 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupLifecyclePolicyId : null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyByGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyByGroup.g.cs index 39be1fd78e3..2c9ec128426 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyByGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyByGroup.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyCount.g.cs index b9b240a0e49..a6398b3a64f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_Get.g.cs index 05dd6ece361..ec7a784663e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_List.g.cs index bb05d86c5fa..0997eb54937 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupLifecyclePolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMember.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMember.g.cs index 59458027a23..97ef58e66de 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMember.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMember.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication.g.cs index d14f348c0b9..66443af70fd 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_Get.g.cs index edabe117cc0..1281b183eca 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_List.g.cs index bffc56a3b68..d1c40bd3859 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice.g.cs index 992d67726a0..e39e1abbfed 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_Get.g.cs index 3b585bfec45..ed2d8053950 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_List.g.cs index f3873715c9b..f096ccbccda 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup.g.cs index 8d8e76da34a..3592afd6638 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_Get.g.cs index 4468d1760a6..602156ee158 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_List.g.cs index 68952c0aaee..df26491da58 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact.g.cs index 65be5100e4c..fc63dcfccb8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_Get.g.cs index e8bba8ab22d..890994f0fd7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_List.g.cs index 2af3e18f7be..ac52a9110b3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal.g.cs index 085276f1d8d..869bc0679c5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_Get.g.cs index e1a77a06833..0f17bcd8985 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_List.g.cs index fb0fd790181..479441f879a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser.g.cs index 829c2dd1d89..708249f2df4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_Get.g.cs index 4ba4b877b83..c16f00cde2f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_List.g.cs index 7970a163189..646dbb0b72d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberByRef.g.cs index a974be5b21a..a0c5f58d87e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCount.g.cs index 5d9dfc79026..d2639053ddb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsApplication.g.cs index c76cd960856..7f23ef00786 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsDevice.g.cs index bf6fa5281bb..5057341865a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsGroup.g.cs index 3f7eaf3d5f4..f27ea624626 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsOrgContact.g.cs index 70e4e12abd6..6b5326978fb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsServicePrincipal.g.cs index be7271bd87f..2b277073376 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsUser.g.cs index 9e8eec72fa4..d5f3abcaaa4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberGroup.g.cs index e5165e48048..006605648a8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberObject.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberObject.g.cs index 211117615c6..755e6fafa35 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberObject.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf.g.cs index 6d7a9ebe35c..dcf4ff234d9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit.g.cs index 7f7af980a63..646f682ecc9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_Get.g.cs index a2bffc0fefc..68d4e3c8bb6 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_List.g.cs index d8528b1e60b..ab849f39cc0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup.g.cs index 5d737323a2e..f2847a4400f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_Get.g.cs index 1506a853cee..ca522540d01 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_List.g.cs index 212f8a0b4f7..04fab4bd0a3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCount.g.cs index 00d629d8e06..6f446e3e1d0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsAdministrativeUnit.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsAdministrativeUnit.g.cs index 9a4d2e72bf3..bc400e23067 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsGroup.g.cs index 41b379ad7d3..b4e65059c49 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_Get.g.cs index 8b91dfe324b..d09dd974fa5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_List.g.cs index cf9d8f55c1f..06664574cc0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError.g.cs index 7426333be78..a885f177f39 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication.g.cs index 082a09289f4..a3a00fa6b82 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_Get.g.cs index 0995ffdd010..b1d1a4fe856 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_List.g.cs index e24b0e2a8ff..3f4df2adf91 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice.g.cs index c248f86ad13..4cb6caae479 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_Get.g.cs index eeddc633f7c..ce06c478429 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_List.g.cs index bd9dca8196f..c4036060ed7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup.g.cs index b3d76ffaf0e..43872211acf 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_Get.g.cs index c7e53d755b3..3dc035c068e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_List.g.cs index 6e36b2ff3da..d432039ddc8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact.g.cs index a626d79fd88..bccfad061c9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_Get.g.cs index a67c1048f38..7552f41a627 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_List.g.cs index f8b389492ac..e595293c45e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal.g.cs index a8f4540c24e..4f431afa654 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_Get.g.cs index e317cb7b846..69e98eb07b5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_List.g.cs index 65dbdbec897..9184ba07c2d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser.g.cs index e30d6e8d28b..e5924908775 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_Get.g.cs index addafdd2018..17038018198 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_List.g.cs index 68c15c0e313..746ca11be24 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCount.g.cs index 5127404c465..9ba49deafb2 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsApplication.g.cs index f5ce4943f6f..c3ac24c6c67 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsDevice.g.cs index 7d96909b549..bb2f41262f3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsGroup.g.cs index 1b2d36f1291..63c61440da5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsOrgContact.g.cs index 0215cbc384a..08022d3b576 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsServicePrincipal.g.cs index 3504c943f52..329993b2e40 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsUser.g.cs index 6b4db83cbfc..9d57c51c045 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseErrorCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_Get.g.cs index 2d2467d6633..9e0fb2381a4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_List.g.cs index 282ccdafe3d..d086b067c93 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupMemberWithLicenseError_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOnPremiseSyncBehavior.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOnPremiseSyncBehavior.g.cs index 4f362e5de54..3425e8e520c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOnPremiseSyncBehavior.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwner.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwner.g.cs index f0c1112518a..1a2e38ccde4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwner.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwner.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication.g.cs index 3edc32b93f6..58c95a7f694 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_Get.g.cs index f19a57b6016..3f0077a7bf4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_List.g.cs index 220cea19326..280c968de74 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice.g.cs index eaa638900be..212fd4cdd1d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_Get.g.cs index 68cfce8f1a8..1e774477826 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_List.g.cs index fed6b699f77..3a83d5af39f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup.g.cs index ba754d44d4e..41f50871f7d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_Get.g.cs index a029af09074..98c05998e23 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_List.g.cs index fd665aa68a1..e8e7b1d1393 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact.g.cs index 4b3450313c6..81e9803e6eb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_Get.g.cs index 5201ec2e66d..687ec321c85 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_List.g.cs index eebbc91a805..0e6c5210419 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal.g.cs index 9eba134c44f..58d3f73e12c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_Get.g.cs index 9b6846e948e..1a52292c522 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_List.g.cs index 3df77f37ba1..f7bfc553506 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser.g.cs index 9d29b7d707d..fa69a9c3e47 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_Get.g.cs index 8d0455364f6..30c921bc832 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_List.g.cs index 96f041db558..d25cc232d4e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerByRef.g.cs index f72500e5e92..60f834a863e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCount.g.cs index 5134e42f236..2b6e9339cd1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsApplication.g.cs index aa8500a6bf3..19c5aa8d65b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsDevice.g.cs index 8ad43129562..d1bcdec43d4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsGroup.g.cs index e6dfa85f65d..7ec3b1485cb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsOrgContact.g.cs index 01893dcc5ea..5684a59e71b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsServicePrincipal.g.cs index 9ba7b17a288..7ae41b81be8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsUser.g.cs index 6ce1bbed283..99dd836775e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupOwnerCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant.g.cs index 3b6f4482486..ce1ed78065e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceSpecificPermissionGrantId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrantCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrantCount.g.cs index 5db8388352e..a0c6322f50d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrantCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_Get.g.cs index 7cf4676ec07..4bf46496407 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_List.g.cs index 922b0f9eb98..c5372b61059 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhoto.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhoto.g.cs index e0a067b7d18..9f4ac4aab58 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhoto.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhoto.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhotoContent.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhotoContent.g.cs index aa0222fdd0f..44c2e72acf1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhotoContent.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupPhotoContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSender.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSender.g.cs index 0e423bbff35..5e46ab73c90 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSender.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSender.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderByRef.g.cs index e29a57e211c..2fb907dc702 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderCount.g.cs index 62daa76752f..2654d40a587 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupRejectedSenderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting.g.cs index cc51a89cdf5..0665eee3021 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupSettingId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingCount.g.cs index 86c5a34a3ea..06cfb790e49 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate.g.cs index 58dd1dff7b2..7d6e6a1d514 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupSettingTemplateId : null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateById.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateById.g.cs index 8858f3c2168..47b0d83b153 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateById.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateCount.g.cs index 8172c820796..965de8875ff 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateDelta.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateDelta.g.cs index 9b62bda3ae8..447513bf16f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateDelta.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberGroup.g.cs index 515217d3e99..17e0b4e520f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberObject.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberObject.g.cs index 3c61df23192..460f7844c4b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberObject.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplateMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_Get.g.cs index 2011a4a1362..85894ab2741 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_List.g.cs index 8b775117bb3..55fce63e4d0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSettingTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_Get.g.cs index 4cf67591b58..c81cbda555e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_List.g.cs index f867457eafc..8eb9eabf5dc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupSetting_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread.g.cs index bd2cfc79f53..3fa116118b0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationThreadId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadCount.g.cs index e9918a218ce..691c964463c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost.g.cs index 61c06ab2ea9..307b8a8c611 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PostId : ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment.g.cs index 2eb5d2e6b8e..6dfe3af68e9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachmentCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachmentCount.g.cs index db5b5b70005..cd0d35ccb78 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachmentCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachmentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_Get.g.cs index 2558c3176f5..629c272fdfa 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_List.g.cs index 4b744642cd2..4cfdc669d1d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostAttachment_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostCount.g.cs index 4d2dd75a4b3..32534f6a15b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension.g.cs index 10bc56002d9..4b553a91096 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtensionCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtensionCount.g.cs index d35a688af4c..a9c1e9e9c4e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtensionCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtensionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_Get.g.cs index 7b18df789fd..c65f69e02eb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_List.g.cs index be2202e7ad0..693bf723795 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostExtension_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment.g.cs index 21696bccb30..b0eeb9b2189 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachmentCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachmentCount.g.cs index 89b78ee053d..a9f6fd4fc07 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachmentCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachmentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_Get.g.cs index 87438a11f0f..6230e6f517d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_List.g.cs index f8fafc836e2..fd2671e0ff7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToAttachment_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension.g.cs index c7ee497d8bf..5c49f9be88a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtensionCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtensionCount.g.cs index 03a2ea37189..c63c8f4dbd5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtensionCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtensionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_Get.g.cs index 68cb207becf..c348bba8701 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_List.g.cs index c4cd17d82e3..4c79ed7ff5b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPostInReplyToExtension_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_Get.g.cs index abf726f25fe..d10de777f6b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_List.g.cs index aa9e498ec2f..69b5ff12e36 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThreadPost_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_Get.g.cs index 501472b0643..00bdf67ff1e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_List.g.cs index ca5865ae752..22472d9364c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupThread_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember.g.cs index b73e99f8d2f..169bfe9332f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication.g.cs index 198db0701a3..d37b75b0501 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_Get.g.cs index 963893a85dc..f494732291e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_List.g.cs index 657ffbced4b..f4e839a9dbc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice.g.cs index 7e59e4162fc..44fa306f41a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_Get.g.cs index 778422fe6cb..160af2a50a6 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_List.g.cs index b4e3cfd22fc..163480d66fb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup.g.cs index 74441d7937c..f7cd762bdf1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_Get.g.cs index b85b93ac51b..345857e8ce2 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_List.g.cs index d1367e2ae08..783962773d7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact.g.cs index a44166aeb27..5c6ed0d5f53 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_Get.g.cs index ab6fe4a796a..b9d4aaf9446 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_List.g.cs index 70aca88a96a..c8d44569291 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal.g.cs index 6684bb80975..f53ddc0e5fb 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_Get.g.cs index 6760825a884..a1cde5c1af0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_List.g.cs index 871ae64ca12..7e1e9fc3a3b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser.g.cs index 8492bcd0d3f..fb1fa3ed29e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_Get.g.cs index fcfa8797e40..2d30d4223d5 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_List.g.cs index beade9ccf59..422ffdeafbc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCount.g.cs index 71c74147d6d..3924e80c524 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsApplication.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsApplication.g.cs index ea798bf04b6..2a79811d429 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsApplication.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsDevice.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsDevice.g.cs index b80a6a2ea56..e4b28e22f50 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsDevice.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsGroup.g.cs index fef1ce14e69..38a7212b009 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsOrgContact.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsOrgContact.g.cs index d6edb7cb0a4..1c08fe52b33 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsOrgContact.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsServicePrincipal.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsServicePrincipal.g.cs index a71e1478daf..48602d1bf80 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsServicePrincipal.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsUser.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsUser.g.cs index f7b25a4810e..b6dfde71665 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsUser.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf.g.cs index 790ad456083..7e51e5b8567 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit.g.cs index 9a0cce15e3c..2892837e4b9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_Get.g.cs index 93985c3ac76..605c4c7c886 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_List.g.cs index 05035e20a2b..21aedbac5a0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup.g.cs index 2718ed97b2d..a6581ba59ab 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_Get.g.cs index d24fe9536f9..3f5915db71f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_List.g.cs index 4431fb29311..1a986f643f6 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCount.g.cs index d65c2d9ee39..a5e686f2e45 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsAdministrativeUnit.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsAdministrativeUnit.g.cs index eb16d853512..c800d6088f8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsGroup.g.cs index 6606002a9ce..df3a49d2be4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_Get.g.cs index 7b98311e041..6984609a8b8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_List.g.cs index 2298687a131..3031c9bac9a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_Get.g.cs index 27e1ecb7a54..e0c46bdc4d2 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_List.g.cs index a460c8a3279..1b03cdae3fc 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroupTransitiveMember_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_Get.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_Get.g.cs index 849ed60d3d5..cecf334cd5d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_Get.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_List.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_List.g.cs index 4b33b188d38..d57b8fc5a4d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_List.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/GetMgGroup_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPost.g.cs index 71cef92b8be..c345ee0c1ae 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPost.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPostInReplyTo.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPostInReplyTo.g.cs index 3647a9617ca..31b7765a7df 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPostInReplyTo.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupConversationThreadPostInReplyTo.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPost.g.cs index ae71e7db6a7..c8056853271 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPost.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPostInReplyTo.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPostInReplyTo.g.cs index ce3a5d6fde5..745694d927d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPostInReplyTo.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupThreadPostInReplyTo.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgGraphGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgGraphGroup.g.cs index 3086dcfd66d..67bdb4ee651 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgGraphGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgGraphGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRenewGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRenewGroup.g.cs index bc60157be99..6b39b3ffb33 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRenewGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRenewGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThread.g.cs index 64ea4b023a7..3c118ab4b82 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThread.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPost.g.cs index cc46a04e2e0..2fedefe3839 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPost.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPostInReplyTo.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPostInReplyTo.g.cs index 5a9c67924b5..f5956ac0be4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPostInReplyTo.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupConversationThreadPostInReplyTo.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThread.g.cs index b50e728ccea..30291a5ec44 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThread.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPost.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPost.g.cs index 8458fdec791..83fb3c1836e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPost.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPost.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPostInReplyTo.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPostInReplyTo.g.cs index 52863b499a0..f24f6823cb9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPostInReplyTo.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgReplyGroupThreadPostInReplyTo.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRetryGroupServiceProvisioning.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRetryGroupServiceProvisioning.g.cs index 87c75f76529..ee013a7d84b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRetryGroupServiceProvisioning.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgRetryGroupServiceProvisioning.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgSubscribeGroupByMail.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgSubscribeGroupByMail.g.cs index b8173b439cd..e90ede5a27c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgSubscribeGroupByMail.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/InvokeMgSubscribeGroupByMail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroup.g.cs index 2f7910a0561..112dc79921e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroup.g.cs @@ -106,6 +106,9 @@ public class NewMgGroupCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public bool? OnPremisesSyncEnabled { get; set; } + [Parameter(Mandatory = false)] + public string? OrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? PreferredDataLocation { get; set; } @@ -271,6 +274,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(OnPremisesSyncEnabled))) body.OnPremisesSyncEnabled = OnPremisesSyncEnabled; + if (this.IsParameterBound(nameof(OrganizationId))) + body.OrganizationId = OrganizationId; + if (this.IsParameterBound(nameof(PreferredDataLocation))) body.PreferredDataLocation = PreferredDataLocation; @@ -350,7 +356,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupAcceptedSenderByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupAcceptedSenderByRef.g.cs index 95e95b2b20a..7e806ffb9fe 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupAcceptedSenderByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupAcceptedSenderByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversation.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversation.g.cs index 57391f6b4f4..dc36d248620 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversation.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversation.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThread.g.cs index 5ad339ca860..28bf8388728 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThread.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachment.g.cs index c2ea47f8438..9bbb0f265ab 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachmentUploadSession.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachmentUploadSession.g.cs index b95c284bfd2..e4dd8b3a071 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachmentUploadSession.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostAttachmentUploadSession.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostExtension.g.cs index 8b9771d5588..3d6e601c3d4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachment.g.cs index ae67e42c7ba..41dd18ed5c0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachmentUploadSession.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachmentUploadSession.g.cs index d86f14b071a..9c3d33da8f9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachmentUploadSession.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToAttachmentUploadSession.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToExtension.g.cs index 56cb4621129..6ed8ff9cb25 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupConversationThreadPostInReplyToExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupExtension.g.cs index 4fb7c3e0a79..a4ccb7d95a9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupExtension.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupLifecyclePolicy.g.cs index 1bc65c816c8..9e4e48eec5e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupLifecyclePolicy.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupMemberByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupMemberByRef.g.cs index c05fbbe2afd..820eae7755c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupMemberByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupMemberByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupOwnerByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupOwnerByRef.g.cs index 02272827f98..1db30de0217 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupOwnerByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupOwnerByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupPermissionGrant.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupPermissionGrant.g.cs index 766327d2cf5..005213ef833 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupPermissionGrant.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupRejectedSenderByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupRejectedSenderByRef.g.cs index 34df4cbc230..f1ea8b67876 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupRejectedSenderByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupRejectedSenderByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSetting.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSetting.g.cs index fb6be0615dd..55016395df4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSetting.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSetting.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSettingTemplate.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSettingTemplate.g.cs index 449e4469a19..4c40876f094 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSettingTemplate.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupSettingTemplate.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThread.g.cs index 01fd177b1b7..255e042d992 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThread.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachment.g.cs index 1d337f090d9..5ccd2aed7a9 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachmentUploadSession.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachmentUploadSession.g.cs index a282fcb1775..169f8bf823b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachmentUploadSession.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostAttachmentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostExtension.g.cs index 5b90b73dc95..21948d0cf17 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachment.g.cs index 86283e29287..cd321879f91 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachmentUploadSession.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachmentUploadSession.g.cs index 04ac241981a..1cfbfca375d 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachmentUploadSession.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToAttachmentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PostId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToExtension.g.cs index b99ecda7a35..2f421c2f08a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/NewMgGroupThreadPostInReplyToExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroup.g.cs index 46674db7af2..711dd8f78b4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroup.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupAcceptedSenderDirectoryObjectByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupAcceptedSenderDirectoryObjectByRef.g.cs index f9c99c16471..d6ffe62430e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupAcceptedSenderDirectoryObjectByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupAcceptedSenderDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversation.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversation.g.cs index 8988a9c7c5c..de5c68a32f3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversation.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThread.g.cs index 8b22c19da51..d69d8841668 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThread.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostAttachment.g.cs index afe2f4da025..4384d281c0a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostAttachment.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostExtension.g.cs index 23949b76545..c30418bf858 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostExtension.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToAttachment.g.cs index 07d274eec20..e4be7251f22 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToAttachment.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToExtension.g.cs index fdcc1d9d839..1db28f7126b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupConversationThreadPostInReplyToExtension.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupExtension.g.cs index 8e0f52b6206..0b0bb6054a3 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFavorite.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFavorite.g.cs index 7205e49c3f5..014e3fa9c08 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFavorite.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFavorite.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFromLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFromLifecyclePolicy.g.cs index e711f8dc43b..40231c94b6e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFromLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupFromLifecyclePolicy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupLifecyclePolicy.g.cs index ed0446637c3..99cea829e77 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupLifecyclePolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupMemberDirectoryObjectByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupMemberDirectoryObjectByRef.g.cs index 703e8fd55e3..bdddf830eb4 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupMemberDirectoryObjectByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupMemberDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOnPremiseSyncBehavior.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOnPremiseSyncBehavior.g.cs index 804e0b48b80..f6991e72809 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOnPremiseSyncBehavior.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOnPremiseSyncBehavior.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOwnerDirectoryObjectByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOwnerDirectoryObjectByRef.g.cs index eb74f73b38c..b4e2a45592b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOwnerDirectoryObjectByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupOwnerDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPermissionGrant.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPermissionGrant.g.cs index 27bbb57ff8e..e6b8c1253a0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPermissionGrant.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPermissionGrant.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhoto.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhoto.g.cs index c2b9e466a62..4e417599730 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhoto.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhoto.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhotoContent.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhotoContent.g.cs index ca5402d7950..9581aa71459 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhotoContent.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupPhotoContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupRejectedSenderDirectoryObjectByRef.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupRejectedSenderDirectoryObjectByRef.g.cs index 361d24e35d4..24a221368b1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupRejectedSenderDirectoryObjectByRef.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupRejectedSenderDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSetting.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSetting.g.cs index 50fcbe0c7c1..0486affec3a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSetting.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSetting.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSettingTemplate.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSettingTemplate.g.cs index ca4a61ec57d..f5c4c7a2b21 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSettingTemplate.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupSettingTemplate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThread.g.cs index 94bb736f60d..3edb81a761a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThread.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostAttachment.g.cs index bacc050d5ce..80da3c0c660 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostAttachment.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostExtension.g.cs index fafbb0b95a8..fdca92e456c 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostExtension.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToAttachment.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToAttachment.g.cs index d12ff45ff5f..55e6edd661a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToAttachment.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToAttachment.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToExtension.g.cs index 7237bd65ff4..a8f611273a7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RemoveMgGroupThreadPostInReplyToExtension.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/ResetMgGroupUnseenCount.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/ResetMgGroupUnseenCount.g.cs index 5433b235ab3..3482217f259 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/ResetMgGroupUnseenCount.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/ResetMgGroupUnseenCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/RestoreMgGroupSettingTemplate.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/RestoreMgGroupSettingTemplate.g.cs index 9621b0d73b0..684998d4747 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/RestoreMgGroupSettingTemplate.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/RestoreMgGroupSettingTemplate.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/SetMgGroupLicense.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/SetMgGroupLicense.g.cs index c2776d2e05e..af3075ba58b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/SetMgGroupLicense.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/SetMgGroupLicense.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupProperty.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupProperty.g.cs index f40485b199b..03e2999397b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupProperty.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupProperty.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupSettingTemplateProperty.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupSettingTemplateProperty.g.cs index cd74b9925be..a6619313023 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupSettingTemplateProperty.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/TestMgGroupSettingTemplateProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroup.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroup.g.cs index 9c0d202d032..4aa6844539a 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroup.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroup.g.cs @@ -107,6 +107,9 @@ public class UpdateMgGroupCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public bool? OnPremisesSyncEnabled { get; set; } + [Parameter(Mandatory = false)] + public string? OrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? PreferredDataLocation { get; set; } @@ -272,6 +275,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(OnPremisesSyncEnabled))) body.OnPremisesSyncEnabled = OnPremisesSyncEnabled; + if (this.IsParameterBound(nameof(OrganizationId))) + body.OrganizationId = OrganizationId; + if (this.IsParameterBound(nameof(PreferredDataLocation))) body.PreferredDataLocation = PreferredDataLocation; @@ -351,7 +357,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -365,7 +371,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThread.g.cs index 504772c3edd..a922406f996 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThread.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Conversations[ConversationId].Threads[ConversationThreadId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostExtension.g.cs index ae400b5a748..16ef80049df 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostExtension.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Conversations[ConversationId].Threads[ConversationThreadId].Posts[PostId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostInReplyToExtension.g.cs index 724d8244275..8b847ef2f0b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupConversationThreadPostInReplyToExtension.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Conversations[ConversationId].Threads[ConversationThreadId].Posts[PostId].InReplyTo.Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupExtension.g.cs index 7647fa63e97..4a343260a0b 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupLifecyclePolicy.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupLifecyclePolicy.g.cs index fafa1385d0e..4c64733a8d0 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupLifecyclePolicy.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupLifecyclePolicy.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.GroupLifecyclePolicies[GroupLifecyclePolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupLifecyclePolicyId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupOnPremiseSyncBehavior.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupOnPremiseSyncBehavior.g.cs index dfaf405f625..9a1ad4d7b2f 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupOnPremiseSyncBehavior.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].OnPremisesSyncBehavior.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupPermissionGrant.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupPermissionGrant.g.cs index a66ef080ed3..243a70635c1 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupPermissionGrant.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].PermissionGrants[ResourceSpecificPermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSetting.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSetting.g.cs index 0631af6a6d4..00eb8732e11 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSetting.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSetting.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Settings[GroupSettingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSettingTemplate.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSettingTemplate.g.cs index 332898e70b1..0b1a52e9cf7 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSettingTemplate.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupSettingTemplate.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.GroupSettingTemplates[GroupSettingTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupSettingTemplateId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThread.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThread.g.cs index 70f0b9381bd..8cfd81d3b6e 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThread.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThread.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Threads[ConversationThreadId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationThreadId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostExtension.g.cs index 96e462a527c..430591965b8 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Threads[ConversationThreadId].Posts[PostId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostInReplyToExtension.g.cs b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostInReplyToExtension.g.cs index dd8fae7f44d..0e993180a88 100644 --- a/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostInReplyToExtension.g.cs +++ b/src/Groups/wrapper/v1.0/Cmdlets/UpdateMgGroupThreadPostInReplyToExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Threads[ConversationThreadId].Posts[PostId].InReplyTo.Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/DirectoryRequestBuilder.cs index c69b8733632..81de45afe54 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -9,6 +9,7 @@ using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.OnPremisesSynchronization; using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.PublicKeyInfrastructure; using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Recovery; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups; using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Subscriptions; using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.SubscriptionsWithCommerceSubscriptionId; using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors; @@ -74,6 +75,11 @@ public partial class DirectoryRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Recovery.RecoveryRequestBuilder(PathParameters, RequestAdapter); } + /// The remoteTenantGroups property + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder RemoteTenantGroups + { + get => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(PathParameters, RequestAdapter); + } /// The subscriptions property public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Subscriptions.SubscriptionsRequestBuilder Subscriptions { diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/Item/RecoveryJobBaseItemRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/Item/RecoveryJobBaseItemRequestBuilder.cs index fe33ff8f853..ecf85d42617 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/Item/RecoveryJobBaseItemRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/Item/RecoveryJobBaseItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get jobs from directory + /// Collection of all recovery jobs (both preview and recovery) for the tenant. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get jobs from directory + /// Collection of all recovery jobs (both preview and recovery) for the tenant. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class RecoveryJobBaseItemRequestBuilderDeleteRequestConfiguration { } /// - /// Get jobs from directory + /// Collection of all recovery jobs (both preview and recovery) for the tenant. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecoveryJobBaseItemRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/JobsRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/JobsRequestBuilder.cs index 44ceb8137b5..8162a7931b7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/JobsRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Jobs/JobsRequestBuilder.cs @@ -54,7 +54,8 @@ public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( { } /// - /// Get jobs from directory + /// Get a list of all recovery recoveryJobBase objects (both preview and recovery jobs) across all snapshots for the tenant. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +103,7 @@ public JobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJobBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get jobs from directory + /// Get a list of all recovery recoveryJobBase objects (both preview and recovery jobs) across all snapshots for the tenant. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +153,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Recovery.Jobs.JobsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get jobs from directory + /// Get a list of all recovery recoveryJobBase objects (both preview and recovery jobs) across all snapshots for the tenant. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class JobsRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/Item/RecoveryJobItemRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/Item/RecoveryJobItemRequestBuilder.cs index 52193d53af6..52bf9918b2d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/Item/RecoveryJobItemRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/Item/RecoveryJobItemRequestBuilder.cs @@ -35,7 +35,7 @@ public RecoveryJobItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt { } /// - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// /// A /// Cancellation token to use when cancelling requests @@ -58,7 +58,7 @@ public RecoveryJobItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecoveryJobItemRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/RecoveryJobsRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/RecoveryJobsRequestBuilder.cs index 593c602dc3e..3d2bfb188e8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/RecoveryJobsRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryJobs/RecoveryJobsRequestBuilder.cs @@ -54,7 +54,7 @@ public RecoveryJobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// /// A /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public RecoveryJobsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJobCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get recoveryJobs from directory + /// Collection of recovery jobs created for this snapshot. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecoveryJobsRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/Item/RecoveryPreviewJobItemRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/Item/RecoveryPreviewJobItemRequestBuilder.cs index b60e0333b33..93e6af463fc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/Item/RecoveryPreviewJobItemRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/Item/RecoveryPreviewJobItemRequestBuilder.cs @@ -35,7 +35,7 @@ public RecoveryPreviewJobItemRequestBuilder(string rawUrl, IRequestAdapter reque { } /// - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// /// A /// Cancellation token to use when cancelling requests @@ -58,7 +58,7 @@ public RecoveryPreviewJobItemRequestBuilder(string rawUrl, IRequestAdapter reque return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryPreviewJob.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecoveryPreviewJobItemRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/RecoveryPreviewJobsRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/RecoveryPreviewJobsRequestBuilder.cs index 553b4fcfc75..b83c4fc17d0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/RecoveryPreviewJobsRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/RecoveryPreviewJobs/RecoveryPreviewJobsRequestBuilder.cs @@ -54,7 +54,7 @@ public RecoveryPreviewJobsRequestBuilder(string rawUrl, IRequestAdapter requestA { } /// - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// /// A /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public RecoveryPreviewJobsRequestBuilder(string rawUrl, IRequestAdapter requestA return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryPreviewJobCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Get recoveryPreviewJobs from directory + /// Collection of preview jobs created for this snapshot. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecoveryPreviewJobsRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/SnapshotItemRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/SnapshotItemRequestBuilder.cs index 9e1f7f296ed..a8d1554f8f3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/SnapshotItemRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/Item/SnapshotItemRequestBuilder.cs @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Get snapshots from directory + /// Collection of backup snapshots available for the tenant. /// /// A /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get snapshots from directory + /// Collection of backup snapshots available for the tenant. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -194,7 +194,7 @@ public partial class SnapshotItemRequestBuilderDeleteRequestConfiguration : Requ { } /// - /// Get snapshots from directory + /// Collection of backup snapshots available for the tenant. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class SnapshotItemRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/SnapshotsRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/SnapshotsRequestBuilder.cs index 31ec3c9f666..f790a5edd6d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/SnapshotsRequestBuilder.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/Recovery/Snapshots/SnapshotsRequestBuilder.cs @@ -54,7 +54,8 @@ public SnapshotsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get snapshots from directory + /// Get a list of available backup snapshot objects for the tenant. Snapshots represent points in time to which the tenant can be restored. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +103,7 @@ public SnapshotsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.Snapshot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get snapshots from directory + /// Get a list of available backup snapshot objects for the tenant. Snapshots represent points in time to which the tenant can be restored. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +153,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.Recovery.Snapshots.SnapshotsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get snapshots from directory + /// Get a list of available backup snapshot objects for the tenant. Snapshots represent points in time to which the tenant can be restored. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class SnapshotsRequestBuilderGetQueryParameters diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c87756c7ea1 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Count/CountRequestBuilder.cs @@ -0,0 +1,127 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count +{ + /// + /// Builds and executes requests for operations under \directory\remoteTenantGroups\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs new file mode 100644 index 00000000000..52caf873777 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/Item/RemoteTenantGroupItemRequestBuilder.cs @@ -0,0 +1,237 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item +{ + /// + /// Builds and executes requests for operations under \directory\remoteTenantGroups\{remoteTenantGroup-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RemoteTenantGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RemoteTenantGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups/{remoteTenantGroup%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property remoteTenantGroups for directory + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a remoteTenantGroup object. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property remoteTenantGroups in directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property remoteTenantGroups for directory + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read the properties and relationships of a remoteTenantGroup object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property remoteTenantGroups in directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read the properties and relationships of a remoteTenantGroup object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs new file mode 100644 index 00000000000..61d298bec3e --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/DirectoryNamespace/RemoteTenantGroups/RemoteTenantGroupsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups +{ + /// + /// Builds and executes requests for operations under \directory\remoteTenantGroups + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupsRequestBuilder : BaseRequestBuilder + { + /// The Count property + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.directory.remoteTenantGroups.item collection + /// Unique identifier of the item + /// A + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("remoteTenantGroup%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.Item.RemoteTenantGroupItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RemoteTenantGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RemoteTenantGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/remoteTenantGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the remoteTenantGroup objects and their properties. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to remoteTenantGroups for directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the remoteTenantGroup objects and their properties. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to remoteTenantGroups for directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + [Obsolete(" as of 2025-03/PrivatePreview:remoteTenantGroupsAPI on 2025-12-02 and will be removed 2028-12-07")] + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.DirectoryNamespace.RemoteTenantGroups.RemoteTenantGroupsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the remoteTenantGroup objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RemoteTenantGroupsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Chat.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Chat.cs index 36680201669..37a8ae737c2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Identity.Director #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..dea2ce4cdcd --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..2c5d07c7cca --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject.cs index 4530ab38cca..4d0368ab758 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject.cs @@ -43,6 +43,7 @@ public partial class DirectoryObject : global::Microsoft.Graph.PowerShell.Identi "#microsoft.graph.organization" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Organization(), "#microsoft.graph.orgContact" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.OrgContact(), "#microsoft.graph.policyBase" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.PolicyBase(), + "#microsoft.graph.remoteTenantGroup" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup(), "#microsoft.graph.resourceSpecificPermissionGrant" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ResourceSpecificPermissionGrant(), "#microsoft.graph.servicePrincipal" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ServicePrincipal(), "#microsoft.graph.stsPolicy" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.StsPolicy(), diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject1.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject1.cs index 2cb7272a210..46a9d823f1e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject1.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/DirectoryObject1.cs @@ -84,6 +84,14 @@ public partial class DirectoryObject1 : global::Microsoft.Graph.PowerShell.Ident #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.Recovery Recovery { get; set; } +#endif + /// Collection of groups in remote Microsoft Entra tenants that are available in the directory. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RemoteTenantGroups { get; set; } +#nullable restore +#else + public List RemoteTenantGroups { get; set; } #endif /// List of commercial subscriptions that an organization acquired. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -120,6 +128,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSynchronization", n => { OnPremisesSynchronization = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue)?.AsList(); } }, { "publicKeyInfrastructure", n => { PublicKeyInfrastructure = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.PublicKeyInfrastructureRoot.CreateFromDiscriminatorValue); } }, { "recovery", n => { Recovery = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.Recovery.CreateFromDiscriminatorValue); } }, + { "remoteTenantGroups", n => { RemoteTenantGroups = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup.CreateFromDiscriminatorValue)?.AsList(); } }, { "subscriptions", n => { Subscriptions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CompanySubscription.CreateFromDiscriminatorValue)?.AsList(); } }, }; } @@ -140,6 +149,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("onPremisesSynchronization", OnPremisesSynchronization); writer.WriteObjectValue("publicKeyInfrastructure", PublicKeyInfrastructure); writer.WriteObjectValue("recovery", Recovery); + writer.WriteCollectionOfObjectValues("remoteTenantGroups", RemoteTenantGroups); writer.WriteCollectionOfObjectValues("subscriptions", Subscriptions); } } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Entity.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Entity.cs index f512072d458..f519a16e039 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Entity.cs @@ -236,6 +236,7 @@ public Entity() "#microsoft.graph.pronounsSettings" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.PronounsSettings(), "#microsoft.graph.publicKeyInfrastructureRoot" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.PublicKeyInfrastructureRoot(), "#microsoft.graph.remoteDesktopSecurityConfiguration" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteDesktopSecurityConfiguration(), + "#microsoft.graph.remoteTenantGroup" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup(), "#microsoft.graph.resourceSpecificPermissionGrant" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ResourceSpecificPermissionGrant(), "#microsoft.graph.richLongRunningOperation" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RichLongRunningOperation(), "#microsoft.graph.samlOrWsFedProvider" => new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SamlOrWsFedProvider(), diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Recovery.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Recovery.cs index 1bf5550fc1b..b6504fe2b72 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Recovery.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Recovery.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models. public partial class Recovery : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Entity, IParsable #pragma warning restore CS1591 { - /// The jobs property + /// Collection of all recovery jobs (both preview and recovery) for the tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Jobs { get; set; } @@ -20,7 +20,7 @@ public partial class Recovery : global::Microsoft.Graph.PowerShell.Identity.Dire #else public List Jobs { get; set; } #endif - /// The snapshots property + /// Collection of backup snapshots available for the tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Snapshots { get; set; } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJob.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJob.cs index 1993c782131..af04e2fb751 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJob.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJob.cs @@ -12,11 +12,11 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models. public partial class RecoveryJob : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJobBase, IParsable #pragma warning restore CS1591 { - /// The totalFailedChanges property + /// The count of changes (including both objects and links) that failed to apply during recovery. public int? TotalFailedChanges { get; set; } - /// The totalLinksModified property + /// The count of directory object links (relationships) that were successfully modified during recovery. This value may be less than totalChangedLinksCalculated if some link changes failed. public int? TotalLinksModified { get; set; } - /// The totalObjectsModified property + /// The count of directory objects that were successfully modified during recovery. This value may be less than totalChangedObjectsCalculated if some object changes failed. public int? TotalObjectsModified { get; set; } /// /// Instantiates a new and sets the default values. diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJobBase.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJobBase.cs index 7b7b231ae3c..6bc21ed10b7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJobBase.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/RecoveryJobBase.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models. public partial class RecoveryJobBase : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Entity, IParsable #pragma warning restore CS1591 { - /// The filteringCriteria property + /// Optional filtering criteria used to scope the job to specific entity types or entity IDs. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJobFilteringCriteriaBase? FilteringCriteria { get; set; } @@ -20,17 +20,17 @@ public partial class RecoveryJobBase : global::Microsoft.Graph.PowerShell.Identi #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryJobFilteringCriteriaBase FilteringCriteria { get; set; } #endif - /// The jobCompletionDateTime property + /// The date and time when the job completed. Null if the job is still running. public DateTimeOffset? JobCompletionDateTime { get; set; } - /// The jobStartDateTime property + /// The date and time when the job started. public DateTimeOffset? JobStartDateTime { get; set; } /// The status property public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.EntraRecoveryServices.RecoveryStatus? Status { get; set; } - /// The targetStateDateTime property + /// The target snapshot timestamp to which the tenant is being restored. Supports $filter (eq, ne). public DateTimeOffset? TargetStateDateTime { get; set; } - /// The totalChangedLinksCalculated property + /// The total count of changed directory object links (relationships) calculated by the job. null until the job completes calculation. Not all calculated link changes may be successfully applied; see totalLinksModified on derived types for the count of links that were actually modified. public int? TotalChangedLinksCalculated { get; set; } - /// The totalChangedObjectsCalculated property + /// The total count of changed directory objects calculated by the job. null until the job completes calculation. Not all calculated object changes may be successfully applied; see totalObjectsModified on derived types for the count of objects that were actually modified. public int? TotalChangedObjectsCalculated { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Snapshot.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Snapshot.cs index d657e50e81a..3351e920c22 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Snapshot.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/EntraRecoveryServices/Snapshot.cs @@ -12,9 +12,9 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models. public partial class Snapshot : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Entity, IParsable #pragma warning restore CS1591 { - /// The createdDateTime property + /// The date and time when the snapshot was created. public DateTimeOffset? CreatedDateTime { get; set; } - /// The recoveryJobs property + /// Collection of recovery jobs created for this snapshot. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RecoveryJobs { get; set; } @@ -22,7 +22,7 @@ public partial class Snapshot : global::Microsoft.Graph.PowerShell.Identity.Dire #else public List RecoveryJobs { get; set; } #endif - /// The recoveryPreviewJobs property + /// Collection of preview jobs created for this snapshot. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RecoveryPreviewJobs { get; set; } @@ -30,7 +30,7 @@ public partial class Snapshot : global::Microsoft.Graph.PowerShell.Identity.Dire #else public List RecoveryPreviewJobs { get; set; } #endif - /// The totalChangedObjects property + /// The total number of changed objects identified in this snapshot. public int? TotalChangedObjects { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Group.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Group.cs index a9ed1bb3cc8..017483437cd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Identity.Directo #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/InternalDomainFederation.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/InternalDomainFederation.cs index 6e67cc0ef4d..414ac10ecbc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/InternalDomainFederation.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/InternalDomainFederation.cs @@ -58,6 +58,8 @@ public partial class InternalDomainFederation : global::Microsoft.Graph.PowerShe #else public string SignOutUri { get; set; } #endif + /// The systemBrowserEnabledOn property + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SystemBrowserEnabledOn? SystemBrowserEnabledOn { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -91,6 +93,7 @@ public override IDictionary> GetFieldDeserializers() { "promptLoginBehavior", n => { PromptLoginBehavior = n.GetEnumValue(); } }, { "signOutUri", n => { SignOutUri = n.GetStringValue(); } }, { "signingCertificateUpdateStatus", n => { SigningCertificateUpdateStatus = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SigningCertificateUpdateStatus.CreateFromDiscriminatorValue); } }, + { "systemBrowserEnabledOn", n => { SystemBrowserEnabledOn = n.GetEnumValue(); } }, }; } /// @@ -109,6 +112,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteEnumValue("promptLoginBehavior", PromptLoginBehavior); writer.WriteObjectValue("signingCertificateUpdateStatus", SigningCertificateUpdateStatus); writer.WriteStringValue("signOutUri", SignOutUri); + writer.WriteEnumValue("systemBrowserEnabledOn", SystemBrowserEnabledOn); } } } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/List.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/List.cs index 8a7648d3c97..9ea23a0e19f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/List.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Identity.Director #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ListItem.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ListItem.cs index 5f8c6c265e5..9652e68f0dd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Identity.Dire #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index c4c6e42516d..232136cba41 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..f1a7ebacbcb --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 752759d8a98..db749f0397d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroup.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroup.cs new file mode 100644 index 00000000000..0ea79f8d79f --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroup.cs @@ -0,0 +1,91 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemoteTenantGroup : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.DirectoryObject, IParsable + #pragma warning restore CS1591 + { + /// Display name of the group in the remote tenant. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RemoteGroupDisplayName { get; set; } +#nullable restore +#else + public string RemoteGroupDisplayName { get; set; } +#endif + /// Unique identifier of the group in the remote tenant. + public Guid? RemoteGroupId { get; set; } + /// Display name of the remote tenant. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RemoteTenantDisplayName { get; set; } +#nullable restore +#else + public string RemoteTenantDisplayName { get; set; } +#endif + /// Unique identifier of the remote tenant. + public Guid? RemoteTenantId { get; set; } + /// Primary domain name of the remote tenant. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RemoteTenantPrimaryDomain { get; set; } +#nullable restore +#else + public string RemoteTenantPrimaryDomain { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RemoteTenantGroup() : base() + { + OdataType = "#microsoft.graph.remoteTenantGroup"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "remoteGroupDisplayName", n => { RemoteGroupDisplayName = n.GetStringValue(); } }, + { "remoteGroupId", n => { RemoteGroupId = n.GetGuidValue(); } }, + { "remoteTenantDisplayName", n => { RemoteTenantDisplayName = n.GetStringValue(); } }, + { "remoteTenantId", n => { RemoteTenantId = n.GetGuidValue(); } }, + { "remoteTenantPrimaryDomain", n => { RemoteTenantPrimaryDomain = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("remoteGroupDisplayName", RemoteGroupDisplayName); + writer.WriteGuidValue("remoteGroupId", RemoteGroupId); + writer.WriteStringValue("remoteTenantDisplayName", RemoteTenantDisplayName); + writer.WriteGuidValue("remoteTenantId", RemoteTenantId); + writer.WriteStringValue("remoteTenantPrimaryDomain", RemoteTenantPrimaryDomain); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroupCollectionResponse.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroupCollectionResponse.cs new file mode 100644 index 00000000000..ed70aeb2296 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/RemoteTenantGroupCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RemoteTenantGroupCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroupCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroupCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/SystemBrowserEnabledOn.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/SystemBrowserEnabledOn.cs new file mode 100644 index 00000000000..dadf33ff7ca --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/SystemBrowserEnabledOn.cs @@ -0,0 +1,33 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + [Flags] + #pragma warning disable CS1591 + public enum SystemBrowserEnabledOn + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None = 1, + #pragma warning restore CS1591 + [EnumMember(Value = "ios")] + #pragma warning disable CS1591 + Ios = 2, + #pragma warning restore CS1591 + [EnumMember(Value = "android")] + #pragma warning disable CS1591 + Android = 4, + #pragma warning restore CS1591 + [EnumMember(Value = "mac")] + #pragma warning disable CS1591 + Mac = 8, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue = 16, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 9502910e6cd..3165af74e80 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/User.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/User.cs index 6aa0e0b917a..bdc24c1a203 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/User.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Identity.Director #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/UserActivityType.cs index a9713f227db..660cb8f8695 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/kiota-lock.json b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/kiota-lock.json index 8aceba81c7d..a34a8073de8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "2F8A05D0E50830A80D1BDE60232434FA426FF553659DA3ED74B1132767DB271DE1D1273BD236B05E3ACD7BDFE3CB63EE1EEBEE1EAE6CC038418C862F5783384C", + "descriptionHash": "3A953DFBBAD968DC31074E2ED9DE6A78F9208EACF663CA258E80D0DA26456A338D77517DE653358CEBF110E9A890C1DA87B992ACAE801D36BB36859C0F158B4D", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Identity.DirectoryManagement.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberGroup.g.cs index 761c5ef6512..064bed89368 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberObject.g.cs index 04f388cb2cf..ec58c99d791 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContactMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberGroup.g.cs index 2aa69e66466..6f9341a653e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberObject.g.cs index 13c9f70c135..f000e6fe8e4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgContractMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberGroup.g.cs index b268dd77434..5858415e15e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberObject.g.cs index 013164b9890..81624b14bff 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDeviceMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberGroup.g.cs index 17a5670c6f1..5908270effc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberObject.g.cs index 9ef5f4fcb69..062b2ec29ea 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryDeletedItemMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberGroup.g.cs index 9b5d4f6f57c..6359dfcfb54 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberObject.g.cs index 054059dff03..fb1c2b802f2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberGroup.g.cs index 1611d2be063..58166dc91b7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberObject.g.cs index 780b286c297..bbf0e447444 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDirectoryRoleTemplateMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDomain.g.cs index 359b5cc0c23..8b749e2337d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgDomain.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberGroup.g.cs index bd53a619f9d..16647e81c73 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberObject.g.cs index 60669bdb951..d34a8452e05 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/ConfirmMgOrganizationMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeople.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeople.g.cs index e948c35f9e1..32dcfef224f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeople.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeople.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleItemInsight.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleItemInsight.g.cs index fd580ddc84a..c73fc6e7716 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleItemInsight.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleItemInsight.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty.g.cs index 929bc6ccab8..169870560d9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProfileCardPropertyId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardPropertyCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardPropertyCount.g.cs index e8abf5ba70a..807efb203a7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardPropertyCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardPropertyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_Get.g.cs index a22be853c62..6988f5739b2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileCardPropertyId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_List.g.cs index f2265f6dcf4..85ef852eb8c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileCardProperty_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting.g.cs index 8ec0201fd74..02916736d41 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProfilePropertySettingId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySettingCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySettingCount.g.cs index 1b162c42297..aee09822029 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySettingCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySettingCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_Get.g.cs index f1fb64100b5..fa023311bbd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfilePropertySettingId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_List.g.cs index 6c2ef653c09..863f4189c13 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfilePropertySetting_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource.g.cs index 480638c1148..b8a01975cd1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProfileSourceId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSourceCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSourceCount.g.cs index 181fc4180ed..2ee4795eb31 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSourceCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSourceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_Get.g.cs index 710bac5fd90..66a4b8d82c4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileSourceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_List.g.cs index 3de075cc35a..daa8e22bd5f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeopleProfileSource_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeoplePronoun.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeoplePronoun.g.cs index d31857bf2f3..5ed93df95fc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeoplePronoun.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgAdminPeoplePronoun.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact.g.cs index 7e08d3c5a18..9841f2a159f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OrgContactId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactById.g.cs index 514c9050a55..c9302257841 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactCount.g.cs index d133d8124b9..3f889ffcd88 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDelta.g.cs index af0038b054b..efc8b960643 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport.g.cs index 5101abf26a2..f4029070217 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact.g.cs index f573041b4f3..1c061ebeb73 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_Get.g.cs index 6742c9e0926..d5bcbd564b3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_List.g.cs index e4a8977dd79..27ddde3b473 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser.g.cs index 59583acf4c2..4d7bd6fe869 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_Get.g.cs index 44d4af1c68e..9af186d7924 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_List.g.cs index edf9a2f170c..bc276a67de0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCount.g.cs index fb61df75908..8fbb014f813 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsOrgContact.g.cs index 8812bcf8181..bfd8421705f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsUser.g.cs index d0834ffcfe4..24180f7848a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReportCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_Get.g.cs index d3ae13e8e41..ba3bc59d35b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_List.g.cs index 356fc957a5a..330fa20fe4a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactDirectReport_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactManager.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactManager.g.cs index a0941102af1..3b95893eb8c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactManager.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactManager.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberGroup.g.cs index 11d672d3298..889424a14c2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberObject.g.cs index 5028e133aa5..fad2713e30f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf.g.cs index 368cea822a3..1a948be2f29 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit.g.cs index eb890705c49..aea6c487698 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_Get.g.cs index c439acd6ab3..9b778a6df5e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_List.g.cs index 61a2d0d8a09..2bbe0f08f12 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup.g.cs index a7a94ff9e25..b37f5aa4480 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_Get.g.cs index d9be204a233..858cad770d7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_List.g.cs index d73b42396e0..cc95124abf0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCount.g.cs index d6b6f7bdc30..10b09192b5e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsAdministrativeUnit.g.cs index 8550e805e68..af72b9b7684 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsGroup.g.cs index df3d856ee40..8be363c9eb7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_Get.g.cs index 72845ac3d64..94dce7a613b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_List.g.cs index 6b45e5fae24..44c6d065c82 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactOnPremiseSyncBehavior.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactOnPremiseSyncBehavior.g.cs index 19025e3281a..8065c7d4174 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactOnPremiseSyncBehavior.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningError.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningError.g.cs index 292cbc723df..b875cf895ac 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningError.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningErrorCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningErrorCount.g.cs index a8fa7e538bc..178f6d88548 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningErrorCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactServiceProvisioningErrorCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf.g.cs index f5e9e411dd6..073185df957 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit.g.cs index 973294616a7..c08544077f4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_Get.g.cs index 2abaf27a720..fdbee204f1c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_List.g.cs index bdcb5334a78..68e99762760 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup.g.cs index a5cc2ede8d9..f50b8d487a0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_Get.g.cs index b38d6cf4266..bd239646485 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_List.g.cs index 4d27edbad94..98729aa621f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCount.g.cs index f0a3b8271d9..bbf6a0e7145 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsAdministrativeUnit.g.cs index 5335e2e276c..0ac6cd3ae71 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsGroup.g.cs index c5b6437e643..42594efa258 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_Get.g.cs index 57ee853f4ac..56fe19af510 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_List.g.cs index bcae92d9914..fc03c140b2d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContactTransitiveMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_Get.g.cs index 160e76e44f6..1ef835c9fe0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_List.g.cs index 6d7eae9371f..2d55339b196 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContact_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract.g.cs index 29f0ed647e8..ebae0d604b2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContractId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractById.g.cs index 6b956f549ea..7e1fc5f141c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractCount.g.cs index e4336f3fca3..aff36b7dcb2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractDelta.g.cs index 4fa59bba57f..2581f44d909 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberGroup.g.cs index d75f63142c6..6e58ae356ef 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberObject.g.cs index 85128482921..bc30fc813f5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContractMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_Get.g.cs index 62b4ab71dfd..83e7b39fe92 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_List.g.cs index b4f5d514575..cdbe34626f5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgContract_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice.g.cs index 2670969630a..bb6ad14a6a1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceById.g.cs index e32fd7180ee..5e80e323771 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceCount.g.cs index 65d5da6760f..33468ccdfb6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceDelta.g.cs index e3e5794695a..46a6dd837b9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension.g.cs index c18dda1e3a9..be6b6681ea6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtensionCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtensionCount.g.cs index 74f6b2a79b8..e10a43d7949 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtensionCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_Get.g.cs index d9e2da2a86f..6f7db09a013 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_List.g.cs index 833b16d641c..d5650da83d1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberGroup.g.cs index 0dd58562bb1..b19485ed9c9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberObject.g.cs index 9619f51239b..8c6987e2f48 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf.g.cs index f3c2578a1b9..9e75aa21df5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit.g.cs index 4e6f357aae5..474572ab99d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_Get.g.cs index c5d99070bba..9453f76620a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_List.g.cs index d7dd35470ca..9d523fcdf0d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup.g.cs index 80bf749b3af..a9c2fb9b441 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_Get.g.cs index 60660b6576b..621d4c55570 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_List.g.cs index 97ef924ced3..62ed1df3317 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCount.g.cs index 0a4f7049508..d44b73d72f2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsAdministrativeUnit.g.cs index 3dc94cd3eaf..37fbe599824 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsGroup.g.cs index 9d029f115d6..6ce94c84d33 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_Get.g.cs index 5c655d90f75..fc38329d47c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_List.g.cs index 9c43eff9043..2e80d75e0bd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwner.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwner.g.cs index 996dc0145aa..f5bac5ca798 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwner.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwner.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment.g.cs index 834399574c8..6c18c7af158 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_Get.g.cs index c6d93582b06..b4b4b69c4de 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_List.g.cs index afdfc482403..cf5378d220e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint.g.cs index ef4f1c1bb3f..56f7f9553eb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_Get.g.cs index d35851eff59..df3729a4159 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_List.g.cs index 2387c42d642..f6048038394 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal.g.cs index cda50b7ee4f..2d94ebaf5a7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_Get.g.cs index b0797944925..218f3dd848f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_List.g.cs index 63e1d8f9a96..733854631f9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser.g.cs index 88001fc203d..e999d76f79e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_Get.g.cs index d4e041db6e0..a2eac77a26a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_List.g.cs index 6ed313cf053..4175d173b11 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerByRef.g.cs index 8e6a3c081b3..cf4d0f42a49 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCount.g.cs index 502b3769948..417b811a3e6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsAppRoleAssignment.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsAppRoleAssignment.g.cs index 8d5ceae911d..b7838edff96 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsAppRoleAssignment.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsEndpoint.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsEndpoint.g.cs index 3cca1c38a6b..77b27707758 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsEndpoint.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsServicePrincipal.g.cs index e7be6686810..b9c4c1ec4c0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsUser.g.cs index 7db02045bf8..c999ea27277 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredOwnerCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUser.g.cs index b8d5f16d072..7e582d85c63 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUser.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment.g.cs index 0f23fd69ce4..e0902879b8f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_Get.g.cs index d539b4fbaf2..8385c3971d2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_List.g.cs index 8d3d4d30729..58569a57c9d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint.g.cs index 6af8158856d..467b60a765e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_Get.g.cs index 0875b074619..e07eec66766 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_List.g.cs index 8bdb244d59f..1105bd7aae2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal.g.cs index 370fce90e01..c67acd7eba7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_Get.g.cs index 2c8b5166a74..9feba2c9e60 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_List.g.cs index a4af15347ea..78b30204ad1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser.g.cs index cedb76862f9..74967582a27 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_Get.g.cs index 84e9bd62983..fc8d83766e0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_List.g.cs index f178193a710..34eeb02507d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserByRef.g.cs index 5e429da78bd..8622560a709 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCount.g.cs index a1ec2c00ffb..f97ba6eb08c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsAppRoleAssignment.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsAppRoleAssignment.g.cs index 8d0fd3efa73..98f6abc2743 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsAppRoleAssignment.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsEndpoint.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsEndpoint.g.cs index 9cc5e3d980e..3aaf2290b78 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsEndpoint.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsServicePrincipal.g.cs index 7cdb579efc9..8ddda87c57d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsUser.g.cs index 5ef7b207332..dd0c8a8f412 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceRegisteredUserCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf.g.cs index 712cf23fa4e..d7a1e08362c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit.g.cs index ec7376e100f..d385019b056 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_Get.g.cs index 633c535fa0d..4c948564d4e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_List.g.cs index 71963bf750e..6053255e4f4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup.g.cs index 8a053bbd324..50718e41c6d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_Get.g.cs index a535661d897..b0cf4f684eb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_List.g.cs index 4befbd8e25a..933fd8b2d5b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCount.g.cs index 4aab0909377..24610768e3e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsAdministrativeUnit.g.cs index 7fcc2bf5611..23f13538461 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsGroup.g.cs index 63a974e0228..5cf4f56b5ba 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_Get.g.cs index 2bf7e582435..468a33f5f9a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_List.g.cs index 81c78100b51..a6d6de2324a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDeviceTransitiveMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_Get.g.cs index 141cffc14ee..b0c6a94ad48 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_List.g.cs index f347ba99c9a..00fde791ea5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDevice_List.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -141,7 +141,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectory.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectory.g.cs index ff3b799eec2..4719abab06a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectory.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectory.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit.g.cs index e44deb76ba7..82fa910cbce 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AdministrativeUnitId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitCount.g.cs index 7fe92c5d227..809f6c5a722 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitDelta.g.cs index 2b0c1386cf8..4803fa12452 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension.g.cs index ca79b5dce59..234a31e0e1f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtensionCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtensionCount.g.cs index c05dcf0ec5e..72e4578510e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtensionCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_Get.g.cs index 0c6eb8c1e3d..d9d86f7ecd8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_List.g.cs index 0975883e5c4..375cd96d249 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMember.g.cs index 831c47f5068..110c44e7109 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMember.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication.g.cs index 4dacd66b01d..9ef93ff9476 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_Get.g.cs index 29058c8c5b7..4016d3bbbbf 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_List.g.cs index ba7de870830..ee6983ba79c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice.g.cs index 1479bfdcf29..8613d1c0149 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_Get.g.cs index 96111d80053..7177ddadc57 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_List.g.cs index 4c06fe7637c..fb4332ce951 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup.g.cs index 9568278ec22..87ccc5d578c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_Get.g.cs index 79d2e3c642b..cfbf5ac532d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_List.g.cs index 96f1fa95bb3..d94bd50e10b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact.g.cs index 9156d48e561..3c4d7659650 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_Get.g.cs index 1b746758908..6fc6203cab7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_List.g.cs index 5d9aa679562..b54b7df4aed 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal.g.cs index cc93966f617..f14bc6da747 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_Get.g.cs index 48c9e2080bf..8633f88c771 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_List.g.cs index e25183c130b..23d727afc87 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser.g.cs index ff9ace6f958..507301e3822 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_Get.g.cs index e86ff4033ec..0085ab0fc6b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_List.g.cs index f2b633df2e9..eebfa875113 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberByRef.g.cs index 723115c7e6b..2d3b6562216 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCount.g.cs index 87db59fe7e0..d3986bccc8d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsApplication.g.cs index 84d292e754d..3b4b472dc90 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsDevice.g.cs index 53638faa0d4..f3b3e6bce65 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsGroup.g.cs index bebb619316b..d208d793c6f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsOrgContact.g.cs index 6bd62a92872..a56155dc7bb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsServicePrincipal.g.cs index 54ba6a30793..aafa51a06e6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsUser.g.cs index 65875d794a9..eb24833d233 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitMemberCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember.g.cs index 16e2e1b07e8..8dc8bf2abdd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ScopedRoleMembershipId : AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMemberCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMemberCount.g.cs index 2030af3d61d..f35fd8587de 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMemberCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_Get.g.cs index 3cd41e8b3d5..889bc38a887 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_List.g.cs index 6f90af390b1..21a3e4aa8c2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnitScopedRoleMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_Get.g.cs index af49921ea7c..390738e0c19 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_List.g.cs index c24f9ae5292..c87713f0f6f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAdministrativeUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet.g.cs index 97ca7c65acd..1c1d23fd024 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttributeSetId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSetCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSetCount.g.cs index 763869d3d18..31475cb25a9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSetCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSetCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_Get.g.cs index 1a38bf0a27b..629d786cf06 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttributeSetId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_List.g.cs index ede9decefab..cfe56257222 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryAttributeSet_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition.g.cs index f6ee79c3b47..eb29e275236 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomSecurityAttributeDefinitionId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs index 49dab006eaf..01c37c5b984 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AllowedValueId : CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValueCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValueCount.g.cs index 1687c9b0faa..499264bb5ee 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValueCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValueCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_Get.g.cs index 1a81752867a..bfbb297beba 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AllowedValueId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_List.g.cs index b8a4373762e..991a3954f42 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionAllowedValue_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionCount.g.cs index 751e6c0a59b..97bedac22de 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_Get.g.cs index 54559e7b578..526d18aee08 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_List.g.cs index e3d8d81dfee..ede01c8e54b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryCustomSecurityAttributeDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem.g.cs index 90eedef4af8..195cd90126b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit.g.cs index 4919c591b83..b7d24872184 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_Get.g.cs index b75ff51bedd..f4c11eb65d8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_List.g.cs index 09c3b840cdd..9b98b1227b3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsAdministrativeUnit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication.g.cs index 2b2bb17d737..200a5416e8d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_Get.g.cs index 6f083446109..92eb6dfb0ec 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_List.g.cs index a603c23e7b6..5f522548b4d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsApplication_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice.g.cs index cdf5b5f0f8d..8693a398ea7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_Get.g.cs index 32481002057..d9416d01308 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_List.g.cs index 77250ecd142..05cdc920c87 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsDevice_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup.g.cs index ce894474858..75306c74090 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_Get.g.cs index c0369b9a62d..c83257e025a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_List.g.cs index 5347f2e7a0d..d8da4bce703 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsGroup_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal.g.cs index 5f910183d54..d49986a3913 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_Get.g.cs index dc87eed1c97..d4005d9e82a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_List.g.cs index 05661d09a0e..2ddace829d9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsServicePrincipal_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser.g.cs index 243f2215bd1..beb505b4e90 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_Get.g.cs index 9fde645f52d..76c994f9622 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_List.g.cs index 7a14128035a..a998f603cb4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemAsUser_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemById.g.cs index 0d13f78693f..4d5438cfe48 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsAdministrativeUnit.g.cs index d9245e0222a..59c6e4230fd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsAdministrativeUnit.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsApplication.g.cs index 6acee8946f1..14cb6a54461 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsApplication.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsDevice.g.cs index 5d7020145a7..47221ac541d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsDevice.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsGroup.g.cs index 6945a717936..ce86d6e150d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsServicePrincipal.g.cs index 21c42b6d776..f581a846266 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsServicePrincipal.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsUser.g.cs index 4a79caa9c27..297062b4e16 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemCountAsUser.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberGroup.g.cs index 05cd2ac4dc4..89e8c4fd12a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberObject.g.cs index 1aa78db18fd..b5170f4fb72 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItemMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_Get.g.cs index feb699d6520..4c467e5b7bf 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_List.g.cs index cb3af4c9209..938e2379254 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeletedItem_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential.g.cs index e0efa41e329..7ad5059c86a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceLocalCredentialInfoId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredentialCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredentialCount.g.cs index d49dae527d8..f988346f19a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredentialCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredentialCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_Get.g.cs index 91a3e29ef3c..7fc4659dd22 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLocalCredentialInfoId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_List.g.cs index 94468b19599..1ef4d5e3693 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryDeviceLocalCredential_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration.g.cs index 41aa8969e47..72185ffbe8a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityProviderBaseId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfigurationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfigurationCount.g.cs index 2e02c03e4a2..01a274ab0ff 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfigurationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_Get.g.cs index 2d643321155..8764f08b832 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_List.g.cs index 1cf91a642af..c0cd0b232cb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryFederationConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization.g.cs index 9b3d1eb02d1..56fef41e1f2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnPremisesDirectorySynchronizationId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronizationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronizationCount.g.cs index 8a86def1ae6..fb5a736f85c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronizationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronizationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_Get.g.cs index c26bb1a9826..7263d091a97 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnPremisesDirectorySynchronizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_List.g.cs index 89eb6d75eab..e94a9ff254f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryOnPremiseSynchronization_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructure.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructure.g.cs index d9b1b01f185..993d853aa77 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructure.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructure.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs index 81015e1a383..41b30cd3dc0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CertificateBasedAuthPkiId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs index 3e424d15cd2..d26cde14de2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CertificateAuthorityDetailId : CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthorityCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthorityCount.g.cs index d05f34b51f2..8eb47751f57 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthorityCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthorityCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_Get.g.cs index e28c579fd38..60f56838d1e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateAuthorityDetailId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_List.g.cs index 7c0dccb194e..63a5cb6edd7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCount.g.cs index a56945687c9..4067414a7a0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_Get.g.cs index 2e946966ecb..81d469f59d4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_List.g.cs index bbf81f21f20..bf70411d005 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecovery.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecovery.g.cs index b4440d9dee3..8601c84adbe 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecovery.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecovery.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob.g.cs index e9b16cf34d5..12ccdf70d20 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RecoveryJobBaseId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJobCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJobCount.g.cs index 0cc6c25004e..10fe939324b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJobCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJobCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_Get.g.cs index a21756e7a1a..9e56a600f6f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_List.g.cs index 64b3ff9b4a7..7c20435eb91 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoveryJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot.g.cs index eb6c9f68a8a..b80474521c7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SnapshotId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotCount.g.cs index 22b95c0e761..ceaaf824197 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob.g.cs index 9fee044a88d..979cb2e3438 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RecoveryJobId : SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJobCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJobCount.g.cs index e4324b2b8c7..786532b36f7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJobCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_Get.g.cs index db8732e025c..006c866ecf7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_List.g.cs index c2869560b64..d5a331178ca 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob.g.cs index 2deae0fb184..c9ea86359b5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RecoveryPreviewJobId : SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJobCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJobCount.g.cs index 711e8b03c7f..eca35f02608 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJobCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJobCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_Get.g.cs index bf97c52f7f6..17566403d27 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryPreviewJobId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_List.g.cs index 8d55e6f692e..01876c18150 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshotRecoveryPreviewJob_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_Get.g.cs index 640f5a98402..64ee63b3745 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_List.g.cs index d362e5c8cd7..adcec680f81 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRecoverySnapshot_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup.g.cs new file mode 100644 index 00000000000..9b03382e192 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("GET", "/directory/remoteTenantGroups")] + [Cmdlet(VerbsCommon.Get, "MgDirectoryRemoteTenantGroup", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroupCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup), ParameterSetName = new[] { "Get" })] + public class GetMgDirectoryRemoteTenantGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string RemoteTenantGroupId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgDirectoryRemoteTenantGroup_Get or Get-MgDirectoryRemoteTenantGroup_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgDirectoryRemoteTenantGroup_Get" : "Get-MgDirectoryRemoteTenantGroup_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RemoteTenantGroupId : null); + return; + } + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroupCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroupCount.g.cs new file mode 100644 index 00000000000..a392452d777 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroupCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("GET", "/directory/remoteTenantGroups/$count")] + [Cmdlet(VerbsCommon.Get, "MgDirectoryRemoteTenantGroupCount")] + [OutputType(typeof(int))] + public class GetMgDirectoryRemoteTenantGroupCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Directory.RemoteTenantGroups.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_Get.g.cs new file mode 100644 index 00000000000..10c046a06f6 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("GET", "/directory/remoteTenantGroups/{remoteTenantGroup-id}")] + [Cmdlet(VerbsCommon.Get, "MgDirectoryRemoteTenantGroup_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup))] + public class GetMgDirectoryRemoteTenantGroup_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string RemoteTenantGroupId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup? result; + try + { + result = client.Directory.RemoteTenantGroups[RemoteTenantGroupId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RemoteTenantGroupId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_List.g.cs new file mode 100644 index 00000000000..3d986f656d2 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRemoteTenantGroup_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("GET", "/directory/remoteTenantGroups")] + [Cmdlet(VerbsCommon.Get, "MgDirectoryRemoteTenantGroup_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup))] + public class GetMgDirectoryRemoteTenantGroup_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroupCollectionResponse? result; + try + { + result = client.Directory.RemoteTenantGroups.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Directory.RemoteTenantGroups.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole.g.cs index a873e912fbc..2374d6ce61c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryRoleId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleById.g.cs index 9af034bcb80..ca00627ac30 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleCount.g.cs index 099c2cc427e..63a9f29c8b7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleDelta.g.cs index ed36ca6d003..11375765b99 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMember.g.cs index 5fdc7b9aa7c..2175660a473 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMember.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication.g.cs index 534c531aaed..68d4e9dc464 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_Get.g.cs index 6ffe3dee954..9bc293ce481 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_List.g.cs index 702e47f5474..6f2eb1da5b3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice.g.cs index 422243357c3..c2bb7f387b1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_Get.g.cs index 3eebb07391e..440f2a2d6e8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_List.g.cs index 776978b271c..d4c52e98b20 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup.g.cs index d31994939d0..01b68d63f14 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_Get.g.cs index 8e6fc97cdd5..bc55d62f299 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_List.g.cs index 3e9ec74fb1d..2de8575322d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact.g.cs index fcfd04292f1..edce91d00ff 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_Get.g.cs index 0331ee554b1..6109ed24094 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_List.g.cs index 7ce3c6989bd..609d80e6ac1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal.g.cs index a8e4bb93b13..7d95abafa17 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_Get.g.cs index b2949a80239..cd33c5a017e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_List.g.cs index 9717abdaf11..5a4a550974d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser.g.cs index f9f36b76d70..7680c51e85c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_Get.g.cs index 2ab39281ecf..5621e96ee44 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_List.g.cs index 99ada265a48..bfa9b348bce 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberByRef.g.cs index 6004d3c3a5a..7266fb03087 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberByRef.g.cs @@ -112,7 +112,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -128,7 +128,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCount.g.cs index 70b4d994399..a2858440668 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsApplication.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsApplication.g.cs index 269067b80ce..ae5be8a89fb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsApplication.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsDevice.g.cs index 6955bf04b74..c7e797d0210 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsGroup.g.cs index 63e5d0a1977..976e6171007 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsOrgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsOrgContact.g.cs index 42e78f73458..cb50bc1ec3f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsOrgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsServicePrincipal.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsServicePrincipal.g.cs index 8ec58310951..4b4f70cb2c1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsServicePrincipal.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsUser.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsUser.g.cs index b85ad29c539..8c65cc11185 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsUser.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberGroup.g.cs index 2056084eec6..6ff4baa6ab2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberObject.g.cs index e6147e9d7fb..8d57ece21d9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember.g.cs index cfc313ec5aa..7480d062f45 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ScopedRoleMembershipId : DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMemberCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMemberCount.g.cs index 245ee4b49b5..567c9a0dbba 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMemberCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_Get.g.cs index 3f62e0cd236..9415a144afd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_List.g.cs index 09f504d12f2..f4530184f0c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleScopedMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate.g.cs index 098dc44e18e..3a4a89ce287 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryRoleTemplateId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateById.g.cs index b945be05b14..9046ae121d0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateCount.g.cs index 2bab89c9084..5773b3ad213 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateDelta.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateDelta.g.cs index 00ba39ab15f..0695c69b23e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateDelta.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberGroup.g.cs index 71671c09ef9..c6c7d475e20 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberObject.g.cs index fc1cb7eb7e8..33da5ea063f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplateMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_Get.g.cs index 08f9afc7ad0..0c5309ad0dc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_List.g.cs index 66eb0c3a988..fcb5684ba60 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRoleTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_Get.g.cs index 0369e992c98..8819094917b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_List.g.cs index acfb2065004..3ff01c0911d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectoryRole_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription.g.cs index cfdd65a7779..3695d555eb2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CompanySubscriptionId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscriptionCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscriptionCount.g.cs index 089556c5627..cbe85e56f89 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscriptionCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscriptionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_Get.g.cs index 5f26e60a20f..2d82f7e1aac 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CompanySubscriptionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_List.g.cs index 72e021412d6..88c4f681307 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDirectorySubscription_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain.g.cs index dc05166c55a..5cecab21fb9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DomainId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainCount.g.cs index 7734c35a401..ad4cd526707 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration.g.cs index 6226a24befd..11302026461 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? InternalDomainFederationId : DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfigurationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfigurationCount.g.cs index edc109fed70..f91f50ba71b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfigurationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfigurationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_Get.g.cs index fbc738d7fc4..7d078cbc9ce 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InternalDomainFederationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_List.g.cs index db1ea0211bf..349d924aa47 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainFederationConfiguration_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference.g.cs index c2c067d176d..363584d98b0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReferenceCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReferenceCount.g.cs index d27165d98e5..4d3e1509000 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReferenceCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReferenceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_Get.g.cs index c1060d4f677..e468fe0a963 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_List.g.cs index d219e751064..45a27a3a9d9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainNameReference_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainRootDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainRootDomain.g.cs index f0b4a6431f6..6e25628716f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainRootDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainRootDomain.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord.g.cs index 658990950dc..300062a8e76 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DomainDnsRecordId : DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecordCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecordCount.g.cs index ae4739ea0c1..ba79eba2065 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecordCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecordCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_Get.g.cs index 3c57b75d5e5..97b0b536217 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_List.g.cs index 59e3e2198d0..155d38db701 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainServiceConfigurationRecord_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord.g.cs index 75d1de06f7a..141508c59b8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DomainDnsRecordId : DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecordCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecordCount.g.cs index 256b5454a94..e9ec1a8d092 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecordCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecordCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_Get.g.cs index cd72e0900c0..84262e89ab0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_List.g.cs index 0581d7b6ef1..578fd348bac 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomainVerificationDnsRecord_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_Get.g.cs index f99b9267f83..e608f1cbce6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_List.g.cs index b6136a803b0..58d5b8be001 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgDomain_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization.g.cs index 4c5714a37de..1e307ec064b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OrganizationId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBranding.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBranding.g.cs index d607736be2e..1fb133249a7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBranding.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBranding.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBackgroundImage.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBackgroundImage.g.cs index 863c691d477..8fc31881289 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBackgroundImage.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBackgroundImage.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBannerLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBannerLogo.g.cs index 04d6343bb3c..440e42b4dd5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBannerLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingBannerLogo.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingCustomCSS.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingCustomCSS.g.cs index 765c6900b96..758b6a31541 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingCustomCSS.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingCustomCSS.g.cs @@ -12,9 +12,9 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement { [GraphRoute("GET", "/organization/{organization-id}/branding/customCSS")] - [Cmdlet(VerbsCommon.Get, "MgOrganizationBrandingCustomCSS")] + [Cmdlet(VerbsCommon.Get, "MgOrganizationBrandingCustomCss")] [OutputType(typeof(byte[]))] - public class GetMgOrganizationBrandingCustomCSSCommand : GraphClientCmdlet + public class GetMgOrganizationBrandingCustomCssCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string OrganizationId { get; set; } = string.Empty; @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingFavicon.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingFavicon.g.cs index e6d7f306356..6fa455302e4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingFavicon.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingFavicon.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingHeaderLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingHeaderLogo.g.cs index 90b369f19c9..5c25594a296 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingHeaderLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingHeaderLogo.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization.g.cs index da135f645f7..f00b1ac84b8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OrganizationalBrandingLocalizationId : OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBackgroundImage.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBackgroundImage.g.cs index e7e8fbd873a..0c8ed204c45 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBackgroundImage.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBackgroundImage.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBannerLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBannerLogo.g.cs index c07a17ac59c..8bb579609de 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBannerLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationBannerLogo.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCount.g.cs index eea5404dd34..f02201d44b9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCustomCSS.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCustomCSS.g.cs index e20c8bb8296..85e8f00dbee 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCustomCSS.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationCustomCSS.g.cs @@ -12,9 +12,9 @@ namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement { [GraphRoute("GET", "/organization/{organization-id}/branding/localizations/{organizationalBrandingLocalization-id}/customCSS")] - [Cmdlet(VerbsCommon.Get, "MgOrganizationBrandingLocalizationCustomCSS")] + [Cmdlet(VerbsCommon.Get, "MgOrganizationBrandingLocalizationCustomCss")] [OutputType(typeof(byte[]))] - public class GetMgOrganizationBrandingLocalizationCustomCSSCommand : GraphClientCmdlet + public class GetMgOrganizationBrandingLocalizationCustomCssCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string OrganizationId { get; set; } = string.Empty; @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationFavicon.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationFavicon.g.cs index c33e814d370..8ddab6aa1be 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationFavicon.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationFavicon.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationHeaderLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationHeaderLogo.g.cs index 54088d990e6..9fb2a0ac050 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationHeaderLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationHeaderLogo.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogo.g.cs index 22e3a338a6e..da18a8ec8f6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogo.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogoDark.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogoDark.g.cs index dc7fc0faa7c..8014ea37e7d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogoDark.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalizationSquareLogoDark.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_Get.g.cs index cc995b51dd0..120fe6bf4bf 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_List.g.cs index 20c8e4d2bb7..88f781d7558 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingLocalization_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogo.g.cs index 137c29342f6..588ffb0e574 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogo.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogoDark.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogoDark.g.cs index 911f16b8862..b1425924f85 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogoDark.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationBrandingSquareLogoDark.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationById.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationById.g.cs index 6b7175cc531..88da436f475 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationById.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationCount.g.cs index d769183e956..dcc6dcda3b8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension.g.cs index a1cd49ef0e3..2585414be65 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtensionCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtensionCount.g.cs index 5890ca20b73..9e9c29450a8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtensionCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_Get.g.cs index 9b2e2d87698..a9f89699a2d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_List.g.cs index 048f190410c..dbb5ee8057a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberGroup.g.cs index 8ed39d2d93c..7314d59faa1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberGroup.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberObject.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberObject.g.cs index 8acd1839cd2..a1fec11f8a5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberObject.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganizationMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_Get.g.cs index 77e53a9cbd2..9a2b5b851ea 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_List.g.cs index ee257de5b8d..09e0ff16e94 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgOrganization_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku.g.cs index c0d65c7e8aa..8d4d5923bc1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscribedSkuId : null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_Get.g.cs index 870b2b0620b..e6d83d2f70a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_Get.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscribedSkuId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_List.g.cs index 44fa45952d9..120f7c43a53 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgSubscribedSku_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByDomainNameWithDomainName.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByDomainNameWithDomainName.g.cs index 455296c446f..9412796b28c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByDomainNameWithDomainName.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByDomainNameWithDomainName.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByTenantIdWithTenantId.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByTenantIdWithTenantId.g.cs index 2f63891a0d3..2f8f6fb1e5a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByTenantIdWithTenantId.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipFindTenantInformationByTenantIdWithTenantId.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf.g.cs index 13c732a8243..0c54f016429 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ScopedRoleMembershipId : UserId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOfCount.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOfCount.g.cs index 67e23bbac13..5f42181a026 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOfCount.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOfCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_Get.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_Get.g.cs index b6ae4889f94..7fc3f81d79e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_Get.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_List.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_List.g.cs index 5dd0c9dda94..72c23c97eef 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_List.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/GetMgUserScopedRoleMemberOf_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgAvailableDirectoryFederationConfigurationProviderType.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgAvailableDirectoryFederationConfigurationProviderType.g.cs index 5730d723ae9..7aa5351c3ec 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgAvailableDirectoryFederationConfigurationProviderType.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgAvailableDirectoryFederationConfigurationProviderType.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgDirectoryRecoveryJobCancel.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgDirectoryRecoveryJobCancel.g.cs index dece5468ecf..c74a8246d8a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgDirectoryRecoveryJobCancel.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgDirectoryRecoveryJobCancel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgForceDomainDelete.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgForceDomainDelete.g.cs index 83096599c19..f0f613ecf8f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgForceDomainDelete.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgForceDomainDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgPromoteDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgPromoteDomain.g.cs index aa3fde2fac4..82bb01d9e52 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgPromoteDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgPromoteDomain.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgRetryContactServiceProvisioning.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgRetryContactServiceProvisioning.g.cs index 44289667e31..cecfa9b5f6d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgRetryContactServiceProvisioning.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgRetryContactServiceProvisioning.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgUploadDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgUploadDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs index c624e727180..5f6d1568b61 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgUploadDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/InvokeMgUploadDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileCardProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileCardProperty.g.cs index 0451ae356ea..04a4bc82143 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileCardProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileCardProperty.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfilePropertySetting.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfilePropertySetting.g.cs index da9f9e05d13..7e6263a18fa 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfilePropertySetting.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfilePropertySetting.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileSource.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileSource.g.cs index 734209fedbd..00cdef766ed 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileSource.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgAdminPeopleProfileSource.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgContract.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgContract.g.cs index 8fa42ba97c7..a03fac01bb0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgContract.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgContract.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDevice.g.cs index e0546c584e0..1c427c80ad9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDevice.g.cs @@ -230,7 +230,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceExtension.g.cs index 85d1a94116f..ba646cbca15 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceExtension.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredOwnerByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredOwnerByRef.g.cs index 9a2ad31bc52..3aed409ded1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredOwnerByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredOwnerByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredUserByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredUserByRef.g.cs index b912635712f..05f5efc4a73 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredUserByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDeviceRegisteredUserByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnit.g.cs index 940779c1ef6..6dda3feef43 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnit.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitExtension.g.cs index 10dfd8c6ad9..fc297b20355 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitExtension.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMember.g.cs index d235557737b..79802f81a35 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMemberByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMemberByRef.g.cs index 64f3b634cde..7c5987fea20 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMemberByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitMemberByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitScopedRoleMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitScopedRoleMember.g.cs index d9e78c1ac27..be34620b122 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitScopedRoleMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAdministrativeUnitScopedRoleMember.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAttributeSet.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAttributeSet.g.cs index 79261e636b8..eba9bceb89d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAttributeSet.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryAttributeSet.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinition.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinition.g.cs index 0bdd6bce4b2..821446e7958 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinition.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinition.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs index 47435bb9bb3..1b6e4106cc8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryDeviceLocalCredential.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryDeviceLocalCredential.g.cs index 2514506ab6f..531cbc687dd 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryDeviceLocalCredential.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryDeviceLocalCredential.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryFederationConfiguration.g.cs index 4e364631e05..b8aa70a502e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryFederationConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryOnPremiseSynchronization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryOnPremiseSynchronization.g.cs index 9d5b1e41b3f..9cf587e1a55 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryOnPremiseSynchronization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryOnPremiseSynchronization.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs index 00b05ea7863..4330f1b1e20 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs index 64ce6b4b2cf..ab589940aa7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoveryJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoveryJob.g.cs index 3f9b47e6c67..d44c6e90a47 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoveryJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoveryJob.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoverySnapshot.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoverySnapshot.g.cs index b3bd6d1d82f..1d0c01edd1e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoverySnapshot.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRecoverySnapshot.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRemoteTenantGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRemoteTenantGroup.g.cs new file mode 100644 index 00000000000..0954ae271d4 --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRemoteTenantGroup.g.cs @@ -0,0 +1,94 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("POST", "/directory/remoteTenantGroups")] + [Cmdlet(VerbsCommon.New, "MgDirectoryRemoteTenantGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup))] + public class NewMgDirectoryRemoteTenantGroupCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? DeletedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteGroupDisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? RemoteGroupId { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteTenantDisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? RemoteTenantId { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteTenantPrimaryDomain { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup(); + + if (this.IsParameterBound(nameof(DeletedDateTime))) + body.DeletedDateTime = DeletedDateTime; + + if (this.IsParameterBound(nameof(RemoteGroupDisplayName))) + body.RemoteGroupDisplayName = RemoteGroupDisplayName; + + if (this.IsParameterBound(nameof(RemoteGroupId))) + body.RemoteGroupId = RemoteGroupId; + + if (this.IsParameterBound(nameof(RemoteTenantDisplayName))) + body.RemoteTenantDisplayName = RemoteTenantDisplayName; + + if (this.IsParameterBound(nameof(RemoteTenantId))) + body.RemoteTenantId = RemoteTenantId; + + if (this.IsParameterBound(nameof(RemoteTenantPrimaryDomain))) + body.RemoteTenantPrimaryDomain = RemoteTenantPrimaryDomain; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup? result; + try + { + result = client.Directory.RemoteTenantGroups.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRole.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRole.g.cs index 286ece281c2..73990477c6f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRole.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRole.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleMemberByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleMemberByRef.g.cs index b5d6c112957..5f5534f7130 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleMemberByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleMemberByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleScopedMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleScopedMember.g.cs index e08e65789a4..8e8d5b588a5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleScopedMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleScopedMember.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleTemplate.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleTemplate.g.cs index fd22140dfce..8365e2a6574 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleTemplate.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectoryRoleTemplate.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectorySubscription.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectorySubscription.g.cs index 9f3d2ab4de2..d15e0cdde36 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectorySubscription.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDirectorySubscription.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomain.g.cs index 182d9af4d64..ea989f788a7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomain.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainFederationConfiguration.g.cs index 5e498b2fc11..8114090385e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainFederationConfiguration.g.cs @@ -62,6 +62,9 @@ public class NewMgDomainFederationConfigurationCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SigningCertificateUpdateStatus? SigningCertificateUpdateStatus { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SystemBrowserEnabledOn? SystemBrowserEnabledOn { get; set; } + @@ -116,6 +119,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(SigningCertificateUpdateStatus))) body.SigningCertificateUpdateStatus = SigningCertificateUpdateStatus; + if (this.IsParameterBound(nameof(SystemBrowserEnabledOn))) + body.SystemBrowserEnabledOn = SystemBrowserEnabledOn; + var requestAdapter = GetRequestAdapter(); var client = new ApiClient(requestAdapter); @@ -129,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainServiceConfigurationRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainServiceConfigurationRecord.g.cs index aa83439d195..ea8ba696beb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainServiceConfigurationRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainServiceConfigurationRecord.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainVerificationDnsRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainVerificationDnsRecord.g.cs index 8fcca46ffb6..b3ae79e9c7f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainVerificationDnsRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgDomainVerificationDnsRecord.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganization.g.cs index 0fc1e6e40fc..bb2d4eb72bb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganization.g.cs @@ -194,7 +194,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationBrandingLocalization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationBrandingLocalization.g.cs index dca22507e3b..55bb6b2269b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationBrandingLocalization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationBrandingLocalization.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationExtension.g.cs index 210aa03b955..8a40be9a90d 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgOrganizationExtension.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgSubscribedSku.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgSubscribedSku.g.cs index 09c75ac386b..2da9647b212 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgSubscribedSku.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgSubscribedSku.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgUserScopedRoleMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgUserScopedRoleMemberOf.g.cs index f2741de26e6..952b6e038f6 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgUserScopedRoleMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/NewMgUserScopedRoleMemberOf.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleItemInsight.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleItemInsight.g.cs index 7538c9dbc58..5a33828eb8e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleItemInsight.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleItemInsight.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileCardProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileCardProperty.g.cs index 724f400c5c2..6e239f416d7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileCardProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileCardProperty.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileCardPropertyId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfilePropertySetting.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfilePropertySetting.g.cs index ca04868ebc5..7fdeb32fb9f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfilePropertySetting.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfilePropertySetting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfilePropertySettingId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileSource.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileSource.g.cs index 5fea3077934..bc489555809 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileSource.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgAdminPeopleProfileSource.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileSourceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContact.g.cs index f825d93fee3..d135be141b3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContact.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContactOnPremiseSyncBehavior.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContactOnPremiseSyncBehavior.g.cs index b307fda98fc..048e67d96ab 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContactOnPremiseSyncBehavior.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContactOnPremiseSyncBehavior.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContract.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContract.g.cs index 1df182d8388..2ca6d68b472 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContract.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgContract.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDevice.g.cs index 4adbe7bcc2b..aa2833766b4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDevice.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceExtension.g.cs index b84bc090235..a584da945bc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredOwnerDirectoryObjectByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredOwnerDirectoryObjectByRef.g.cs index b534e160919..8081b73fa87 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredOwnerDirectoryObjectByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredOwnerDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredUserDirectoryObjectByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredUserDirectoryObjectByRef.g.cs index efb2b90580a..964f785b6ec 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredUserDirectoryObjectByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDeviceRegisteredUserDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnit.g.cs index f7313e564de..c72b4a23355 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnit.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitExtension.g.cs index 705cbe86a7c..c3cdbd20c7c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitMemberDirectoryObjectByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitMemberDirectoryObjectByRef.g.cs index c3a1cf64f30..253a9d14528 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitMemberDirectoryObjectByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitMemberDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitScopedRoleMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitScopedRoleMember.g.cs index 713b251f198..05d36e603b4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitScopedRoleMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAdministrativeUnitScopedRoleMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAttributeSet.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAttributeSet.g.cs index 94d89bcf7ee..3f4f00524d1 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAttributeSet.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryAttributeSet.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttributeSetId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinition.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinition.g.cs index 55e73ec2995..59452ff0256 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinition.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs index 7072b8ecceb..5a1398761dc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AllowedValueId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeletedItem.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeletedItem.g.cs index b80d2963e5d..cedf29bf343 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeletedItem.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeletedItem.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeviceLocalCredential.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeviceLocalCredential.g.cs index b7a239744c9..00d37f048c0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeviceLocalCredential.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryDeviceLocalCredential.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLocalCredentialInfoId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryFederationConfiguration.g.cs index 7d99ced4b77..223bd020e2c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryFederationConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryOnPremiseSynchronization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryOnPremiseSynchronization.g.cs index 4c46770b0bb..526be4157bb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryOnPremiseSynchronization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryOnPremiseSynchronization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnPremisesDirectorySynchronizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructure.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructure.g.cs index 2e313a73b94..1b435583887 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructure.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructure.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs index fb6d0f8f3af..02500a459c2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs index d0903fdba3e..90b172be7bb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateAuthorityDetailId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecovery.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecovery.g.cs index f005cdc4271..7181348c8c8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecovery.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecovery.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoveryJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoveryJob.g.cs index 1f49c316be6..4871eb5a40a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoveryJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoveryJob.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoverySnapshot.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoverySnapshot.g.cs index 4b1bce61fd0..c8bbe38ced2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoverySnapshot.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRecoverySnapshot.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRemoteTenantGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRemoteTenantGroup.g.cs new file mode 100644 index 00000000000..83a95218b0d --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRemoteTenantGroup.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("DELETE", "/directory/remoteTenantGroups/{remoteTenantGroup-id}")] + [Cmdlet(VerbsCommon.Remove, "MgDirectoryRemoteTenantGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgDirectoryRemoteTenantGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string RemoteTenantGroupId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(RemoteTenantGroupId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Directory.RemoteTenantGroups[RemoteTenantGroupId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RemoteTenantGroupId); + return; + } + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRole.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRole.g.cs index 806f756c647..41fa0872e51 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRole.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRole.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleMemberDirectoryObjectByRef.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleMemberDirectoryObjectByRef.g.cs index 4e3f7d4bc0e..e65b1fbee94 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleMemberDirectoryObjectByRef.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleMemberDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleScopedMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleScopedMember.g.cs index b2103d29e4e..4361660fe4a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleScopedMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleScopedMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleTemplate.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleTemplate.g.cs index 6586e98d157..6d964bac346 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleTemplate.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectoryRoleTemplate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectorySubscription.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectorySubscription.g.cs index 7c6778f7784..b39e2b608c2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectorySubscription.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDirectorySubscription.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CompanySubscriptionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomain.g.cs index 6dd00be78db..e03fb190c0e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomain.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainFederationConfiguration.g.cs index 46b791aa6cd..7c94cff7b08 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainFederationConfiguration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InternalDomainFederationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainServiceConfigurationRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainServiceConfigurationRecord.g.cs index 73e04ec2e1d..fa98a330c22 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainServiceConfigurationRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainServiceConfigurationRecord.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainVerificationDnsRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainVerificationDnsRecord.g.cs index b967d313135..db2e1b42a96 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainVerificationDnsRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgDomainVerificationDnsRecord.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganization.g.cs index 260504b0675..87426ff6fa4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBranding.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBranding.g.cs index d0c6b2ee0d1..68d786e6a09 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBranding.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBranding.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBackgroundImage.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBackgroundImage.g.cs index d44190fde50..8589a99f452 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBackgroundImage.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBackgroundImage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBannerLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBannerLogo.g.cs index 332ccc1afcc..330f68f4da0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBannerLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingBannerLogo.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingCustomCSS.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingCustomCSS.g.cs index d176d6791dc..eb5106d644e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingCustomCSS.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingCustomCSS.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingFavicon.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingFavicon.g.cs index 59240f9a6b4..3088b781a71 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingFavicon.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingFavicon.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingHeaderLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingHeaderLogo.g.cs index 50a57247eb7..17cb5e36307 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingHeaderLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingHeaderLogo.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalization.g.cs index 4798550e368..c2a4631664a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalization.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBackgroundImage.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBackgroundImage.g.cs index b30062eb1b9..a773fccdcee 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBackgroundImage.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBackgroundImage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBannerLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBannerLogo.g.cs index aa045dfe04a..5f9e45076fc 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBannerLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationBannerLogo.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationCustomCSS.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationCustomCSS.g.cs index 7e52911fcca..f01c8fce5b2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationCustomCSS.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationCustomCSS.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationFavicon.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationFavicon.g.cs index 64daeffe694..91ada3f73bf 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationFavicon.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationFavicon.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationHeaderLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationHeaderLogo.g.cs index 125fa0c462f..782019e085e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationHeaderLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationHeaderLogo.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogo.g.cs index 1b88f308e64..c8a0e188999 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogo.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogoDark.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogoDark.g.cs index c606051ddaa..3bdaf94686f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogoDark.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingLocalizationSquareLogoDark.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogo.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogo.g.cs index e1db39708c1..ce1d386c667 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogo.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogo.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogoDark.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogoDark.g.cs index 74f102ef5fb..94479faafce 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogoDark.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationBrandingSquareLogoDark.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationExtension.g.cs index d113379440f..2bb67c4fb4c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgOrganizationExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgSubscribedSku.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgSubscribedSku.g.cs index 650f69bccfc..3fddbfc5833 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgSubscribedSku.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgSubscribedSku.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscribedSkuId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgUserScopedRoleMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgUserScopedRoleMemberOf.g.cs index 2021979c78d..9cc8ddb91aa 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgUserScopedRoleMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RemoveMgUserScopedRoleMemberOf.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RestoreMgDirectoryDeletedItem.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RestoreMgDirectoryDeletedItem.g.cs index a8c1c3955cd..2365dc479d3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RestoreMgDirectoryDeletedItem.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/RestoreMgDirectoryDeletedItem.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/SetMgOrganizationMobileDeviceManagementAuthority.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/SetMgOrganizationMobileDeviceManagementAuthority.g.cs index a875053b438..c9011eaf6f3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/SetMgOrganizationMobileDeviceManagementAuthority.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/SetMgOrganizationMobileDeviceManagementAuthority.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContactProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContactProperty.g.cs index d9202c8bab7..2839256504a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContactProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContactProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContractProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContractProperty.g.cs index a01aa8e8f49..a10e58d7c9a 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContractProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgContractProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDeviceProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDeviceProperty.g.cs index 557eab36bf7..18ca0cf7ab8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDeviceProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDeviceProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryDeletedItemProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryDeletedItemProperty.g.cs index 4a553047ea8..01d3dd3254f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryDeletedItemProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryDeletedItemProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleProperty.g.cs index 9e7c8e7252d..3a4d031ff68 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleTemplateProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleTemplateProperty.g.cs index f38807d8a13..e744bcf6e48 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleTemplateProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgDirectoryRoleTemplateProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgOrganizationProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgOrganizationProperty.g.cs index 2d7b05dbf3c..eeb6effeacb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgOrganizationProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/TestMgOrganizationProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleItemInsight.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleItemInsight.g.cs index e7815d60369..f4efb8a2914 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleItemInsight.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleItemInsight.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Admin.People.ItemInsights.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileCardProperty.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileCardProperty.g.cs index cdd0739ac18..6af67f19ca2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileCardProperty.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileCardProperty.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileCardPropertyId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Admin.People.ProfileCardProperties[ProfileCardPropertyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileCardPropertyId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfilePropertySetting.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfilePropertySetting.g.cs index 74f7b564f2b..3f2f2e2586f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfilePropertySetting.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfilePropertySetting.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfilePropertySettingId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Admin.People.ProfilePropertySettings[ProfilePropertySettingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfilePropertySettingId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileSource.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileSource.g.cs index ac7a12eb301..3c9f131a07f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileSource.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeopleProfileSource.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileSourceId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Admin.People.ProfileSources[ProfileSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProfileSourceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeoplePronoun.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeoplePronoun.g.cs index 409e0ff5cad..1551a11e5a2 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeoplePronoun.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgAdminPeoplePronoun.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Admin.People.Pronouns.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContact.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContact.g.cs index 527f9d69d37..1e12bc69bdb 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContact.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContact.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.Contacts[OrgContactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContactOnPremiseSyncBehavior.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContactOnPremiseSyncBehavior.g.cs index f531e24a6b0..ceb75731265 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContactOnPremiseSyncBehavior.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContactOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Contacts[OrgContactId].OnPremisesSyncBehavior.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrgContactId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContract.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContract.g.cs index 68c6d78c8df..5e36e2309d8 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContract.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgContract.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Contracts[ContractId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContractId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDevice.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDevice.g.cs index 78aad2d3481..cae05b39b76 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDevice.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDevice.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; @@ -245,7 +245,7 @@ protected override void ProcessRecord() { result = client.Devices[DeviceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceExtension.g.cs index 0d5b2deea85..cfdec2f28d0 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDeviceExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Devices[DeviceId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectory.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectory.g.cs index b154a345d70..6cd9d630e7b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectory.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Directory.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnit.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnit.g.cs index d0d4e18f1d2..129e073bab4 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnit.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnit.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Directory.AdministrativeUnits[AdministrativeUnitId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AdministrativeUnitId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitExtension.g.cs index 4dbde525920..575e81a3104 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Directory.AdministrativeUnits[AdministrativeUnitId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitScopedRoleMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitScopedRoleMember.g.cs index 28793a11f49..4b945b7e23c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitScopedRoleMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAdministrativeUnitScopedRoleMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Directory.AdministrativeUnits[AdministrativeUnitId].ScopedRoleMembers[ScopedRoleMembershipId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAttributeSet.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAttributeSet.g.cs index 6ba739e3d01..146f0044049 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAttributeSet.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryAttributeSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttributeSetId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Directory.AttributeSets[AttributeSetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttributeSetId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinition.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinition.g.cs index b2132c7ad53..e356b4809f9 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinition.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinition.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Directory.CustomSecurityAttributeDefinitions[CustomSecurityAttributeDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomSecurityAttributeDefinitionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs index 23976729b1b..5c998e62037 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryCustomSecurityAttributeDefinitionAllowedValue.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AllowedValueId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Directory.CustomSecurityAttributeDefinitions[CustomSecurityAttributeDefinitionId].AllowedValues[AllowedValueId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AllowedValueId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryDeviceLocalCredential.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryDeviceLocalCredential.g.cs index c6cee4d56fc..cb385618c1c 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryDeviceLocalCredential.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryDeviceLocalCredential.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLocalCredentialInfoId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Directory.DeviceLocalCredentials[DeviceLocalCredentialInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceLocalCredentialInfoId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryFederationConfiguration.g.cs index b1cc6be2cd3..e261e9608c5 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryFederationConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Directory.FederationConfigurations[IdentityProviderBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryOnPremiseSynchronization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryOnPremiseSynchronization.g.cs index db2d64d9c41..a383ca7e53e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryOnPremiseSynchronization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryOnPremiseSynchronization.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnPremisesDirectorySynchronizationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Directory.OnPremisesSynchronization[OnPremisesDirectorySynchronizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnPremisesDirectorySynchronizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructure.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructure.g.cs index 0dfa4f97464..16d2b183439 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructure.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructure.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Directory.PublicKeyInfrastructure.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs index 1e7e9396879..a6624a01da7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfiguration.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Directory.PublicKeyInfrastructure.CertificateBasedAuthConfigurations[CertificateBasedAuthPkiId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthPkiId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs index 25c2d6463c6..c498314198f 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryPublicKeyInfrastructureCertificateBasedAuthConfigurationCertificateAuthority.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateAuthorityDetailId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Directory.PublicKeyInfrastructure.CertificateBasedAuthConfigurations[CertificateBasedAuthPkiId].CertificateAuthorities[CertificateAuthorityDetailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateAuthorityDetailId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecovery.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecovery.g.cs index 7e80958a4b7..c528e2d8cea 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecovery.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecovery.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Directory.Recovery.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoveryJob.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoveryJob.g.cs index bf58d11bece..ff086bce890 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoveryJob.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoveryJob.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobBaseId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Directory.Recovery.Jobs[RecoveryJobBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RecoveryJobBaseId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoverySnapshot.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoverySnapshot.g.cs index 177fdca7e1c..51bb132deff 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoverySnapshot.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRecoverySnapshot.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Directory.Recovery.Snapshots[SnapshotId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SnapshotId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRemoteTenantGroup.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRemoteTenantGroup.g.cs new file mode 100644 index 00000000000..6294b57737d --- /dev/null +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRemoteTenantGroup.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client; +using Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.DirectoryManagement +{ + [GraphRoute("PATCH", "/directory/remoteTenantGroups/{remoteTenantGroup-id}")] + [Cmdlet(VerbsData.Update, "MgDirectoryRemoteTenantGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup))] + public class UpdateMgDirectoryRemoteTenantGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string RemoteTenantGroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? DeletedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteGroupDisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? RemoteGroupId { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteTenantDisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? RemoteTenantId { get; set; } + + [Parameter(Mandatory = false)] + public string? RemoteTenantPrimaryDomain { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(RemoteTenantGroupId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup(); + + if (this.IsParameterBound(nameof(DeletedDateTime))) + body.DeletedDateTime = DeletedDateTime; + + if (this.IsParameterBound(nameof(RemoteGroupDisplayName))) + body.RemoteGroupDisplayName = RemoteGroupDisplayName; + + if (this.IsParameterBound(nameof(RemoteGroupId))) + body.RemoteGroupId = RemoteGroupId; + + if (this.IsParameterBound(nameof(RemoteTenantDisplayName))) + body.RemoteTenantDisplayName = RemoteTenantDisplayName; + + if (this.IsParameterBound(nameof(RemoteTenantId))) + body.RemoteTenantId = RemoteTenantId; + + if (this.IsParameterBound(nameof(RemoteTenantPrimaryDomain))) + body.RemoteTenantPrimaryDomain = RemoteTenantPrimaryDomain; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.RemoteTenantGroup? result; + try + { + result = client.Directory.RemoteTenantGroups[RemoteTenantGroupId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RemoteTenantGroupId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Directory.RemoteTenantGroups[RemoteTenantGroupId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RemoteTenantGroupId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRole.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRole.g.cs index bb7111d3502..5ce8050fb4b 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRole.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRole.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.DirectoryRoles[DirectoryRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleScopedMember.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleScopedMember.g.cs index 333856270df..be4233d5dd3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleScopedMember.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleScopedMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.DirectoryRoles[DirectoryRoleId].ScopedMembers[ScopedRoleMembershipId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleTemplate.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleTemplate.g.cs index a0faf502895..c5e91d182ca 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleTemplate.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectoryRoleTemplate.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.DirectoryRoleTemplates[DirectoryRoleTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryRoleTemplateId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectorySubscription.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectorySubscription.g.cs index c60d11c3d35..0f2fc8f7372 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectorySubscription.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDirectorySubscription.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CompanySubscriptionId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Directory.Subscriptions[CompanySubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CompanySubscriptionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomain.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomain.g.cs index 9ea17e35cb4..f3ce4c40867 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomain.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomain.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Domains[DomainId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainFederationConfiguration.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainFederationConfiguration.g.cs index 6b1f124a6ba..a37a9aae30e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainFederationConfiguration.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainFederationConfiguration.g.cs @@ -64,6 +64,9 @@ public class UpdateMgDomainFederationConfigurationCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SigningCertificateUpdateStatus? SigningCertificateUpdateStatus { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.DirectoryManagement.Client.Models.SystemBrowserEnabledOn? SystemBrowserEnabledOn { get; set; } + @@ -118,6 +121,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(SigningCertificateUpdateStatus))) body.SigningCertificateUpdateStatus = SigningCertificateUpdateStatus; + if (this.IsParameterBound(nameof(SystemBrowserEnabledOn))) + body.SystemBrowserEnabledOn = SystemBrowserEnabledOn; + var requestAdapter = GetRequestAdapter(); var client = new ApiClient(requestAdapter); @@ -131,7 +137,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InternalDomainFederationId); return; @@ -145,7 +151,7 @@ protected override void ProcessRecord() { result = client.Domains[DomainId].FederationConfiguration[InternalDomainFederationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InternalDomainFederationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainServiceConfigurationRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainServiceConfigurationRecord.g.cs index fb2fef94aaf..97b9bc64a3e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainServiceConfigurationRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainServiceConfigurationRecord.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Domains[DomainId].ServiceConfigurationRecords[DomainDnsRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainVerificationDnsRecord.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainVerificationDnsRecord.g.cs index 2c68228ed82..9aa35a9def7 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainVerificationDnsRecord.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgDomainVerificationDnsRecord.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Domains[DomainId].VerificationDnsRecords[DomainDnsRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DomainDnsRecordId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganization.g.cs index 370454a2fc9..4670927aa8e 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganization.g.cs @@ -195,7 +195,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; @@ -209,7 +209,7 @@ protected override void ProcessRecord() { result = client.Organization[OrganizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBranding.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBranding.g.cs index 579711d0b1f..02d22ca4325 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBranding.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBranding.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; @@ -245,7 +245,7 @@ protected override void ProcessRecord() { result = client.Organization[OrganizationId].Branding.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBrandingLocalization.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBrandingLocalization.g.cs index 9caf1776177..14da8ab7b61 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBrandingLocalization.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationBrandingLocalization.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; @@ -247,7 +247,7 @@ protected override void ProcessRecord() { result = client.Organization[OrganizationId].Branding.Localizations[OrganizationalBrandingLocalizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationalBrandingLocalizationId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationExtension.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationExtension.g.cs index f0a4ffa8a68..318afd03ea3 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationExtension.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgOrganizationExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Organization[OrganizationId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgSubscribedSku.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgSubscribedSku.g.cs index e107ad7557c..f26cd732745 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgSubscribedSku.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgSubscribedSku.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscribedSkuId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.SubscribedSkus[SubscribedSkuId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscribedSkuId); return; diff --git a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgUserScopedRoleMemberOf.g.cs b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgUserScopedRoleMemberOf.g.cs index 08c4a4398ee..66d85248608 100644 --- a/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgUserScopedRoleMemberOf.g.cs +++ b/src/Identity.DirectoryManagement/wrapper/v1.0/Cmdlets/UpdateMgUserScopedRoleMemberOf.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ScopedRoleMemberOf[ScopedRoleMembershipId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ScopedRoleMembershipId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs index ad922f0442f..580fa8b22a7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/AccessReviewsRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.HistoryDefinitions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -30,6 +31,11 @@ public partial class AccessReviewsRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.HistoryDefinitions.HistoryDefinitionsRequestBuilder(PathParameters, RequestAdapter); } + /// The unified property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder Unified + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs new file mode 100644 index 00000000000..be4e60af381 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\acceptRecommendations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl) + { + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs index 6b586f958d6..7608f0d3f47 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs @@ -1,5 +1,7 @@ // #pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Stop; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; @@ -20,6 +22,16 @@ namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernan [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder { + /// The acceptRecommendations property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter); + } + /// The batchRecordDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter); + } /// The decisions property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder Decisions { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs new file mode 100644 index 00000000000..e27526ae5a4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The decision property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Decision { get; set; } +#nullable restore +#else + public string Decision { get; set; } +#endif + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { get; set; } +#nullable restore +#else + public string Justification { get; set; } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { get; set; } +#nullable restore +#else + public string PrincipalId { get; set; } +#endif + /// The resourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BatchRecordDecisionsPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decision", n => { Decision = n.GetStringValue(); } }, + { "justification", n => { Justification = n.GetStringValue(); } }, + { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("decision", Decision); + writer.WriteStringValue("justification", Justification); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..793d279596f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\batchRecordDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl) + { + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..43e35340511 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/DecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/DecisionsRequestBuilder.cs new file mode 100644 index 00000000000..521a7c0526e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/DecisionsRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.decisions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstanceDecisionItem%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.DecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.DecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..68ef0b16864 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..1b2167b08de --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..c9172feb237 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs new file mode 100644 index 00000000000..b2daab278fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\{accessReviewInstanceDecisionItem-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilder : BaseRequestBuilder + { + /// The insights property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.InsightsRequestBuilder Insights + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.InsightsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents the unified (vNext) access review decisions on an instance of a review. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8c0c0a5b64e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\{accessReviewInstanceDecisionItem-id}\insights\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/InsightsRequestBuilder.cs new file mode 100644 index 00000000000..d5d8ccf69b7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\{accessReviewInstanceDecisionItem-id}\insights + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.decisions.item.insights.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("governanceInsight%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.InsightsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.InsightsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs new file mode 100644 index 00000000000..7f72007bbf9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\decisions\{accessReviewInstanceDecisionItem-id}\insights\{governanceInsight-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3d636795bba --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/DefinitionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/DefinitionsRequestBuilder.cs new file mode 100644 index 00000000000..bc80bc9b140 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/DefinitionsRequestBuilder.cs @@ -0,0 +1,249 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefinitionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.AccessReviewScheduleDefinitionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewScheduleDefinition%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.AccessReviewScheduleDefinitionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DefinitionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Retrieve the accessReviewScheduleDefinition objects for user-centric (catalog-scope) access reviews through the unified route. A list of zero or more accessReviewScheduleDefinition objects is returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new user-centric (catalog-scope) accessReviewScheduleDefinition object through the unified route. With a user-centric review, a reviewer evaluates a principal's access to every group and application contained in an entitlement management catalog in a single review. The catalog is identified in the resourceScopes collection of the principalResourceMembershipsScope. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve the accessReviewScheduleDefinition objects for user-centric (catalog-scope) access reviews through the unified route. A list of zero or more accessReviewScheduleDefinition objects is returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create a new user-centric (catalog-scope) accessReviewScheduleDefinition object through the unified route. With a user-centric review, a reviewer evaluates a principal's access to every group and application contained in an entitlement management catalog in a single review. The catalog is identified in the resourceScopes collection of the principalResourceMembershipsScope. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.DefinitionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.DefinitionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve the accessReviewScheduleDefinition objects for user-centric (catalog-scope) access reviews through the unified route. A list of zero or more accessReviewScheduleDefinition objects is returned, including all of their nested properties, for each access review series created. This doesn't include the associated accessReviewInstance objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefinitionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefinitionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DefinitionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..0ec0a97a183 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..87e6387293d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Returns accessReviewScheduleDefinition objects where the calling user is a reviewer on one or more accessReviewInstance objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..76dd1bae318 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs new file mode 100644 index 00000000000..dab37d9004c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/AccessReviewScheduleDefinitionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewScheduleDefinitionItemRequestBuilder : BaseRequestBuilder + { + /// The instances property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The stop property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop.StopRequestBuilder Stop + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewScheduleDefinitionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewScheduleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property definitions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the unified (vNext) template and scheduling for an access review. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property definitions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property definitions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents the unified (vNext) template and scheduling for an access review. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property definitions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.AccessReviewScheduleDefinitionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.AccessReviewScheduleDefinitionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewScheduleDefinitionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents the unified (vNext) template and scheduling for an access review. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewScheduleDefinitionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewScheduleDefinitionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewScheduleDefinitionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bb97152af6c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..83e4738fd9c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..f223e91907c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..410eb42dec2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/InstancesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..1b17a16d161 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AccessReviewInstanceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstance%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AccessReviewInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to instances for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to instances for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs new file mode 100644 index 00000000000..a8b13c7c399 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\acceptRecommendations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/acceptRecommendations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/acceptRecommendations", rawUrl) + { + } + /// + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..3dcbb3f579e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs @@ -0,0 +1,283 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilder : BaseRequestBuilder + { + /// The acceptRecommendations property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter); + } + /// The applyDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder ApplyDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The batchRecordDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The contactedReviewers property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder ContactedReviewers + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder(PathParameters, RequestAdapter); + } + /// The decisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.DecisionsRequestBuilder Decisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.DecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The resetDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder ResetDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The sendReminder property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder.SendReminderRequestBuilder SendReminder + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder.SendReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The stages property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.StagesRequestBuilder Stages + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.StagesRequestBuilder(PathParameters, RequestAdapter); + } + /// The stop property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop.StopRequestBuilder Stop + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property instances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property instances in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property instances for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property instances in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AccessReviewInstanceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.AccessReviewInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// If the accessReviewScheduleDefinition is a recurring access review, instances represent each recurrence. A review that doesn't recur will have exactly one instance. Instances also represent each unique resource under review in the accessReviewScheduleDefinition. If a review has multiple resources and multiple instances, each resource has a unique instance for each recurrence. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..5d10901e186 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\applyDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApplyDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/applyDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApplyDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/applyDecisions", rawUrl) + { + } + /// + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs new file mode 100644 index 00000000000..8a0ef39e967 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The decision property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Decision { get; set; } +#nullable restore +#else + public string Decision { get; set; } +#endif + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { get; set; } +#nullable restore +#else + public string Justification { get; set; } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { get; set; } +#nullable restore +#else + public string PrincipalId { get; set; } +#endif + /// The resourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BatchRecordDecisionsPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decision", n => { Decision = n.GetStringValue(); } }, + { "justification", n => { Justification = n.GetStringValue(); } }, + { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("decision", Decision); + writer.WriteStringValue("justification", Justification); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..e17045a32ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\batchRecordDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/batchRecordDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/batchRecordDecisions", rawUrl) + { + } + /// + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in a specific accessReviewInstance in batches by using principalId, resourceId, or neither. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in a specific accessReviewInstance in batches by using principalId, resourceId, or neither. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs new file mode 100644 index 00000000000..24c38da080b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\contactedReviewers + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.contactedReviewers.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewReviewer%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContactedReviewersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContactedReviewersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contactedReviewers for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to contactedReviewers for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2bf06b1c6c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\contactedReviewers\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs new file mode 100644 index 00000000000..45ffe6a99be --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\contactedReviewers\{accessReviewReviewer-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewReviewerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewReviewerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property contactedReviewers for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contactedReviewers in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contactedReviewers for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property contactedReviewers in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7621073b4cc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs new file mode 100644 index 00000000000..2bc9c709c14 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/DecisionsRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.decisions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstanceDecisionItem%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.DecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.DecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..9e41d5f3bcc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..e4ce155eaf4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..bdeeb3ec1dd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs new file mode 100644 index 00000000000..b3c63d824b3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilder : BaseRequestBuilder + { + /// The insights property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder Insights + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fee26a353b9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs new file mode 100644 index 00000000000..1538ec721d9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.decisions.item.insights.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("governanceInsight%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs new file mode 100644 index 00000000000..f7dc67a5fba --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\{governanceInsight-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..819193ac899 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\resetDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResetDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/resetDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResetDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/resetDecisions", rawUrl) + { + } + /// + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs new file mode 100644 index 00000000000..c857023677d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/SendReminder/SendReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\sendReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SendReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/sendReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SendReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/sendReminder", rawUrl) + { + } + /// + /// Send a reminder to the reviewers of an active accessReviewInstance. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Send a reminder to the reviewers of an active accessReviewInstance. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder.SendReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.SendReminder.SendReminderRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..53df3a0ba97 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..399c6730b43 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..653c2c76695 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..fd95a7a8aed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs new file mode 100644 index 00000000000..045879dd4ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\acceptRecommendations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl) + { + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs new file mode 100644 index 00000000000..fce0c796a5b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs @@ -0,0 +1,253 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder + { + /// The acceptRecommendations property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter); + } + /// The batchRecordDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The decisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder Decisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The stop property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop.StopRequestBuilder Stop + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewStageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewStageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property stages in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property stages in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs new file mode 100644 index 00000000000..553534ce10e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The decision property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Decision { get; set; } +#nullable restore +#else + public string Decision { get; set; } +#endif + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { get; set; } +#nullable restore +#else + public string Justification { get; set; } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { get; set; } +#nullable restore +#else + public string PrincipalId { get; set; } +#endif + /// The resourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BatchRecordDecisionsPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decision", n => { Decision = n.GetStringValue(); } }, + { "justification", n => { Justification = n.GetStringValue(); } }, + { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("decision", Decision); + writer.WriteStringValue("justification", Justification); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..1c28655d2d3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\batchRecordDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl) + { + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e4da38af49c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs new file mode 100644 index 00000000000..c5e4e066b60 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.stages.item.decisions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstanceDecisionItem%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..3937c6ae610 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..950ef17af6b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..8a9d0c39194 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs new file mode 100644 index 00000000000..8b4d65967e0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilder : BaseRequestBuilder + { + /// The insights property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder Insights + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b96a85823a8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs new file mode 100644 index 00000000000..8a1166bae3c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.stages.item.decisions.item.insights.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("governanceInsight%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs new file mode 100644 index 00000000000..b7d815d9558 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\{governanceInsight-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..6d7ccdaf1b0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\stop + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/stop", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/stop", rawUrl) + { + } + /// + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs new file mode 100644 index 00000000000..4e72b9200eb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stages/StagesRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.definitions.item.instances.item.stages.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewStage%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stages\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.StagesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.StagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..36f1f6d610c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Instances/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\instances\{accessReviewInstance-id}\stop + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stop", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/instances/{accessReviewInstance%2Did}/stop", rawUrl) + { + } + /// + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Stop/StopRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..17fa1ccfdf0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Definitions/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\definitions\{accessReviewScheduleDefinition-id}\stop + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/stop", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition%2Did}/stop", rawUrl) + { + } + /// + /// Invoke action stop + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action stop + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8587199ca2c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..36c212e5e77 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..167ec58630d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all accessReviewInstance objects on a given accessReviewScheduleDefinition where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..cb9b523f7a0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/InstancesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..f1e9be098e9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AccessReviewInstanceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstance%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AccessReviewInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Represents the unified (vNext) instance of a review. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to instances for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the unified (vNext) instance of a review. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to instances for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Represents the unified (vNext) instance of a review. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs new file mode 100644 index 00000000000..bdaf9be32ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\acceptRecommendations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/acceptRecommendations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/acceptRecommendations", rawUrl) + { + } + /// + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..ca31c8e7603 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/AccessReviewInstanceItemRequestBuilder.cs @@ -0,0 +1,283 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilder : BaseRequestBuilder + { + /// The acceptRecommendations property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter); + } + /// The applyDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder ApplyDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The batchRecordDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The contactedReviewers property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder ContactedReviewers + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder(PathParameters, RequestAdapter); + } + /// The decisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.DecisionsRequestBuilder Decisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.DecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The resetDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder ResetDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The sendReminder property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder.SendReminderRequestBuilder SendReminder + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder.SendReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The stages property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.StagesRequestBuilder Stages + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.StagesRequestBuilder(PathParameters, RequestAdapter); + } + /// The stop property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop.StopRequestBuilder Stop + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property instances for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the unified (vNext) instance of a review. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property instances in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property instances for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents the unified (vNext) instance of a review. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property instances in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AccessReviewInstanceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.AccessReviewInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents the unified (vNext) instance of a review. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..60088280f28 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ApplyDecisions/ApplyDecisionsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\applyDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ApplyDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/applyDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ApplyDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/applyDecisions", rawUrl) + { + } + /// + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ApplyDecisions.ApplyDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApplyDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs new file mode 100644 index 00000000000..c3c8a142b79 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The decision property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Decision { get; set; } +#nullable restore +#else + public string Decision { get; set; } +#endif + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { get; set; } +#nullable restore +#else + public string Justification { get; set; } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { get; set; } +#nullable restore +#else + public string PrincipalId { get; set; } +#endif + /// The resourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BatchRecordDecisionsPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decision", n => { Decision = n.GetStringValue(); } }, + { "justification", n => { Justification = n.GetStringValue(); } }, + { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("decision", Decision); + writer.WriteStringValue("justification", Justification); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..89eb994eac0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\batchRecordDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/batchRecordDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/batchRecordDecisions", rawUrl) + { + } + /// + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in a specific accessReviewInstance in batches by using principalId, resourceId, or neither. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Enables reviewers to review all accessReviewInstanceDecisionItem objects in a specific accessReviewInstance in batches by using principalId, resourceId, or neither. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs new file mode 100644 index 00000000000..71077be049c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/ContactedReviewersRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\contactedReviewers + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.contactedReviewers.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewReviewer%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContactedReviewersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContactedReviewersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to contactedReviewers for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to contactedReviewers for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.ContactedReviewersRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContactedReviewersRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1da0ad79ed3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\contactedReviewers\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs new file mode 100644 index 00000000000..5aa5e0e4bc0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ContactedReviewers/Item/AccessReviewReviewerItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\contactedReviewers\{accessReviewReviewer-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewReviewerItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewReviewerItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/contactedReviewers/{accessReviewReviewer%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property contactedReviewers for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property contactedReviewers in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property contactedReviewers for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property contactedReviewers in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ContactedReviewers.Item.AccessReviewReviewerItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Returns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewReviewerItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cdc6da5b3b4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/DecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/DecisionsRequestBuilder.cs new file mode 100644 index 00000000000..6e47774a971 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/DecisionsRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.decisions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstanceDecisionItem%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.DecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.DecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..a04a4ab2a90 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..5270dfe5e72 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..4b3f7908bd7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs new file mode 100644 index 00000000000..0870aa7f16a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilder : BaseRequestBuilder + { + /// The insights property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder Insights + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Each user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2289f66c3da --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs new file mode 100644 index 00000000000..06a60060c09 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.decisions.item.insights.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("governanceInsight%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.InsightsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs new file mode 100644 index 00000000000..df8180e3f44 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\{governanceInsight-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..5a4f9727794 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/ResetDecisions/ResetDecisionsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\resetDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResetDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/resetDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResetDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/resetDecisions", rawUrl) + { + } + /// + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.ResetDecisions.ResetDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/SendReminder/SendReminderRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/SendReminder/SendReminderRequestBuilder.cs new file mode 100644 index 00000000000..65df15fb4e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/SendReminder/SendReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\sendReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SendReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/sendReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SendReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/sendReminder", rawUrl) + { + } + /// + /// Send a reminder to the reviewers of an active accessReviewInstance. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Send a reminder to the reviewers of an active accessReviewInstance. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder.SendReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.SendReminder.SendReminderRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SendReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b955523c479 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..f55cc528dac --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..a61b7d84644 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..6cfdb6df373 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs new file mode 100644 index 00000000000..814ccd08dc8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AcceptRecommendations/AcceptRecommendationsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\acceptRecommendations + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRecommendationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/acceptRecommendations", rawUrl) + { + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed within a single accessReviewStage of a multi-stage accessReviewInstance. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there's no recommendation on an accessReviewInstanceDecisionItem object, no decision is recorded. This action accepts recommendations for the decisions in a specific stage only, unlike accessReviewInstance: acceptRecommendations, which operates across the entire instance. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRecommendationsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs new file mode 100644 index 00000000000..0e3c122db0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/AccessReviewStageItemRequestBuilder.cs @@ -0,0 +1,253 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilder : BaseRequestBuilder + { + /// The acceptRecommendations property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder AcceptRecommendations + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AcceptRecommendations.AcceptRecommendationsRequestBuilder(PathParameters, RequestAdapter); + } + /// The batchRecordDecisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder BatchRecordDecisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The decisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder Decisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The stop property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop.StopRequestBuilder Stop + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop.StopRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewStageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewStageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property stages in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property stages for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property stages in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewStageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs new file mode 100644 index 00000000000..52b4a22e1c0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsPostRequestBody.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BatchRecordDecisionsPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The decision property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Decision { get; set; } +#nullable restore +#else + public string Decision { get; set; } +#endif + /// The justification property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Justification { get; set; } +#nullable restore +#else + public string Justification { get; set; } +#endif + /// The principalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalId { get; set; } +#nullable restore +#else + public string PrincipalId { get; set; } +#endif + /// The resourceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BatchRecordDecisionsPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "decision", n => { Decision = n.GetStringValue(); } }, + { "justification", n => { Justification = n.GetStringValue(); } }, + { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("decision", Decision); + writer.WriteStringValue("justification", Justification); + writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs new file mode 100644 index 00000000000..b3a69577cb2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/BatchRecordDecisions/BatchRecordDecisionsRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\batchRecordDecisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BatchRecordDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/batchRecordDecisions", rawUrl) + { + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither. This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class BatchRecordDecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7f81a528908 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs new file mode 100644 index 00000000000..26942ebbceb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/DecisionsRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.stages.item.decisions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewInstanceDecisionItem%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to decisions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.DecisionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DecisionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs new file mode 100644 index 00000000000..f9c05ab634d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnGetResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs new file mode 100644 index 00000000000..2390a89c274 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\filterByCurrentUser(on='{on}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/filterByCurrentUser(on='{on}'){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsFilterByCurrentUserWithOnGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code + [Obsolete("This method is obsolete. Use GetAsFilterByCurrentUserWithOnGetResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve all decision items for an instance of an access review or a stage of an instance of a multi-stage access review for which the calling user is the reviewer. The decision items are presented as accessReviewInstanceDecisionItem objects on a given accessReviewInstance or accessReviewStage for which the calling user is the reviewer. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs new file mode 100644 index 00000000000..ce21b37258b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnResponse.cs @@ -0,0 +1,28 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn +{ + [Obsolete("This class is obsolete. Use FilterByCurrentUserWithOnGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FilterByCurrentUserWithOnResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs new file mode 100644 index 00000000000..a1c4c1cc308 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/AccessReviewInstanceDecisionItemItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilder : BaseRequestBuilder + { + /// The insights property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder Insights + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessReviewInstanceDecisionItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property decisions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property decisions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.AccessReviewInstanceDecisionItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessReviewInstanceDecisionItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..40e61381b57 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs new file mode 100644 index 00000000000..0565231f146 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/InsightsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.stages.item.decisions.item.insights.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("governanceInsight%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InsightsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to insights for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.InsightsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InsightsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs new file mode 100644 index 00000000000..bffcbfa9cc5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Decisions/Item/Insights/Item/GovernanceInsightItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\decisions\{accessReviewInstanceDecisionItem-id}\insights\{governanceInsight-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GovernanceInsightItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/decisions/{accessReviewInstanceDecisionItem%2Did}/insights/{governanceInsight%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property insights for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property insights in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.Item.Insights.Item.GovernanceInsightItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Insights are recommendations to reviewers on whether to approve or deny a decision. There can be multiple insights associated with an accessReviewInstanceDecisionItem. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GovernanceInsightItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..2adaea55e66 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\{accessReviewStage-id}\stop + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/stop", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages/{accessReviewStage%2Did}/stop", rawUrl) + { + } + /// + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/StagesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/StagesRequestBuilder.cs new file mode 100644 index 00000000000..9fc60a24018 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stages/StagesRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.accessReviews.unified.instances.item.stages.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessReviewStage%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.AccessReviewStageItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stages\filterByCurrentUser(on='{on}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder FilterByCurrentUserWithOn() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to stages for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.StagesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.StagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// If the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StagesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stop/StopRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stop/StopRequestBuilder.cs new file mode 100644 index 00000000000..f39f3d4220d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/Instances/Item/Stop/StopRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified\instances\{accessReviewInstance-id}\stop + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public StopRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stop", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public StopRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified/instances/{accessReviewInstance%2Did}/stop", rawUrl) + { + } + /// + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Stop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop.StopRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stop.StopRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class StopRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/UnifiedRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/UnifiedRequestBuilder.cs new file mode 100644 index 00000000000..50c133cff3e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/AccessReviews/Unified/UnifiedRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified +{ + /// + /// Builds and executes requests for operations under \identityGovernance\accessReviews\unified + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnifiedRequestBuilder : BaseRequestBuilder + { + /// The decisions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.DecisionsRequestBuilder Decisions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.DecisionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The definitions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.DefinitionsRequestBuilder Definitions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.DefinitionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UnifiedRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UnifiedRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/accessReviews/unified{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property unified for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Entry point for the unified (vNext) access reviews API surface. Requests under this path are routed to the vNext service through the dedicated accessReviews/unified path segment. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property unified in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property unified for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Entry point for the unified (vNext) access reviews API surface. Requests under this path are routed to the vNext service through the dedicated accessReviews/unified path segment. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property unified in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.UnifiedRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnifiedRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Entry point for the unified (vNext) access reviews API surface. Requests under this path are routed to the vNext service through the dedicated accessReviews/unified path segment. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnifiedRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnifiedRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnifiedRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs new file mode 100644 index 00000000000..34cd0cf0fc2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/CatalogsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CatalogsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageCatalog%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CatalogsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CatalogsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get catalogs from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to catalogs for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get catalogs from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to catalogs for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.CatalogsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.CatalogsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get catalogs from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CatalogsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CatalogsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CatalogsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..62cc4fea793 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs new file mode 100644 index 00000000000..95062d9028d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackageCatalogItemRequestBuilder.cs @@ -0,0 +1,259 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageCatalogItemRequestBuilder : BaseRequestBuilder + { + /// The accessPackages property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder AccessPackages + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder(PathParameters, RequestAdapter); + } + /// The customWorkflowExtensions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder CustomWorkflowExtensions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The resourceRoles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder ResourceRoles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The resources property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder Resources + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder(PathParameters, RequestAdapter); + } + /// The resourceScopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder ResourceScopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageCatalogItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageCatalogItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property catalogs for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get catalogs from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property catalogs in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property catalogs for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get catalogs from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property catalogs in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackageCatalogItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageCatalogItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get catalogs from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageCatalogItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageCatalogItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageCatalogItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs new file mode 100644 index 00000000000..d5b8ef819e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/AccessPackagesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\accessPackages + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackagesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.accessPackages.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackage%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackagesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.AccessPackagesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackagesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackagesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b94b13b77d6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\accessPackages\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs new file mode 100644 index 00000000000..ca03dfc38f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/AccessPackages/Item/AccessPackageItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\accessPackages\{accessPackage-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.AccessPackages.Item.AccessPackageItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The access packages in this catalog. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5e9b14123f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\customWorkflowExtensions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..426c19781ae --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/CustomWorkflowExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\customWorkflowExtensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomWorkflowExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.customWorkflowExtensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customCalloutExtension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomWorkflowExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomWorkflowExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to customWorkflowExtensions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.CustomWorkflowExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomWorkflowExtensionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomWorkflowExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomWorkflowExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..e41fb4a9ebf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/CustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\customWorkflowExtensions\{customCalloutExtension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomCalloutExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomCalloutExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomCalloutExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/customWorkflowExtensions/{customCalloutExtension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property customWorkflowExtensions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property customWorkflowExtensions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property customWorkflowExtensions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property customWorkflowExtensions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.CustomWorkflowExtensions.Item.CustomCalloutExtensionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get customWorkflowExtensions from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomCalloutExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomCalloutExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomCalloutExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9f70754ae51 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..1fe8c44bd55 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resourceRoles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resourceRoles from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resourceRoles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resourceRoles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resourceRoles from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resourceRoles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resourceRoles from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..50dcf424fc0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..e5ba574569a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..44e7dd63a0c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..64f3d5c409e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,265 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The roles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.RolesRequestBuilder Roles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The scopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4f68e235f98 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\roles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..7b2d0f0877e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\roles\{accessPackageResourceRole-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs new file mode 100644 index 00000000000..2c4c7494fbf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Roles/RolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\roles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.roles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..56249000480 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..245e5319c80 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..eec38b05f02 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..7390d0bfb06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..38c9ab0296f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..1fa110a0cb2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,259 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The roles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder Roles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c584f1a69b0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..d176666bd69 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs new file mode 100644 index 00000000000..1f934e5bd25 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.scopes.item.resource.roles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3957cd149d5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..dc2fe630121 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ca4f056272c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..8da2c4ea796 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..22ada010836 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..8dcdf1c2808 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..b0584b87291 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..4653c55b95c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs new file mode 100644 index 00000000000..cd114d93a36 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.scopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b399647d453 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..c81497a7d2a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..68d5dab3abd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..6cce999bd7f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..938569c1169 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..37c749ba86f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..acd546d9d02 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..fbf4a0aae3e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs new file mode 100644 index 00000000000..66e956488f7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceRoles/ResourceRolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceRoles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceRoles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceRoles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get resourceRoles from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to resourceRoles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resourceRoles from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to resourceRoles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceRoles.ResourceRolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get resourceRoles from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d4fb1ead4f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..b60dd09bd52 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resourceScopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resourceScopes from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resourceScopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resourceScopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resourceScopes from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resourceScopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resourceScopes from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..d14220c49df --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..4aa99f76173 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..8c7f4023f52 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..743b310f58c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,265 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The roles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.RolesRequestBuilder Roles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The scopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0320329c4cd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..2e5c3804267 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..98edef4f22b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..ee45e12c0aa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..0c732122715 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..3509f39e949 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,259 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The scopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e103ebe98c2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..a75fe5702ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs new file mode 100644 index 00000000000..b4fc0368238 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.roles.item.resource.scopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e9d751b19ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5ef6caa1899 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bd96e37c497 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..97aa0e4911f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..2c27bbf0103 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..fd647d2e87c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1dad20a5ba1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..baa11ad29dd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs new file mode 100644 index 00000000000..dcc1bf2b0b1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.roles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a4c6f1f8ae7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\scopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..2ccb7352e0b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\scopes\{accessPackageResourceScope-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes/{accessPackageResourceScope%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs new file mode 100644 index 00000000000..84d30503bea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\scopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.scopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c96587aa57a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..8951cdbed10 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5b0ba27007e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..d443b8030ab --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..be9410272d5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..e44a94337d3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..01c788683ba --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..0e74c81fd2d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs new file mode 100644 index 00000000000..7d965e251e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/ResourceScopes/ResourceScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resourceScopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resourceScopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resourceScopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get resourceScopes from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to resourceScopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resourceScopes from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to resourceScopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.ResourceScopes.ResourceScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get resourceScopes from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..644b00c6ca1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs new file mode 100644 index 00000000000..7c2361211e0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -0,0 +1,265 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The roles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.RolesRequestBuilder Roles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The scopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resources for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Access package resources in this catalog. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resources in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resources for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Access package resources in this catalog. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resources in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.AccessPackageResourceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.AccessPackageResourceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Access package resources in this catalog. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..918c061d52a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..7f5089b5cca --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..ac22bc1229f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..947876cbd20 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..f5b178a672e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..74667b46536 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..b51bb444250 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..1e7618f4ee4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..0331f9a0633 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,259 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The scopes property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder Scopes + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7c98fd97d35 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..4fc42a79e58 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..903b16eb0d8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..d7e85aa71cf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..618e45a947c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..478a00c9b4d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,253 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0f8bd422ac2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..6521c450902 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ef931544809 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..4d48d0e8897 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..7d5d187ef28 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..589f959c423 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..976eb99601a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..4f374304ac8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs new file mode 100644 index 00000000000..5971f8c9835 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/ScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item.resource.scopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bddd7bcbb80 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..0b05cb51c56 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..287d509d9df --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..41e08b20bb3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..c4a70734fcf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..75217cfdfd7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..8792536132c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..11caa0c142e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs new file mode 100644 index 00000000000..9243bc438f9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Roles/RolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.roles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..31e0faeb81c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs new file mode 100644 index 00000000000..f6be3bdd4b8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/AccessPackageResourceScopeItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceScopeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property scopes for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property scopes in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceScopeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..761ce8deb57 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..4760fed08b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..832948735a3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..296b3b17b53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,259 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The roles property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder Roles + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5a8678a1a90 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs new file mode 100644 index 00000000000..24e844094c5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/AccessPackageResourceRoleItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilder : BaseRequestBuilder + { + /// The resource property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder Resource + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AccessPackageResourceRoleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property roles for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property roles in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AccessPackageResourceRoleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs new file mode 100644 index 00000000000..e7d1656a5ab --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/EnvironmentNamespace/EnvironmentRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\environment + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public EnvironmentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/environment{?%24expand,%24select}", rawUrl) + { + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Contains the environment information for the resource. This can be set using either the @odata.bind annotation or the environment's originId.Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EnvironmentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..2192976c540 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs new file mode 100644 index 00000000000..44145c4878b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/Refresh/RefreshRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\refresh + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/refresh", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RefreshRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/refresh", rawUrl) + { + } + /// + /// Invoke action refresh + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action refresh + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RefreshRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs new file mode 100644 index 00000000000..b764449362a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -0,0 +1,253 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilder : BaseRequestBuilder + { + /// The environment property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder Environment + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); + } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } + /// The refresh property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property resource for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get resource from identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property resource in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ResourceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get resource from identityGovernance + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourceRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..071782c63fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..b02c6f40aa1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e8087fbace3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..01a7946b223 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..b9799926603 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..9214d2d815c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1d86f3a4c84 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..dd1fd853993 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs new file mode 100644 index 00000000000..be341e002b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/RolesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item.resource.roles.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceRole%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.AccessPackageResourceRoleItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RolesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to roles for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RolesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a13d9f4319e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5f09234d1c4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6823ab73bb8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..6b05b7dfae2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..fe401aa90d1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..e97075883fa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..9b2068154a5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..6b2336fc0f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs new file mode 100644 index 00000000000..51092b4eef1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/Scopes/ScopesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.scopes.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResourceScope%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.Item.AccessPackageResourceScopeItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ScopesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to scopes for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.ScopesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.Scopes.ScopesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read-only. Nullable. Supports $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ScopesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b2f913f49f9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..9d4cac18f6b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fa8965fec59 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..ceb3cd75ac0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..917f22073e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..2ca28135c24 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..36422ef56b3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..da0eb41e982 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/ResourcesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/ResourcesRequestBuilder.cs new file mode 100644 index 00000000000..b91be542e5a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/Catalogs/Item/Resources/ResourcesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources +{ + /// + /// Builds and executes requests for operations under \identityGovernance\catalogs\{accessPackageCatalog-id}\resources + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.catalogs.item.resources.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.AccessPackageResourceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("accessPackageResource%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.Item.AccessPackageResourceItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResourcesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/catalogs/{accessPackageCatalog%2Did}/resources{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Access package resources in this catalog. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to resources for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Access package resources in this catalog. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to resources for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.Item.Resources.ResourcesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Access package resources in this catalog. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResourcesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..98b096782e9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs index d97a69728c1..16b713a9c90 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..91fc828fc13 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 1bd81eaf89a..f7cf45ec9aa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7f1f037d99a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..6273f1433e6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..112e33a2b64 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..82640496843 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.role.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..698124abe74 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ca972b881da --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..afda4a88f07 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..022c3615c14 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.role.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..20763bf7ce9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..292503c5e19 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..722332bea6b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..7725c886a7b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.role.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..cb4affc9547 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..9d7d610798f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..5a5dd784bcf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..aca1b5921e4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.role.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..1a318e5a18c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs index f0f8de32a97..4e8aa724dd3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..2c3592faf16 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index c3dcc83c5b0..3f1d421d772 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e980ca22bf8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..566e70c3bea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a5a8759586e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..9a63506287e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.scope.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..be1cc47ab55 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ad69a96851a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..dbed1af9d7c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..44a58a48763 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.scope.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..90643b840e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..84e46890e0b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b41cb7e274d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..16f5133ada4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.scope.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..851b5c507f0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..086ccfdae7c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..b7e4ebc01cd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..aa59b495ab8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/AccessPackages/Item/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\accessPackages\{accessPackage-id}\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.accessPackages.item.resourceRoleScopes.item.scope.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/accessPackages/{accessPackage%2Did}/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.AccessPackages.Item.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..71e9fbd7ac4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs index 2766944c3b1..7058cb3a716 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..e82edf79e0d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 4958cee7e0a..4c8a9dab0f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eccb279c0d9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..366adbb2fa6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..12c95d25d93 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..21f31d96db1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..d1d4af2260e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..4ebcfab156f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..c3cf4d25133 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..3ec9cb16ae3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e5a70229cfb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5e8cf40f3e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b8503dee441 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..2a64694617f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceRoles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..0c97a956876 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..a40687c8707 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..7e1872ada06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..0391b900ba6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceRoles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..0b4856e0102 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs index a365cf6eca5..c58b779046d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..e4f96d7ac0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 314293a42d9..a3312a05862 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fda0e44b992 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..9dee1dae551 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..320d4e460bf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..b8c85fbca10 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceScopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..56c0e4dd1c7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..d97c2c7d9b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1caacd5a06a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..5b2cdcbd7e3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceScopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b38e7314583 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5822fdd7f8a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..24d58f5b72f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..8e2112c5b93 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceScopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..4784b4fb236 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..e1bcce32643 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..434c59da811 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..8bf0d68ebb8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resourceScopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index 3c6daee091e..03b6bdfd279 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..a0be6d89c0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..9f357f89620 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 073d1a46abe..7fcfa912867 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..a8503d2b61f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 440b92621a0..a36ae9a460b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d225c81280f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..cf2500e25ea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..736558fa25b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..795fee8461f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..ed09c3fd7b3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..3b0fabb3fea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..5f3546092ca --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..5639109e217 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..91c60845059 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..272ea981cc0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3d8a827e103 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..b6c753f24f0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..af324d66643 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..7cd9fff784e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..8d39fca156b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..8d7b6f000ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..020dc9b318b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index f22e75e690f..d96f7fd39ad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..49b68075d06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 73d85da0f75..0c2ff5464cd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..873c575b045 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..225137ee5ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6b6c58f964a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..ca420c86916 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..e5c5e59b724 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..8d6d7e70a82 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..41b690239f9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..301f7105c53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ec7cabf17eb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..a57de97e0a2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..eb35391a74d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..a2bfdebd68c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..554a9a4b473 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..0e205e74ee3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..db141fae14f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..225d2806b6c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5a43e4a4590 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..11310f39ac1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete a customDataProvidedResourceUploadSession object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a customDataProvidedResourceUploadSession object. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a customDataProvidedResourceUploadSession created for an accessPackageResource object. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a customDataProvidedResourceUploadSession object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read the properties and relationships of a customDataProvidedResourceUploadSession object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of a customDataProvidedResourceUploadSession created for an accessPackageResource object. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read the properties and relationships of a customDataProvidedResourceUploadSession object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e6d1de6503b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..0cbf01e4884 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..7631905cbe2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..f2ea04b1342 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..ae265afd639 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..55ccf860434 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Catalogs/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,240 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\catalogs\{accessPackageCatalog-id}\resources\{accessPackageResource-id}\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.catalogs.item.resources.item.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the customDataProvidedResourceUploadSession objects and their properties. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and accessPackageResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. The following table lists the derived types of customDataProvidedResourceUploadSession that can be created. Specify the @odata.type in the request body to indicate the derived type. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the customDataProvidedResourceUploadSession objects and their properties. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create a customDataProvidedResourceUploadSession object. Only one upload session is allowed per reference instance (for example, access review instance) and accessPackageResource pair. Once you create an upload session, upload files, and complete the session, the data is processed and you cannot create another upload session for that same pair. If you encounter errors with files uploaded or need to start fresh, you can delete the active upload session to create a new one. The following table lists the derived types of customDataProvidedResourceUploadSession that can be created. Specify the @odata.type in the request body to indicate the derived type. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the customDataProvidedResourceUploadSession objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs index a3dec6ab1b8..effbb571f8a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/EntitlementManagementRequestBuilder.cs @@ -10,6 +10,7 @@ using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Catalogs; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ConnectedOrganizations; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ControlConfigurations; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes; @@ -85,6 +86,11 @@ public partial class EntitlementManagementRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ControlConfigurations.ControlConfigurationsRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnectors property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.ExternalOriginResourceConnectorsRequestBuilder ExternalOriginResourceConnectors + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.ExternalOriginResourceConnectorsRequestBuilder(PathParameters, RequestAdapter); + } /// The resourceEnvironments property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.ResourceEnvironmentsRequestBuilder ResourceEnvironments { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bbee8c03760 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\externalOriginResourceConnectors\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/ExternalOriginResourceConnectorsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/ExternalOriginResourceConnectorsRequestBuilder.cs new file mode 100644 index 00000000000..8de28c9ae76 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/ExternalOriginResourceConnectorsRequestBuilder.cs @@ -0,0 +1,240 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\externalOriginResourceConnectors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.externalOriginResourceConnectors.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item.ExternalOriginResourceConnectorItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("externalOriginResourceConnector%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item.ExternalOriginResourceConnectorItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of externalOriginResourceConnector objects and their properties. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Creates a new externalOriginResourceConnector object. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of externalOriginResourceConnector objects and their properties. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Creates a new externalOriginResourceConnector object. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.ExternalOriginResourceConnectorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.ExternalOriginResourceConnectorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of externalOriginResourceConnector objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Item/ExternalOriginResourceConnectorItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Item/ExternalOriginResourceConnectorItemRequestBuilder.cs new file mode 100644 index 00000000000..2fa934c4c8c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ExternalOriginResourceConnectors/Item/ExternalOriginResourceConnectorItemRequestBuilder.cs @@ -0,0 +1,232 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\externalOriginResourceConnectors\{externalOriginResourceConnector-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnector%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnector%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete an externalOriginResourceConnector object. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of an externalOriginResourceConnector object. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of an externalOriginResourceConnector object. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete an externalOriginResourceConnector object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read the properties and relationships of an externalOriginResourceConnector object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of an externalOriginResourceConnector object. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item.ExternalOriginResourceConnectorItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Item.ExternalOriginResourceConnectorItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read the properties and relationships of an externalOriginResourceConnector object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index 45595ffd62f..e4222fa009b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..3453fb608ec --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..da5933a381d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 23ba0abb733..fc18a71b135 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..640a5281acb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index a085a0286cc..8de4b0535b3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e580ff66c77 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..c0849719116 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ba81f371748 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..6f781aed0e6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..21623fcee29 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ee889f82b94 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..a9d18877f4f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..3fd72ec0e67 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..80538b36215 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..f059038b6ae --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b9762937bcb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..1742956be53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..66e433ec67d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..a511dca5634 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..854794a9cb7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..4f6dcc46b74 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..682934c6315 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index 4bbcff153f7..4cf7b670d41 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..d847d4a7f8d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 48fe039a8b8..7dc78bccfc8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b3b0691d3f3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..09f7488183e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e81d218f1a4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e5769be78aa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..3eb6c73fa31 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..a294c218233 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..c55f8d4b68c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..cff75cff8f4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bd0a3cdef43 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..8f1fa7311f3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e570808872a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..19953a505fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..58c08448264 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ae4e70b413e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..c5b2226afea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..bb470c9e30d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2d5784d441a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..e651f3e54e1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5140ae153d6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e4505a291f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..253fdc30974 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..8c0a1ebb2f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..e91b8a2a1d2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..6ff3237ba2b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceEnvironments/Item/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceEnvironments\{accessPackageResourceEnvironment-id}\resources\{accessPackageResource-id}\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceEnvironments.item.resources.item.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment%2Did}/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceEnvironments.Item.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..f7b0ddf6a47 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs index 93384333ea5..1851b8dffde 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..9428832076f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index dc8f4f36520..7c5f2128943 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..52788ec992c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..cc76114dabe --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3d5c7537343 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..91672861dde --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..f4865ae55ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..cf3d29ee7ab --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..3166434fc8a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..4bf3a476b5f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceRoles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1ee0b26ae86 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..f93803eb86a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1b945e8af67 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e6e8cf65524 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceRoles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..3bb0448c07f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ac4eb3e2d56 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..cd36eb13d90 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..02e13a35a9d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceRoles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceRoles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceRoles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceRoles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceRoles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..2bee886ec50 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs index d1699b6c456..ddd97dd2196 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..c22b54135b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index c7aca9524ad..895cfeeaf96 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..13a804d608e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..699b6e355f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..30a38739e5e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..b60c5c5daae --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceScopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..d66a638d0e1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..5f17a78a710 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..39261c7ec06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..353f73aa676 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceScopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1688d369a2f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..bcc21838a7c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ee271166147 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..048ed37f0cf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceScopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..e7f27fc7f44 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..f23a5aa94d5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1f998d94d89 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..aca57f346a2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/ResourceScopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resourceScopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resourceScopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resourceScopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.ResourceScopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index 1b283d58476..0ade7f9a67c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..85d60e6c0c5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..e3210c37f10 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index dcf2e1286f9..0715f62e486 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..8cef79fd349 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index b7154e418c3..e377f983a1f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6184652b7c4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..3283301fb17 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2c6f45832cc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..8c7fb8f72e2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..d65d3ea6862 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..c4cdaab45dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..f2665dffc0b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..82064ac41a4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cb248bf4663 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5ef66fb4d56 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..94afdaa1091 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..4e2f732c3cd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..792b1223306 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..0fd39d6b117 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..2eea74d4465 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..0eadb4203e4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..4b0e47c4ae9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index 17bfa760864..88fc22bedab 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..821e7943d14 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index d93e216a6e7..b469413717d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..228b18a2846 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..c9f2c27c697 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..80741f0abc1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..a0a023273b4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..d6bdc89fcfa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..eec2699cd1d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..926cc711d80 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..d2e78da80f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d65c191845b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..a2d947bc58c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0246a4ec2d9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..24e4d0e91e6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..a908e58bbff --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..6de3019a8e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..aeaae752291 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..e010e16a480 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8111793032c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..7469cd8672f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6be4831d6b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e7c542ea129 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..29b05cb41f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..097444dd9f7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..0e866f5eb99 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..e918021346d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Catalog/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\catalog\resources\{accessPackageResource-id}\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.catalog.resources.item.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/catalog/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Catalog.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..1bdb249faed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs index a8ed49cf7be..b631b9d3e14 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..369019676e9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index b57b34072fe..579cb6d3fa7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..8ba3d99c99a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 6a904fd5931..5e9657faf5c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0a24dbf3672 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..89f1daec136 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..11bff6ea5bb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..155273c3569 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..b41f8ff02ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..7c4df7e463e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1d21a90c91c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..7b64d460ee2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4160f8eb8e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..d104fec6cfc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..4c1801fd51b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..0694cc1a4ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..759c5c4bba9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..5e37eb10c60 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..c6510810ac9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..297f5f10f68 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..6c7b9975805 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index 37c73cf14e6..c7b16a8407e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..18e5a3f768a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 708f322da4b..5cb18ffc2d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..310e06fd63d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5df9e16022a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6baf523026f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..abb93e9c0f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..9fa684de261 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..3161b16e067 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..88d8b8576ba --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..34ea5fe814b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..29790d21d20 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..4ae9f96839a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..c816b616f3c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..d80b1a79f10 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..9cf5780cb8a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..8dd36e73fc6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..beac6c19d29 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..75f6f07920a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f970cffd70b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..8d2a551107f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..40d3767b40a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..1c1a61de821 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..ea227ef3f7b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ded831848a5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..14a207a4e98 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..17f448d96be --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRequests/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRequests\{accessPackageResourceRequest-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRequests.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRequests.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..9d89d02387a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs index 96dcaab1321..470dc332002 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..5fa00046c20 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index b6c7929607c..d0a162a5730 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..702d93ec622 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..d72934065fe --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..00da0bc7c82 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..864d9f0d16f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.role.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..78485210655 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..fb95a29a510 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..318a1f8cb28 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..b6da2e95717 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.role.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..11234d349ea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..89e6e11ff54 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fa871a4d600 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..ace6e0765ac --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.role.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..b3f3f910f24 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..ce29d8ea0c9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..5dc6b3729a4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..419674aeab0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Role/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\role\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.role.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/role/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Role.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..f4e12a30378 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs index e4dde88cbde..263728e5470 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/ResourceRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..207e4340ff2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 161f7bb244e..e61eca72c8e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..461565f919f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..9d9db0c1e93 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6179aaf5e13 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e32893bc4bf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.scope.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..ad369e5d333 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..f39f4ffb08e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..88e217f3c02 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..0c263b9958b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.scope.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f5dbc362566 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..5112851882c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..baf00b810f7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..c730d6a747c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.scope.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..871bad38128 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..2e509a5bcc1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..2d9c55ab29f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..2f220aa44ed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/ResourceRoleScopes/Item/Scope/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resourceRoleScopes\{accessPackageResourceRoleScope-id}\scope\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resourceRoleScopes.item.scope.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope%2Did}/scope/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes.Item.Scope.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs index d39a772775a..1219a22827f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/AccessPackageResourceItemRequestBuilder.cs @@ -1,9 +1,11 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -27,6 +29,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Refresh.RefreshRequestBuilder Refresh { @@ -42,6 +49,11 @@ public partial class AccessPackageResourceItemRequestBuilder : BaseRequestBuilde { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..7b2863d2e4e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..70c73f0a40d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs index 0a02b50de91..e919797702b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.ScopesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..85ce5da25c7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs index e5177cb5ff1..9dfc2d4307f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cdd95028a05 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..f65bf230d98 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8b1323a47de --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..6bb3a372fb0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..7bba90ff490 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..e875286507f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..b7fc6f6577b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..a97167ac9ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.roles.item.resource.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3f7f265b99d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..9d84e9bf8e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9f8d4842563 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..31a40cbe9ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..e788caa1904 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..1ea470b0759 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..446d200361d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..17b58ade540 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..bcc98e1fa43 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs index 2d23a7450b0..35d521a3496 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/ResourceRequestBuilder.cs @@ -1,8 +1,10 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Refresh; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -26,6 +28,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Refresh.RefreshRequestBuilder Refresh { @@ -36,6 +43,11 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.RolesRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs new file mode 100644 index 00000000000..89c129ce384 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ExternalOriginResourceConnector/ExternalOriginResourceConnectorRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\externalOriginResourceConnector + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalOriginResourceConnectorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/externalOriginResourceConnector{?%24expand,%24select}", rawUrl) + { + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExternalOriginResourceConnectorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs index 328ef6e334d..9626d3006e0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/ResourceRequestBuilder.cs @@ -1,7 +1,9 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; using Microsoft.Kiota.Abstractions.Extensions; @@ -25,11 +27,21 @@ public partial class ResourceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.EnvironmentNamespace.EnvironmentRequestBuilder(PathParameters, RequestAdapter); } + /// The externalOriginResourceConnector property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder ExternalOriginResourceConnector + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.ExternalOriginResourceConnector.ExternalOriginResourceConnectorRequestBuilder(PathParameters, RequestAdapter); + } /// The refresh property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder Refresh { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.Refresh.RefreshRequestBuilder(PathParameters, RequestAdapter); } + /// The uploadSessions property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder UploadSessions + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..08cec191f5a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..7e8eb81e9ad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..24448edd6c8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..3f13439e785 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..06fd39876ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..928b6917454 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..5941afafee6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..e0b700a05e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/Roles/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\roles\{accessPackageResourceRole-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.scopes.item.resource.roles.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/roles/{accessPackageResourceRole%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.Roles.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1914dae7f20 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..a37f0d613f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..be6598c1745 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..e3859fb3484 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.scopes.item.resource.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..8d026d9109c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..b82a417abb1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..c4414db132e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..d34be70f4ed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/Scopes/Item/Resource/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\scopes\{accessPackageResourceScope-id}\resource\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.scopes.item.resource.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/scopes/{accessPackageResourceScope%2Did}/resource/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.Scopes.Item.Resource.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f40d55f3adb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs new file mode 100644 index 00000000000..d969544d9f5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/CustomDataProvidedResourceUploadSessionItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilder : BaseRequestBuilder + { + /// The files property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder Files + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(PathParameters, RequestAdapter); + } + /// The uploadFile property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder UploadFile + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceUploadSessionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property uploadSessions for identityGovernance + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property uploadSessions in identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceUploadSessionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..666a1b6f247 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs new file mode 100644 index 00000000000..54172089f2a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/FilesRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.uploadSessions.item.files.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceFile%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.FilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FilesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs new file mode 100644 index 00000000000..eb5a3bca153 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/CustomDataProvidedResourceFileItemRequestBuilder.cs @@ -0,0 +1,131 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilder : BaseRequestBuilder + { + /// The Content property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder Content + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CustomDataProvidedResourceFileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.CustomDataProvidedResourceFileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CustomDataProvidedResourceFileItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs new file mode 100644 index 00000000000..35895b9cebe --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/Files/Item/Value/ContentRequestBuilder.cs @@ -0,0 +1,201 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\files\{customDataProvidedResourceFile-id}\$value + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/files/{customDataProvidedResourceFile%2Did}/$value", rawUrl) + { + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + return requestInfo; + } + /// + /// The unique identifier for an entity. Read-only. + /// + /// A + /// Binary request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetStreamContent(body, "application/octet-stream"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.Files.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs new file mode 100644 index 00000000000..1692f855500 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/Item/UploadFile/UploadFileRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions\{customDataProvidedResourceUploadSession-id}\uploadFile + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadFileRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions/{customDataProvidedResourceUploadSession%2Did}/uploadFile", rawUrl) + { + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upload a file in a customDataProvidedResourceUploadSession created for an accessPackageResource. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.UploadFile.UploadFileRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadFileRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs new file mode 100644 index 00000000000..0ad36cc41e4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/EntitlementManagement/Resources/Item/UploadSessions/UploadSessionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions +{ + /// + /// Builds and executes requests for operations under \identityGovernance\entitlementManagement\resources\{accessPackageResource-id}\uploadSessions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.entitlementManagement.resources.item.uploadSessions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("customDataProvidedResourceUploadSession%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.Item.CustomDataProvidedResourceUploadSessionItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UploadSessionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/resources/{accessPackageResource%2Did}/uploadSessions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to uploadSessions for identityGovernance + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.UploadSessionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.Resources.Item.UploadSessions.UploadSessionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UploadSessionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/IdentityGovernanceRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/IdentityGovernanceRequestBuilder.cs index 79227c5a3ff..dfc6ec44e3b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/IdentityGovernanceRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/IdentityGovernanceRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AppConsent; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.PrivilegedAccess; @@ -34,6 +35,11 @@ public partial class IdentityGovernanceRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AppConsent.AppConsentRequestBuilder(PathParameters, RequestAdapter); } + /// The catalogs property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.CatalogsRequestBuilder Catalogs + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.Catalogs.CatalogsRequestBuilder(PathParameters, RequestAdapter); + } /// The entitlementManagement property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.EntitlementManagement.EntitlementManagementRequestBuilder EntitlementManagement { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs new file mode 100644 index 00000000000..1933a7f3d91 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ActivateAndWaitPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject Subject { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ActivateAndWaitPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "subject", n => { Subject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("subject", Subject); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs new file mode 100644 index 00000000000..8ce92c8456c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\microsoft.graph.identityGovernance.activateAndWait + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", rawUrl) + { + } + /// + /// Activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index 90310005e98..edebb88c16d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -1,6 +1,7 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.UserProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; @@ -26,6 +27,11 @@ public partial class RunItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); } + /// The subjectProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder SubjectProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } /// The taskProcessingResults property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..289338d2daa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..8e90e2041b4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs new file mode 100644 index 00000000000..b942d98ea1c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\{run-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs new file mode 100644 index 00000000000..324081e2215 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.runs.item.subjectProcessingResults.item.reprocessedRuns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("run%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..b518a390bcd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The reprocessedRuns property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder ReprocessedRuns + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); + } + /// The taskProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The processing results for each subject in this workflow run. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The processing results for each subject in this workflow run. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The processing results for each subject in this workflow run. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..47761ed8927 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs new file mode 100644 index 00000000000..b9a7302fc52 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\microsoft.graph.identityGovernance.resume + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", rawUrl) + { + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs new file mode 100644 index 00000000000..7f62fb0a64c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResumePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData Data { get; set; } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { get; set; } +#nullable restore +#else + public string Source { get; set; } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResumePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "data", n => { Data = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("data", Data); + writer.WriteStringValue("source", Source); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..76ba22fe80b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1d46ad8cc5a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..a9f2d055aae --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,170 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs new file mode 100644 index 00000000000..77436379df2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilder : BaseRequestBuilder + { + /// The mailboxSettings property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder MailboxSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The serviceProvisioningErrors property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", rawUrl) + { + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs new file mode 100644 index 00000000000..6acd2c6e83c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", rawUrl) + { + } + /// + /// The related workflow task + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The related workflow task + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The related workflow task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..cea793fc9f0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -0,0 +1,143 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The microsoftGraphIdentityGovernanceResume property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder MicrosoftGraphIdentityGovernanceResume + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(PathParameters, RequestAdapter); + } + /// The subject property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder Subject + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(PathParameters, RequestAdapter); + } + /// The task property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder Task + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..cdf76ca6efa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.runs.item.subjectProcessingResults.item.taskProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("taskProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 00000000000..a705e7a9363 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,98 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", rawUrl) + { + } + /// + /// Invoke function summary + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function summary + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..dc72985e6a6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs @@ -0,0 +1,192 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.runs.item.subjectProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subjectProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The processing results for each subject in this workflow run. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// The processing results for each subject in this workflow run. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The processing results for each subject in this workflow run. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..39d195ae8dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7ce2d9c5538 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs new file mode 100644 index 00000000000..4d6a61760c1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\{run-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs new file mode 100644 index 00000000000..5347dda6a53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.subjectProcessingResults.item.reprocessedRuns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("run%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..312c7f627b5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The reprocessedRuns property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder ReprocessedRuns + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); + } + /// The taskProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..76e8507841b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs new file mode 100644 index 00000000000..f2b39470113 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\microsoft.graph.identityGovernance.resume + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", rawUrl) + { + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs new file mode 100644 index 00000000000..52669e10c57 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResumePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData Data { get; set; } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { get; set; } +#nullable restore +#else + public string Source { get; set; } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResumePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "data", n => { Data = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("data", Data); + writer.WriteStringValue("source", Source); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..f2296d7550f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..e342b9a256a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..251426b034e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,170 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs new file mode 100644 index 00000000000..85cf4b10747 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilder : BaseRequestBuilder + { + /// The mailboxSettings property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder MailboxSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The serviceProvisioningErrors property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", rawUrl) + { + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs new file mode 100644 index 00000000000..815d0f032fc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", rawUrl) + { + } + /// + /// The related workflow task + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The related workflow task + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The related workflow task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..f905d5e3cba --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -0,0 +1,143 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The microsoftGraphIdentityGovernanceResume property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder MicrosoftGraphIdentityGovernanceResume + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(PathParameters, RequestAdapter); + } + /// The subject property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder Subject + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(PathParameters, RequestAdapter); + } + /// The task property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder Task + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..ee2738fc167 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.subjectProcessingResults.item.taskProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("taskProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 00000000000..8b6ea6070fc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,98 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", rawUrl) + { + } + /// + /// Invoke function summary + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function summary + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..d8c19d91440 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs @@ -0,0 +1,192 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.deletedItems.workflows.item.subjectProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subjectProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\deletedItems\workflows\{workflow-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs index 1531865f44f..701daa733f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/DeletedItems/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -5,6 +5,7 @@ using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.ExecutionScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.LastModifiedBy; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivate; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateWithScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceCancelProcessing; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceClearQuarantine; @@ -14,6 +15,7 @@ using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceRestore; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.PreviewScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Tasks; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.UserProcessingResults; @@ -61,6 +63,11 @@ public partial class WorkflowItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivate.MicrosoftGraphIdentityGovernanceActivateRequestBuilder(PathParameters, RequestAdapter); } + /// The microsoftGraphIdentityGovernanceActivateAndWait property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder MicrosoftGraphIdentityGovernanceActivateAndWait + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(PathParameters, RequestAdapter); + } /// The microsoftGraphIdentityGovernanceActivateWithScope property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateWithScope.MicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder MicrosoftGraphIdentityGovernanceActivateWithScope { @@ -106,6 +113,11 @@ public partial class WorkflowItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.RunsRequestBuilder(PathParameters, RequestAdapter); } + /// The subjectProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder SubjectProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } /// The taskReports property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.TaskReports.TaskReportsRequestBuilder TaskReports { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs new file mode 100644 index 00000000000..3e23d60a668 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/ActivateAndWaitPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ActivateAndWaitPostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject Subject { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ActivateAndWaitPostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "subject", n => { Subject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("subject", Subject); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs new file mode 100644 index 00000000000..ec3822fd35a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/MicrosoftGraphIdentityGovernanceActivateAndWait/MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\microsoft.graph.identityGovernance.activateAndWait + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/microsoft.graph.identityGovernance.activateAndWait", rawUrl) + { + } + /// + /// Activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Activate a lifecycle workflow for a specified subject and synchronously wait for execution to complete. This action returns an awaitedWorkflowProcessingResult with the execution outcome. Use this action when you need immediate confirmation of workflow completion, for example when provisioning a non-user subject. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs index b061c87b267..21470bd9573 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/RunItemRequestBuilder.cs @@ -1,6 +1,7 @@ // #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.UserProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; @@ -26,6 +27,11 @@ public partial class RunItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); } + /// The subjectProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder SubjectProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } /// The taskProcessingResults property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..850f673ed88 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..20ceed5399d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs new file mode 100644 index 00000000000..718e3946c6a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\{run-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs new file mode 100644 index 00000000000..f7049a1222c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.runs.item.subjectProcessingResults.item.reprocessedRuns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("run%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..30fa9812365 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The reprocessedRuns property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder ReprocessedRuns + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); + } + /// The taskProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Read the properties and relationships of a subjectProcessingResult object for a workflow run. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a subjectProcessingResult object for a workflow run. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties and relationships of a subjectProcessingResult object for a workflow run. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3152f7f64af --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs new file mode 100644 index 00000000000..b6e27664ec7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\microsoft.graph.identityGovernance.resume + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", rawUrl) + { + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs new file mode 100644 index 00000000000..bf17cc277cb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResumePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData Data { get; set; } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { get; set; } +#nullable restore +#else + public string Source { get; set; } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResumePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "data", n => { Data = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("data", Data); + writer.WriteStringValue("source", Source); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..90a4dd9ae40 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..157df257bf9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..2a60cabe906 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,170 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs new file mode 100644 index 00000000000..bdc92464854 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilder : BaseRequestBuilder + { + /// The mailboxSettings property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder MailboxSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The serviceProvisioningErrors property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", rawUrl) + { + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs new file mode 100644 index 00000000000..4c5ee2b4ae9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", rawUrl) + { + } + /// + /// The related workflow task + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The related workflow task + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The related workflow task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..aa85b85e75d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -0,0 +1,143 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The microsoftGraphIdentityGovernanceResume property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder MicrosoftGraphIdentityGovernanceResume + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(PathParameters, RequestAdapter); + } + /// The subject property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder Subject + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(PathParameters, RequestAdapter); + } + /// The task property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder Task + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..b8b1f75b94f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.runs.item.subjectProcessingResults.item.taskProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("taskProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 00000000000..d4700de31c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,98 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", rawUrl) + { + } + /// + /// Provide a subjectSummary for subjectProcessingResult objects over a specified time period. Because the number of subject processing results returned by the list API can be overwhelming, this summary allows administrators to get a quick overview based on counts. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Provide a subjectSummary for subjectProcessingResult objects over a specified time period. Because the number of subject processing results returned by the list API can be overwhelming, this summary allows administrators to get a quick overview based on counts. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..d2ba0b42891 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/Runs/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs @@ -0,0 +1,193 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.runs.item.subjectProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subjectProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/runs/{run%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\runs\{run-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the subjectProcessingResult objects for a specific workflow run. Each result represents the processing outcome for a single subject. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a40200bc53d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3e12299fd98 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs new file mode 100644 index 00000000000..8242f3c04b3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/Item/RunItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns\{run-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RunItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns/{run%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RunItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs new file mode 100644 index 00000000000..a25cbc69be7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/ReprocessedRuns/ReprocessedRunsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\reprocessedRuns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.subjectProcessingResults.item.reprocessedRuns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("run%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.Item.RunItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReprocessedRunsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/reprocessedRuns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The reprocessed runs associated with this subject processing result. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ReprocessedRunsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..64b2ddba20b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/SubjectProcessingResultItemRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The reprocessedRuns property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder ReprocessedRuns + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.ReprocessedRuns.ReprocessedRunsRequestBuilder(PathParameters, RequestAdapter); + } + /// The taskProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder TaskProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f8c97609e0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs new file mode 100644 index 00000000000..43f9c8feb4a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/MicrosoftGraphIdentityGovernanceResumeRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\microsoft.graph.identityGovernance.resume + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceResumeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/microsoft.graph.identityGovernance.resume", rawUrl) + { + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// Find more info here + /// + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Resume a taskProcessingResult that's inProgress. In the default case, an Azure Logic Apps system-assigned managed identity calls this API. For more information, see Lifecycle Workflows extensibility approach. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceResumeRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs new file mode 100644 index 00000000000..99d4e8ad720 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/MicrosoftGraphIdentityGovernanceResume/ResumePostRequestBody.cs @@ -0,0 +1,86 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResumePostRequestBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The data property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData Data { get; set; } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { get; set; } +#nullable restore +#else + public string Source { get; set; } +#endif + /// The type property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Type { get; set; } +#nullable restore +#else + public string Type { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResumePostRequestBody() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "data", n => { Data = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData.CreateFromDiscriminatorValue); } }, + { "source", n => { Source = n.GetStringValue(); } }, + { "type", n => { Type = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteObjectValue("data", Data); + writer.WriteStringValue("source", Source); + writer.WriteStringValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs new file mode 100644 index 00000000000..1182b689f63 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/MailboxSettings/MailboxSettingsRequestBuilder.cs @@ -0,0 +1,180 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\mailboxSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MailboxSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/mailboxSettings{?%24expand,%24select}", rawUrl) + { + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update property mailboxSettings value. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Requires $select to retrieve. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MailboxSettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9ee18f4da99 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs new file mode 100644 index 00000000000..327712845b0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/ServiceProvisioningErrors/ServiceProvisioningErrorsRequestBuilder.cs @@ -0,0 +1,170 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject\serviceProvisioningErrors + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProvisioningErrorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject/serviceProvisioningErrors{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Errors published by a federated service describing a nontransient, service-specific error regarding the properties or link from a user object. Supports $filter (eq, not, for isResolved and serviceInstance). + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProvisioningErrorsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs new file mode 100644 index 00000000000..fea754ff409 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/Subject/SubjectRequestBuilder.cs @@ -0,0 +1,137 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\subject + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilder : BaseRequestBuilder + { + /// The mailboxSettings property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder MailboxSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.MailboxSettings.MailboxSettingsRequestBuilder(PathParameters, RequestAdapter); + } + /// The serviceProvisioningErrors property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder ServiceProvisioningErrors + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.ServiceProvisioningErrors.ServiceProvisioningErrorsRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/subject{?%24expand,%24select}", rawUrl) + { + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The unique identifier of the Microsoft Entra user targeted for the task execution.Supports $filter(eq, ne) and $expand. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs new file mode 100644 index 00000000000..88a2b6b974e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskNamespace/TaskRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id}\task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}/task{?%24expand,%24select}", rawUrl) + { + } + /// + /// The related workflow task + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The related workflow task + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The related workflow task + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs new file mode 100644 index 00000000000..726bbc91ad8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/Item/TaskProcessingResultItemRequestBuilder.cs @@ -0,0 +1,143 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults\{taskProcessingResult-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilder : BaseRequestBuilder + { + /// The microsoftGraphIdentityGovernanceResume property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder MicrosoftGraphIdentityGovernanceResume + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.MicrosoftGraphIdentityGovernanceResumeRequestBuilder(PathParameters, RequestAdapter); + } + /// The subject property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder Subject + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.Subject.SubjectRequestBuilder(PathParameters, RequestAdapter); + } + /// The task property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder Task + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskNamespace.TaskRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults/{taskProcessingResult%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..7ee1b6c90ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/Item/TaskProcessingResults/TaskProcessingResultsRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\{subjectProcessingResult-id}\taskProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.subjectProcessingResults.item.taskProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("taskProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.TaskProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TaskProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/{subjectProcessingResult%2Did}/taskProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.TaskProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The task-level processing results for this subject. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TaskProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs new file mode 100644 index 00000000000..ed3ed599ada --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime/MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder.cs @@ -0,0 +1,98 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})", rawUrl) + { + } + /// + /// Invoke function summary + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function summary + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs new file mode 100644 index 00000000000..107bea4db2f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/SubjectProcessingResults/SubjectProcessingResultsRequestBuilder.cs @@ -0,0 +1,192 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults +{ + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.Governance.Client.identityGovernance.lifecycleWorkflows.workflows.item.subjectProcessingResults.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("subjectProcessingResult%2Did", position); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.SubjectProcessingResultItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SubjectProcessingResultsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/lifecycleWorkflows/workflows/{workflow%2Did}/subjectProcessingResults{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Builds and executes requests for operations under \identityGovernance\lifecycleWorkflows\workflows\{workflow-id}\subjectProcessingResults\microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime}) + /// + /// A + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime() + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Per-subject workflow execution results. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SubjectProcessingResultsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs index 3af48b113bc..db395565517 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/IdentityGovernance/LifecycleWorkflows/Workflows/Item/WorkflowItemRequestBuilder.cs @@ -5,6 +5,7 @@ using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.ExecutionScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.LastModifiedBy; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivate; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateWithScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceCancelProcessing; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceClearQuarantine; @@ -14,6 +15,7 @@ using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceRestore; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.PreviewScope; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Tasks; using Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.UserProcessingResults; @@ -61,6 +63,11 @@ public partial class WorkflowItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivate.MicrosoftGraphIdentityGovernanceActivateRequestBuilder(PathParameters, RequestAdapter); } + /// The microsoftGraphIdentityGovernanceActivateAndWait property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder MicrosoftGraphIdentityGovernanceActivateAndWait + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.MicrosoftGraphIdentityGovernanceActivateAndWaitRequestBuilder(PathParameters, RequestAdapter); + } /// The microsoftGraphIdentityGovernanceActivateWithScope property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateWithScope.MicrosoftGraphIdentityGovernanceActivateWithScopeRequestBuilder MicrosoftGraphIdentityGovernanceActivateWithScope { @@ -106,6 +113,11 @@ public partial class WorkflowItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.RunsRequestBuilder(PathParameters, RequestAdapter); } + /// The subjectProcessingResults property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder SubjectProcessingResults + { + get => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.SubjectProcessingResultsRequestBuilder(PathParameters, RequestAdapter); + } /// The taskReports property public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.TaskReports.TaskReportsRequestBuilder TaskReports { diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessPackageResource.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessPackageResource.cs index d33da0c5b52..e9cce7e025b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessPackageResource.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessPackageResource.cs @@ -45,6 +45,14 @@ public partial class AccessPackageResource : global::Microsoft.Graph.PowerShell. #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment Environment { get; set; } +#endif + /// The connector that integrates with external origin systems to provision access to resources from those systems. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? ExternalOriginResourceConnector { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector ExternalOriginResourceConnector { get; set; } #endif /// 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. Read-only. public DateTimeOffset? ModifiedDateTime { get; set; } @@ -79,6 +87,14 @@ public partial class AccessPackageResource : global::Microsoft.Graph.PowerShell. #nullable restore #else public List Scopes { get; set; } +#endif + /// The upload sessions for uploading external access data to this resource through the Bring Your Own Data (BYOD) flow. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? UploadSessions { get; set; } +#nullable restore +#else + public List UploadSessions { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -103,11 +119,13 @@ public override IDictionary> GetFieldDeserializers() { "description", n => { Description = n.GetStringValue(); } }, { "displayName", n => { DisplayName = n.GetStringValue(); } }, { "environment", n => { Environment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue); } }, + { "externalOriginResourceConnector", n => { ExternalOriginResourceConnector = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue); } }, { "modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, { "originId", n => { OriginId = n.GetStringValue(); } }, { "originSystem", n => { OriginSystem = n.GetStringValue(); } }, { "roles", n => { Roles = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole.CreateFromDiscriminatorValue)?.AsList(); } }, { "scopes", n => { Scopes = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope.CreateFromDiscriminatorValue)?.AsList(); } }, + { "uploadSessions", n => { UploadSessions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue)?.AsList(); } }, }; } /// @@ -123,11 +141,13 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); writer.WriteObjectValue("environment", Environment); + writer.WriteObjectValue("externalOriginResourceConnector", ExternalOriginResourceConnector); writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); writer.WriteStringValue("originId", OriginId); writer.WriteStringValue("originSystem", OriginSystem); writer.WriteCollectionOfObjectValues("roles", Roles); writer.WriteCollectionOfObjectValues("scopes", Scopes); + writer.WriteCollectionOfObjectValues("uploadSessions", UploadSessions); } } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewError.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewError.cs new file mode 100644 index 00000000000..01df740d162 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewError.cs @@ -0,0 +1,53 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AccessReviewError : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GenericError, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public AccessReviewError() : base() + { + OdataType = "#microsoft.graph.accessReviewError"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstance.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstance.cs index 0465e35872e..152ac777a9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstance.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstance.cs @@ -30,6 +30,14 @@ public partial class AccessReviewInstance : global::Microsoft.Graph.PowerShell.I #endif /// DateTime when review instance is scheduled to end.The DatetimeOffset 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. Supports $select. Read-only. public DateTimeOffset? EndDateTime { get; set; } + /// Collection of errors in an access review instance lifecycle. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Errors { get; set; } +#nullable restore +#else + public List Errors { get; set; } +#endif /// This collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers will be notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner does not exist, or manager is specified as reviewer but a user's manager does not exist. Supports $select. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -93,6 +101,7 @@ public override IDictionary> GetFieldDeserializers() { "contactedReviewers", n => { ContactedReviewers = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer.CreateFromDiscriminatorValue)?.AsList(); } }, { "decisions", n => { Decisions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, { "endDateTime", n => { EndDateTime = n.GetDateTimeOffsetValue(); } }, + { "errors", n => { Errors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError.CreateFromDiscriminatorValue)?.AsList(); } }, { "fallbackReviewers", n => { FallbackReviewers = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope.CreateFromDiscriminatorValue)?.AsList(); } }, { "reviewers", n => { Reviewers = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope.CreateFromDiscriminatorValue)?.AsList(); } }, { "scope", n => { Scope = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope.CreateFromDiscriminatorValue); } }, @@ -112,6 +121,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("contactedReviewers", ContactedReviewers); writer.WriteCollectionOfObjectValues("decisions", Decisions); writer.WriteDateTimeOffsetValue("endDateTime", EndDateTime); + writer.WriteCollectionOfObjectValues("errors", Errors); writer.WriteCollectionOfObjectValues("fallbackReviewers", FallbackReviewers); writer.WriteCollectionOfObjectValues("reviewers", Reviewers); writer.WriteObjectValue("scope", Scope); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItem.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItem.cs index 2c2d5ba3f70..e4649ea6a34 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItem.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItem.cs @@ -30,6 +30,14 @@ public partial class AccessReviewInstanceDecisionItem : global::Microsoft.Graph. #endif /// The timestamp when the approval decision was applied.00000000-0000-0000-0000-000000000000 if the assigned reviewer hasn't applied the decision or it was automatically applied. The DatetimeOffset 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. Supports $select. Read-only. public DateTimeOffset? AppliedDateTime { get; set; } + /// The description of the apply result. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ApplyDescription { get; set; } +#nullable restore +#else + public string ApplyDescription { get; set; } +#endif /// The result of applying the decision. Possible values: New, AppliedSuccessfully, AppliedWithUnknownFailure, AppliedSuccessfullyButObjectNotFound and ApplyNotSupported. Supports $select, $orderby, and $filter (eq only). Read-only. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -133,6 +141,7 @@ public override IDictionary> GetFieldDeserializers() { "accessReviewId", n => { AccessReviewId = n.GetStringValue(); } }, { "appliedBy", n => { AppliedBy = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity.CreateFromDiscriminatorValue); } }, { "appliedDateTime", n => { AppliedDateTime = n.GetDateTimeOffsetValue(); } }, + { "applyDescription", n => { ApplyDescription = n.GetStringValue(); } }, { "applyResult", n => { ApplyResult = n.GetStringValue(); } }, { "decision", n => { Decision = n.GetStringValue(); } }, { "insights", n => { Insights = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight.CreateFromDiscriminatorValue)?.AsList(); } }, @@ -157,6 +166,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("accessReviewId", AccessReviewId); writer.WriteObjectValue("appliedBy", AppliedBy); writer.WriteDateTimeOffsetValue("appliedDateTime", AppliedDateTime); + writer.WriteStringValue("applyDescription", ApplyDescription); writer.WriteStringValue("applyResult", ApplyResult); writer.WriteStringValue("decision", Decision); writer.WriteCollectionOfObjectValues("insights", Insights); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItemResource.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItemResource.cs index dd13a967524..db76d8f87ef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItemResource.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewInstanceDecisionItemResource.cs @@ -38,7 +38,7 @@ public partial class AccessReviewInstanceDecisionItemResource : IAdditionalDataH #else public string OdataType { get; set; } #endif - /// Type of resource. Types include: Group, ServicePrincipal, DirectoryRole, AzureRole, AccessPackageAssignmentPolicy. + /// Type of resource. Types include: Group, ServicePrincipal, DirectoryRole, AzureRole, AccessPackage, AccessPackageAssignmentPolicy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Type { get; set; } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs index ed3182009cc..0c5d354c67f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs @@ -46,6 +46,16 @@ public partial class AccessReviewReviewerScope : IAdditionalDataHolder, IParsabl #else public string QueryType { get; set; } #endif + /// The identifier of the reviewer. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ReviewerId { get; set; } +#nullable restore +#else + public string ReviewerId { get; set; } +#endif + /// The scopeType property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScopeType? ScopeType { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -75,6 +85,8 @@ public virtual IDictionary> GetFieldDeserializers() { "query", n => { Query = n.GetStringValue(); } }, { "queryRoot", n => { QueryRoot = n.GetStringValue(); } }, { "queryType", n => { QueryType = n.GetStringValue(); } }, + { "reviewerId", n => { ReviewerId = n.GetStringValue(); } }, + { "scopeType", n => { ScopeType = n.GetEnumValue(); } }, }; } /// @@ -88,6 +100,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("query", Query); writer.WriteStringValue("queryRoot", QueryRoot); writer.WriteStringValue("queryType", QueryType); + writer.WriteStringValue("reviewerId", ReviewerId); + writer.WriteEnumValue("scopeType", ScopeType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs new file mode 100644 index 00000000000..bc852419a26 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs @@ -0,0 +1,44 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum AccessReviewReviewerScopeType + #pragma warning restore CS1591 + { + [EnumMember(Value = "user")] + #pragma warning disable CS1591 + User, + #pragma warning restore CS1591 + [EnumMember(Value = "group")] + #pragma warning disable CS1591 + Group, + #pragma warning restore CS1591 + [EnumMember(Value = "self")] + #pragma warning disable CS1591 + Self, + #pragma warning restore CS1591 + [EnumMember(Value = "manager")] + #pragma warning disable CS1591 + Manager, + #pragma warning restore CS1591 + [EnumMember(Value = "sponsor")] + #pragma warning disable CS1591 + Sponsor, + #pragma warning restore CS1591 + [EnumMember(Value = "resourceOwner")] + #pragma warning disable CS1591 + ResourceOwner, + #pragma warning restore CS1591 + [EnumMember(Value = "managerOrSponsor")] + #pragma warning disable CS1591 + ManagerOrSponsor, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewSet.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewSet.cs index f5ae4fef797..567da16a45b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewSet.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/AccessReviewSet.cs @@ -27,6 +27,14 @@ public partial class AccessReviewSet : global::Microsoft.Graph.PowerShell.Identi #nullable restore #else public List HistoryDefinitions { get; set; } +#endif + /// Entry point for the unified (vNext) access reviews API surface. Requests under this path are routed to the vNext service through the dedicated accessReviews/unified path segment. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot? Unified { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot Unified { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -48,6 +56,7 @@ public override IDictionary> GetFieldDeserializers() { { "definitions", n => { Definitions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.AsList(); } }, { "historyDefinitions", n => { HistoryDefinitions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewHistoryDefinition.CreateFromDiscriminatorValue)?.AsList(); } }, + { "unified", n => { Unified = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot.CreateFromDiscriminatorValue); } }, }; } /// @@ -60,6 +69,7 @@ public override void Serialize(ISerializationWriter writer) base.Serialize(writer); writer.WriteCollectionOfObjectValues("definitions", Definitions); writer.WriteCollectionOfObjectValues("historyDefinitions", HistoryDefinitions); + writer.WriteObjectValue("unified", Unified); } } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/Chat.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/Chat.cs index a21c48b68c8..228e6f18478 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Identity.Governan #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..40ce8a35b87 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ConnectorType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ConnectorType.cs new file mode 100644 index 00000000000..c61dd597568 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ConnectorType.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ConnectorType + #pragma warning restore CS1591 + { + [EnumMember(Value = "sapIag")] + #pragma warning disable CS1591 + SapIag, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..9cab4d5f6d1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFile.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFile.cs new file mode 100644 index 00000000000..c5903df0695 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFile.cs @@ -0,0 +1,64 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CustomDataProvidedResourceFile : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// Name of the uploaded file, including the file extension. Required. Supports $filter (eq, ne) and $orderby. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// Size of the file in bytes. Read-only. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. + public long? Size { get; set; } + /// Timestamp when the file was uploaded. Read-only. Supports $filter (eq, ne, gt, ge, lt, le) and $orderby. + public DateTimeOffset? UploadedDateTime { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "name", n => { Name = n.GetStringValue(); } }, + { "size", n => { Size = n.GetLongValue(); } }, + { "uploadedDateTime", n => { UploadedDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("name", Name); + writer.WriteLongValue("size", Size); + writer.WriteDateTimeOffsetValue("uploadedDateTime", UploadedDateTime); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFileCollectionResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFileCollectionResponse.cs new file mode 100644 index 00000000000..c98ad7c0fd7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceFileCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CustomDataProvidedResourceFileCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourcePayloads/Data.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourcePayloads/Data.cs new file mode 100644 index 00000000000..b0b1dc37e44 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourcePayloads/Data.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Data : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Data() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSession.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSession.cs new file mode 100644 index 00000000000..acdc149c3f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSession.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CustomDataProvidedResourceUploadSession : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// DateTime when the upload session was created. Read-only. Supports $orderby. + public DateTimeOffset? CreatedDateTime { get; set; } + /// An object containing the context for which this data is being uploaded. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data Data { get; set; } +#endif + /// The files uploaded during this upload session. Supports $expand and $expand with nested $filter and $orderby. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Files { get; set; } +#nullable restore +#else + public List Files { get; set; } +#endif + /// Indicates if all the necessary files have been uploaded to this session. + public bool? IsUploadDone { get; set; } + /// The ID of the context for which data is being uploaded, for example, the Access Review instance ID. Supports $filter (eq). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ReferenceId { get; set; } +#nullable restore +#else + public string ReferenceId { get; set; } +#endif + /// The stats property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats Stats { get; set; } +#endif + /// The status property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + { "data", n => { Data = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data.CreateFromDiscriminatorValue); } }, + { "files", n => { Files = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile.CreateFromDiscriminatorValue)?.AsList(); } }, + { "isUploadDone", n => { IsUploadDone = n.GetBoolValue(); } }, + { "referenceId", n => { ReferenceId = n.GetStringValue(); } }, + { "stats", n => { Stats = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteObjectValue("data", Data); + writer.WriteCollectionOfObjectValues("files", Files); + writer.WriteBoolValue("isUploadDone", IsUploadDone); + writer.WriteStringValue("referenceId", ReferenceId); + writer.WriteObjectValue("stats", Stats); + writer.WriteEnumValue("status", Status); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSessionCollectionResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSessionCollectionResponse.cs new file mode 100644 index 00000000000..b0fa93b27f7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadSessionCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CustomDataProvidedResourceUploadSessionCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStats.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStats.cs new file mode 100644 index 00000000000..809840ca4f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStats.cs @@ -0,0 +1,73 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CustomDataProvidedResourceUploadStats : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Number of files uploaded in this session. + public int? FilesUploaded { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// Total bytes uploaded in this session. + public long? TotalBytesUploaded { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public CustomDataProvidedResourceUploadStats() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "filesUploaded", n => { FilesUploaded = n.GetIntValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "totalBytesUploaded", n => { TotalBytesUploaded = n.GetLongValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("filesUploaded", FilesUploaded); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteLongValue("totalBytesUploaded", TotalBytesUploaded); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStatus.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStatus.cs new file mode 100644 index 00000000000..46a48376b7d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/CustomDataProvidedResourceUploadStatus.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum CustomDataProvidedResourceUploadStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "active")] + #pragma warning disable CS1591 + Active, + #pragma warning restore CS1591 + [EnumMember(Value = "complete")] + #pragma warning disable CS1591 + Complete, + #pragma warning restore CS1591 + [EnumMember(Value = "expired")] + #pragma warning disable CS1591 + Expired, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/EntitlementManagement.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/EntitlementManagement.cs index 2367e46c31c..214637df1f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/EntitlementManagement.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/EntitlementManagement.cs @@ -91,6 +91,14 @@ public partial class EntitlementManagement : global::Microsoft.Graph.PowerShell. #nullable restore #else public List ControlConfigurations { get; set; } +#endif + /// Represents the connectors used to communicate with external resource systems. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ExternalOriginResourceConnectors { get; set; } +#nullable restore +#else + public List ExternalOriginResourceConnectors { get; set; } #endif /// A reference to the geolocation environments in which a resource is located. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,6 +176,7 @@ public override IDictionary> GetFieldDeserializers() { "catalogs", n => { Catalogs = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog.CreateFromDiscriminatorValue)?.AsList(); } }, { "connectedOrganizations", n => { ConnectedOrganizations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectedOrganization.CreateFromDiscriminatorValue)?.AsList(); } }, { "controlConfigurations", n => { ControlConfigurations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ControlConfiguration.CreateFromDiscriminatorValue)?.AsList(); } }, + { "externalOriginResourceConnectors", n => { ExternalOriginResourceConnectors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue)?.AsList(); } }, { "resourceEnvironments", n => { ResourceEnvironments = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment.CreateFromDiscriminatorValue)?.AsList(); } }, { "resourceRequests", n => { ResourceRequests = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRequest.CreateFromDiscriminatorValue)?.AsList(); } }, { "resourceRoleScopes", n => { ResourceRoleScopes = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleScope.CreateFromDiscriminatorValue)?.AsList(); } }, @@ -194,6 +203,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("catalogs", Catalogs); writer.WriteCollectionOfObjectValues("connectedOrganizations", ConnectedOrganizations); writer.WriteCollectionOfObjectValues("controlConfigurations", ControlConfigurations); + writer.WriteCollectionOfObjectValues("externalOriginResourceConnectors", ExternalOriginResourceConnectors); writer.WriteCollectionOfObjectValues("resourceEnvironments", ResourceEnvironments); writer.WriteCollectionOfObjectValues("resourceRequests", ResourceRequests); writer.WriteCollectionOfObjectValues("resourceRoleScopes", ResourceRoleScopes); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/Entity.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/Entity.cs index 5327ac92cb8..dceb69b8b2e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/Entity.cs @@ -125,6 +125,8 @@ public Entity() "#microsoft.graph.conversationMember" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConversationMember(), "#microsoft.graph.conversationThread" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConversationThread(), "#microsoft.graph.customCalloutExtension" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension(), + "#microsoft.graph.customDataProvidedResourceFile" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile(), + "#microsoft.graph.customDataProvidedResourceUploadSession" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(), "#microsoft.graph.customExtensionStageSetting" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionStageSetting(), "#microsoft.graph.dataSecurityAndGovernance" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DataSecurityAndGovernance(), "#microsoft.graph.dayNote" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DayNote(), @@ -150,6 +152,7 @@ public Entity() "#microsoft.graph.exchangeSettings" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExchangeSettings(), "#microsoft.graph.extension" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Extension(), "#microsoft.graph.externalAuthenticationMethod" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalAuthenticationMethod(), + "#microsoft.graph.externalOriginResourceConnector" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector(), "#microsoft.graph.fido2AuthenticationMethod" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Fido2AuthenticationMethod(), "#microsoft.graph.fieldValueSet" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.FieldValueSet(), "#microsoft.graph.governanceInsight" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(), @@ -161,6 +164,7 @@ public Entity() "#microsoft.graph.identityGovernance.lifecycleManagementSettings" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.LifecycleManagementSettings(), "#microsoft.graph.identityGovernance.lifecycleWorkflowsContainer" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.LifecycleWorkflowsContainer(), "#microsoft.graph.identityGovernance.run" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run(), + "#microsoft.graph.identityGovernance.subjectProcessingResult" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult(), "#microsoft.graph.identityGovernance.task" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject(), "#microsoft.graph.identityGovernance.taskDefinition" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskDefinition(), "#microsoft.graph.identityGovernance.taskProcessingResult" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult(), @@ -313,6 +317,7 @@ public Entity() "#microsoft.graph.unifiedRoleEligibilityScheduleRequest" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoleEligibilityScheduleRequest(), "#microsoft.graph.unifiedRoleScheduleBase" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoleScheduleBase(), "#microsoft.graph.unifiedRoleScheduleInstanceBase" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoleScheduleInstanceBase(), + "#microsoft.graph.unifiedRoot" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot(), "#microsoft.graph.unifiedStorageQuota" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedStorageQuota(), "#microsoft.graph.usageRightsIncluded" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UsageRightsIncluded(), "#microsoft.graph.usedInsight" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UsedInsight(), diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnector.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnector.cs new file mode 100644 index 00000000000..4f2e72f53b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnector.cs @@ -0,0 +1,108 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ExternalOriginResourceConnector : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The connectionInfo property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectionInfo? ConnectionInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectionInfo ConnectionInfo { get; set; } +#endif + /// The connectorType property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectorType? ConnectorType { get; set; } + /// The identifier of the user or application that created the connector. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CreatedBy { get; set; } +#nullable restore +#else + public string CreatedBy { get; set; } +#endif + /// The date and time when the connector was created. + public DateTimeOffset? CreatedDateTime { get; set; } + /// A description of the connector. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Description { get; set; } +#nullable restore +#else + public string Description { get; set; } +#endif + /// The display name of the connector. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { get; set; } +#nullable restore +#else + public string DisplayName { get; set; } +#endif + /// The identifier of the user or application that last modified the connector. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ModifiedBy { get; set; } +#nullable restore +#else + public string ModifiedBy { get; set; } +#endif + /// The date and time when the connector was last modified. + public DateTimeOffset? ModifiedDateTime { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "connectionInfo", n => { ConnectionInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectionInfo.CreateFromDiscriminatorValue); } }, + { "connectorType", n => { ConnectorType = n.GetEnumValue(); } }, + { "createdBy", n => { CreatedBy = n.GetStringValue(); } }, + { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + { "description", n => { Description = n.GetStringValue(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "modifiedBy", n => { ModifiedBy = n.GetStringValue(); } }, + { "modifiedDateTime", n => { ModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("connectionInfo", ConnectionInfo); + writer.WriteEnumValue("connectorType", ConnectorType); + writer.WriteStringValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("description", Description); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("modifiedBy", ModifiedBy); + writer.WriteDateTimeOffsetValue("modifiedDateTime", ModifiedDateTime); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnectorCollectionResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnectorCollectionResponse.cs new file mode 100644 index 00000000000..2e4fbeb04d0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ExternalOriginResourceConnectorCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ExternalOriginResourceConnectorCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnectorCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnectorCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/GenericError.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/GenericError.cs new file mode 100644 index 00000000000..5121c6b2484 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/GenericError.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GenericError : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The error code. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Code { get; set; } +#nullable restore +#else + public string Code { get; set; } +#endif + /// The error message. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Message { get; set; } +#nullable restore +#else + public string Message { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GenericError() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GenericError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.accessReviewError" => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError(), + _ => new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GenericError(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("code", Code); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/Group.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/Group.cs index 96dbbe0196d..28e27fe7a0a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Identity.Governa #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/AwaitedWorkflowProcessingResult.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/AwaitedWorkflowProcessingResult.cs new file mode 100644 index 00000000000..89f6c8bde47 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/AwaitedWorkflowProcessingResult.cs @@ -0,0 +1,89 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AwaitedWorkflowProcessingResult : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The processingStatus property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + /// A collection of reasons for the current processing status. May be empty. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? StatusReasons { get; set; } +#nullable restore +#else + public List StatusReasons { get; set; } +#endif + /// The subject that was processed by the workflow. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject Subject { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AwaitedWorkflowProcessingResult() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "processingStatus", n => { ProcessingStatus = n.GetEnumValue(); } }, + { "statusReasons", n => { StatusReasons = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "subject", n => { Subject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("processingStatus", ProcessingStatus); + writer.WriteCollectionOfPrimitiveValues("statusReasons", StatusReasons); + writer.WriteObjectValue("subject", Subject); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtension.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtension.cs index dc0863ccd69..7bf5f4ebc45 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtension.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtension.cs @@ -40,6 +40,8 @@ public partial class CustomTaskExtension : global::Microsoft.Graph.PowerShell.Id #endif /// When the custom extension was last modified.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. public DateTimeOffset? LastModifiedDateTime { get; set; } + /// The replyMode property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionReplyMode? ReplyMode { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -70,6 +72,7 @@ public override IDictionary> GetFieldDeserializers() { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue); } }, { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + { "replyMode", n => { ReplyMode = n.GetEnumValue(); } }, }; } /// @@ -85,6 +88,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteEnumValue("replyMode", ReplyMode); } } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtensionReplyMode.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtensionReplyMode.cs new file mode 100644 index 00000000000..296fa606ccb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/CustomTaskExtensionReplyMode.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum CustomTaskExtensionReplyMode + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "callback")] + #pragma warning disable CS1591 + Callback, + #pragma warning restore CS1591 + [EnumMember(Value = "response")] + #pragma warning disable CS1591 + Response, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/IdentityGovernance.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/IdentityGovernance.cs index baf29596d06..78a84526ae0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/IdentityGovernance.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/IdentityGovernance.cs @@ -29,6 +29,14 @@ public partial class IdentityGovernance : IAdditionalDataHolder, IParsable #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AppConsentApprovalRoute AppConsent { get; set; } +#endif + /// The catalogs property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Catalogs { get; set; } +#nullable restore +#else + public List Catalogs { get; set; } #endif /// The entitlementManagement property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,6 +105,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "accessReviews", n => { AccessReviews = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewSet.CreateFromDiscriminatorValue); } }, { "appConsent", n => { AppConsent = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AppConsentApprovalRoute.CreateFromDiscriminatorValue); } }, + { "catalogs", n => { Catalogs = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog.CreateFromDiscriminatorValue)?.AsList(); } }, { "entitlementManagement", n => { EntitlementManagement = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.EntitlementManagement.CreateFromDiscriminatorValue); } }, { "lifecycleWorkflows", n => { LifecycleWorkflows = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.LifecycleWorkflowsContainer.CreateFromDiscriminatorValue); } }, { "@odata.type", n => { OdataType = n.GetStringValue(); } }, @@ -113,6 +122,7 @@ public virtual void Serialize(ISerializationWriter writer) if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("accessReviews", AccessReviews); writer.WriteObjectValue("appConsent", AppConsent); + writer.WriteCollectionOfObjectValues("catalogs", Catalogs); writer.WriteObjectValue("entitlementManagement", EntitlementManagement); writer.WriteObjectValue("lifecycleWorkflows", LifecycleWorkflows); writer.WriteStringValue("@odata.type", OdataType); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleTaskCategory.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleTaskCategory.cs index b8e885083e2..b25db859cad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleTaskCategory.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleTaskCategory.cs @@ -25,5 +25,9 @@ public enum LifecycleTaskCategory #pragma warning disable CS1591 Mover = 8, #pragma warning restore CS1591 + [EnumMember(Value = "extensibility")] + #pragma warning disable CS1591 + Extensibility = 16, + #pragma warning restore CS1591 } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleWorkflowCategory.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleWorkflowCategory.cs index 39528dc7f55..61931949e3d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleWorkflowCategory.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/LifecycleWorkflowCategory.cs @@ -24,5 +24,9 @@ public enum LifecycleWorkflowCategory #pragma warning disable CS1591 Mover, #pragma warning restore CS1591 + [EnumMember(Value = "extensibility")] + #pragma warning disable CS1591 + Extensibility, + #pragma warning restore CS1591 } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Run.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Run.cs index bb9b1bad32d..22a54178a00 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Run.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Run.cs @@ -42,6 +42,14 @@ public partial class Run : global::Microsoft.Graph.PowerShell.Identity.Governanc public DateTimeOffset? ScheduledDateTime { get; set; } /// The date time that the run execution started.Supports $filter(lt, le, gt, ge, eq, ne) and $orderby. public DateTimeOffset? StartedDateTime { get; set; } + /// The processing results for each subject in this workflow run. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SubjectProcessingResults { get; set; } +#nullable restore +#else + public List SubjectProcessingResults { get; set; } +#endif /// The number of successfully completed users in the run. public int? SuccessfulUsersCount { get; set; } /// The related taskProcessingResults. @@ -95,6 +103,7 @@ public override IDictionary> GetFieldDeserializers() { "reprocessedRuns", n => { ReprocessedRuns = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue)?.AsList(); } }, { "scheduledDateTime", n => { ScheduledDateTime = n.GetDateTimeOffsetValue(); } }, { "startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, + { "subjectProcessingResults", n => { SubjectProcessingResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, { "successfulUsersCount", n => { SuccessfulUsersCount = n.GetIntValue(); } }, { "taskProcessingResults", n => { TaskProcessingResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, { "totalTasksCount", n => { TotalTasksCount = n.GetIntValue(); } }, @@ -121,6 +130,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("reprocessedRuns", ReprocessedRuns); writer.WriteDateTimeOffsetValue("scheduledDateTime", ScheduledDateTime); writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); + writer.WriteCollectionOfObjectValues("subjectProcessingResults", SubjectProcessingResults); writer.WriteIntValue("successfulUsersCount", SuccessfulUsersCount); writer.WriteCollectionOfObjectValues("taskProcessingResults", TaskProcessingResults); writer.WriteIntValue("totalTasksCount", TotalTasksCount); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResult.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResult.cs new file mode 100644 index 00000000000..5ce5768f89f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResult.cs @@ -0,0 +1,116 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SubjectProcessingResult : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The date and time when the subject processing completed. Read-only. + public DateTimeOffset? CompletedDateTime { get; set; } + /// The count of tasks that failed for the subject. Read-only. + public int? FailedTasksCount { get; set; } + /// The processingStatus property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.LifecycleWorkflowProcessingStatus? ProcessingStatus { get; set; } + /// The reprocessed runs associated with this subject processing result. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ReprocessedRuns { get; set; } +#nullable restore +#else + public List ReprocessedRuns { get; set; } +#endif + /// The date and time when processing was scheduled. Read-only. + public DateTimeOffset? ScheduledDateTime { get; set; } + /// The date and time when processing started. Read-only. + public DateTimeOffset? StartedDateTime { get; set; } + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject Subject { get; set; } +#endif + /// The subjectType property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectType? SubjectType { get; set; } + /// The task-level processing results for this subject. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? TaskProcessingResults { get; set; } +#nullable restore +#else + public List TaskProcessingResults { get; set; } +#endif + /// The total number of tasks in the workflow. Read-only. + public int? TotalTasksCount { get; set; } + /// The count of tasks that have not yet been processed. Read-only. + public int? TotalUnprocessedTasksCount { get; set; } + /// The workflowExecutionType property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowExecutionType? WorkflowExecutionType { get; set; } + /// The version of the workflow at the time of execution. Read-only. + public int? WorkflowVersion { get; set; } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "completedDateTime", n => { CompletedDateTime = n.GetDateTimeOffsetValue(); } }, + { "failedTasksCount", n => { FailedTasksCount = n.GetIntValue(); } }, + { "processingStatus", n => { ProcessingStatus = n.GetEnumValue(); } }, + { "reprocessedRuns", n => { ReprocessedRuns = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue)?.AsList(); } }, + { "scheduledDateTime", n => { ScheduledDateTime = n.GetDateTimeOffsetValue(); } }, + { "startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, + { "subject", n => { Subject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject.CreateFromDiscriminatorValue); } }, + { "subjectType", n => { SubjectType = n.GetEnumValue(); } }, + { "taskProcessingResults", n => { TaskProcessingResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, + { "totalTasksCount", n => { TotalTasksCount = n.GetIntValue(); } }, + { "totalUnprocessedTasksCount", n => { TotalUnprocessedTasksCount = n.GetIntValue(); } }, + { "workflowExecutionType", n => { WorkflowExecutionType = n.GetEnumValue(); } }, + { "workflowVersion", n => { WorkflowVersion = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("completedDateTime", CompletedDateTime); + writer.WriteIntValue("failedTasksCount", FailedTasksCount); + writer.WriteEnumValue("processingStatus", ProcessingStatus); + writer.WriteCollectionOfObjectValues("reprocessedRuns", ReprocessedRuns); + writer.WriteDateTimeOffsetValue("scheduledDateTime", ScheduledDateTime); + writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); + writer.WriteObjectValue("subject", Subject); + writer.WriteEnumValue("subjectType", SubjectType); + writer.WriteCollectionOfObjectValues("taskProcessingResults", TaskProcessingResults); + writer.WriteIntValue("totalTasksCount", TotalTasksCount); + writer.WriteIntValue("totalUnprocessedTasksCount", TotalUnprocessedTasksCount); + writer.WriteEnumValue("workflowExecutionType", WorkflowExecutionType); + writer.WriteIntValue("workflowVersion", WorkflowVersion); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResultCollectionResponse.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResultCollectionResponse.cs new file mode 100644 index 00000000000..b25956bdd72 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectProcessingResultCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SubjectProcessingResultCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectSummary.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectSummary.cs new file mode 100644 index 00000000000..7769c56a0c0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectSummary.cs @@ -0,0 +1,85 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SubjectSummary : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The number of subjects with at least one failed task in a subject summary. + public int? FailedSubjects { get; set; } + /// The number of failed tasks for subjects in a subject summary. + public int? FailedTasks { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The number of subjects where all tasks succeeded in a subject summary. + public int? SuccessfulSubjects { get; set; } + /// The total number of subjects in a subject summary. + public int? TotalSubjects { get; set; } + /// The total tasks of subjects in a subject summary. + public int? TotalTasks { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public SubjectSummary() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "failedSubjects", n => { FailedSubjects = n.GetIntValue(); } }, + { "failedTasks", n => { FailedTasks = n.GetIntValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "successfulSubjects", n => { SuccessfulSubjects = n.GetIntValue(); } }, + { "totalSubjects", n => { TotalSubjects = n.GetIntValue(); } }, + { "totalTasks", n => { TotalTasks = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("failedSubjects", FailedSubjects); + writer.WriteIntValue("failedTasks", FailedTasks); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteIntValue("successfulSubjects", SuccessfulSubjects); + writer.WriteIntValue("totalSubjects", TotalSubjects); + writer.WriteIntValue("totalTasks", TotalTasks); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectType.cs new file mode 100644 index 00000000000..909d08fe173 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/SubjectType.cs @@ -0,0 +1,25 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + [Flags] + #pragma warning disable CS1591 + public enum SubjectType + #pragma warning restore CS1591 + { + [EnumMember(Value = "user")] + #pragma warning disable CS1591 + User = 1, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue = 2, + #pragma warning restore CS1591 + [EnumMember(Value = "provisioningObject")] + #pragma warning disable CS1591 + ProvisioningObject = 4, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/TaskProcessingResult.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/TaskProcessingResult.cs index c6cefbd201d..87bd855bdb9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/TaskProcessingResult.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/TaskProcessingResult.cs @@ -51,6 +51,14 @@ public partial class TaskProcessingResult : global::Microsoft.Graph.PowerShell.I #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject Task { get; set; } +#endif + /// The workflow subject associated with this task processing result. Populated for extensibility and provisioning workflows. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? WorkflowSubject { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject WorkflowSubject { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -78,6 +86,7 @@ public override IDictionary> GetFieldDeserializers() { "startedDateTime", n => { StartedDateTime = n.GetDateTimeOffsetValue(); } }, { "subject", n => { Subject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue); } }, { "task", n => { Task = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue); } }, + { "workflowSubject", n => { WorkflowSubject = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject.CreateFromDiscriminatorValue); } }, }; } /// @@ -96,6 +105,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("startedDateTime", StartedDateTime); writer.WriteObjectValue("subject", Subject); writer.WriteObjectValue("task", Task); + writer.WriteObjectValue("workflowSubject", WorkflowSubject); } } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Workflow.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Workflow.cs index 1c28a033290..d11499a70df 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Workflow.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/Workflow.cs @@ -63,6 +63,14 @@ public partial class Workflow : global::Microsoft.Graph.PowerShell.Identity.Gove #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSetting Settings { get; set; } +#endif + /// Per-subject workflow execution results. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SubjectProcessingResults { get; set; } +#nullable restore +#else + public List SubjectProcessingResults { get; set; } #endif /// Represents the aggregation of task execution data for tasks within a workflow object. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,6 +131,7 @@ public override IDictionary> GetFieldDeserializers() { "quarantineDetails", n => { QuarantineDetails = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.QuarantineDetails.CreateFromDiscriminatorValue); } }, { "runs", n => { Runs = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run.CreateFromDiscriminatorValue)?.AsList(); } }, { "settings", n => { Settings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSetting.CreateFromDiscriminatorValue); } }, + { "subjectProcessingResults", n => { SubjectProcessingResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, { "taskReports", n => { TaskReports = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskReport.CreateFromDiscriminatorValue)?.AsList(); } }, { "userProcessingResults", n => { UserProcessingResults = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.UserProcessingResult.CreateFromDiscriminatorValue)?.AsList(); } }, { "version", n => { Version = n.GetIntValue(); } }, @@ -145,6 +154,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("quarantineDetails", QuarantineDetails); writer.WriteCollectionOfObjectValues("runs", Runs); writer.WriteObjectValue("settings", Settings); + writer.WriteCollectionOfObjectValues("subjectProcessingResults", SubjectProcessingResults); writer.WriteCollectionOfObjectValues("taskReports", TaskReports); writer.WriteCollectionOfObjectValues("userProcessingResults", UserProcessingResults); writer.WriteIntValue("version", Version); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowBase.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowBase.cs index c1aab6923b0..83f6bdcfb28 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowBase.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowBase.cs @@ -80,6 +80,8 @@ public partial class WorkflowBase : IAdditionalDataHolder, IParsable #else public string OdataType { get; set; } #endif + /// The targetSubjectType property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectType? TargetSubjectType { get; set; } /// The tasks in the workflow. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -131,6 +133,7 @@ public virtual IDictionary> GetFieldDeserializers() { "lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User.CreateFromDiscriminatorValue); } }, { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "targetSubjectType", n => { TargetSubjectType = n.GetEnumValue(); } }, { "tasks", n => { Tasks = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject.CreateFromDiscriminatorValue)?.AsList(); } }, }; } @@ -153,6 +156,7 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lastModifiedBy", LastModifiedBy); writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("targetSubjectType", TargetSubjectType); writer.WriteCollectionOfObjectValues("tasks", Tasks); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowExecutionType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowExecutionType.cs index 108035ea41b..4e6a08f4b70 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowExecutionType.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowExecutionType.cs @@ -28,5 +28,9 @@ public enum WorkflowExecutionType #pragma warning disable CS1591 Preview, #pragma warning restore CS1591 + [EnumMember(Value = "extensibilityOnDemand")] + #pragma warning disable CS1591 + ExtensibilityOnDemand, + #pragma warning restore CS1591 } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowSubject.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowSubject.cs new file mode 100644 index 00000000000..f77ee63f81f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/IdentityGovernance/WorkflowSubject.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class WorkflowSubject : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public WorkflowSubject() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/List.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/List.cs index b07bc930dba..b9da8a928dc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/List.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Identity.Governan #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ListItem.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ListItem.cs index 84622fffa12..07966e3c0f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Identity.Gove #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 1aae50bd8f2..8f2d67d9304 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..6ab593ce596 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index e58c6f61095..87ff5392f57 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 69bba138ebc..31b0edd59e0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs index d5c4173c199..c8c818817e7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoleAssignment.cs @@ -67,6 +67,14 @@ public partial class UnifiedRoleAssignment : global::Microsoft.Graph.PowerShell. #nullable restore #else public string PrincipalId { get; set; } +#endif + /// The principalOrganizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PrincipalOrganizationId { get; set; } +#nullable restore +#else + public string PrincipalOrganizationId { get; set; } #endif /// The roleDefinition the assignment is for. Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -109,6 +117,7 @@ public override IDictionary> GetFieldDeserializers() { "directoryScopeId", n => { DirectoryScopeId = n.GetStringValue(); } }, { "principal", n => { Principal = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue); } }, { "principalId", n => { PrincipalId = n.GetStringValue(); } }, + { "principalOrganizationId", n => { PrincipalOrganizationId = n.GetStringValue(); } }, { "roleDefinition", n => { RoleDefinition = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoleDefinition.CreateFromDiscriminatorValue); } }, { "roleDefinitionId", n => { RoleDefinitionId = n.GetStringValue(); } }, }; @@ -128,6 +137,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("directoryScopeId", DirectoryScopeId); writer.WriteObjectValue("principal", Principal); writer.WriteStringValue("principalId", PrincipalId); + writer.WriteStringValue("principalOrganizationId", PrincipalOrganizationId); writer.WriteObjectValue("roleDefinition", RoleDefinition); writer.WriteStringValue("roleDefinitionId", RoleDefinitionId); } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoot.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoot.cs new file mode 100644 index 00000000000..a9e879c3d9f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/UnifiedRoot.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.Governance.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class UnifiedRoot : global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// Represents the unified (vNext) access review decisions on an instance of a review. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Decisions { get; set; } +#nullable restore +#else + public List Decisions { get; set; } +#endif + /// Represents the unified (vNext) template and scheduling for an access review. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Definitions { get; set; } +#nullable restore +#else + public List Definitions { get; set; } +#endif + /// Represents the unified (vNext) instance of a review. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Instances { get; set; } +#nullable restore +#else + public List Instances { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "decisions", n => { Decisions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem.CreateFromDiscriminatorValue)?.AsList(); } }, + { "definitions", n => { Definitions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition.CreateFromDiscriminatorValue)?.AsList(); } }, + { "instances", n => { Instances = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("decisions", Decisions); + writer.WriteCollectionOfObjectValues("definitions", Definitions); + writer.WriteCollectionOfObjectValues("instances", Instances); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/User.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/User.cs index 5fa1a762a9b..9388d0f26eb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/User.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Identity.Governan #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Identity.Governance/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Identity.Governance/wrapper/v1.0/Client/Models/UserActivityType.cs index dbcdc19c91d..05ebd713dc5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Identity.Governance/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Identity.Governance/wrapper/v1.0/Client/kiota-lock.json b/src/Identity.Governance/wrapper/v1.0/Client/kiota-lock.json index 350f2d14145..600d2fea5ba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Identity.Governance/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "DE36BC0C54F8E59293178CE23EAFE8315284EE565A4CF865E1B9C855941DDAD424FE12A6AA7806357ED8C7E564445CD9EB4F32E3656E0553F640F35CB0021073", + "descriptionHash": "E583B2A1684E48611DE922492AB2C8370C899F77795263F669E31C854381C14E5B8DD0908C6E4AF6AA30CC812D69BC58AD35647A22B11E157984143B35A972FF", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Identity.Governance.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/AddMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/AddMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index c1b78074d0f..8a9e1d96ea4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/AddMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/AddMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement.g.cs index 3cfe8b371f4..a2b5bd8c14e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance.g.cs index 1acba195c06..ac2f5a4cd77 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementAcceptanceId : AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptanceCount.g.cs index 9528e33db10..2e8c7ea1123 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptanceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_Get.g.cs index de91d0da3c5..98ea273acb4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_List.g.cs index cb4969d1ee8..a7ba3c9c44e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementAcceptance_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFile.g.cs index fbce7a5b07c..64279b4b7e5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFile.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileCount.g.cs index 15b20325a12..62f1e598144 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization.g.cs index 56b1020371a..dd2e58cd3c4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileLocalizationId : AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationCount.g.cs index af7e772260b..ca6714b5f48 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion.g.cs index 2f4620d28ac..53af35a3812 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileVersionId : AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersionCount.g.cs index 3d2c78a5578..46ebb79ab1b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_Get.g.cs index d239ecb3a36..06cceb9588f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_List.g.cs index a117b0df82f..40ec0755840 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalizationVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_Get.g.cs index ae01e916855..fef3d90a98c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_List.g.cs index 6b8e2037573..10682b7d981 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileLocalization_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion.g.cs index a9e13b277a9..4140776389c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileVersionId : AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersionCount.g.cs index 26244be225b..e6daea8dca8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_Get.g.cs index 2117414e08a..9cefff29e40 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_List.g.cs index 15c065c0818..b95755947f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreementFileVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_Get.g.cs index 9019ff414ba..9cdba5e99f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_Get.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_List.g.cs index 9852e1b5949..0fad07673cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgAgreement_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage.g.cs index 6399b748020..65ac3f94a05 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageApplicablePolicyRequirement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageApplicablePolicyRequirement.g.cs index abb5b5937f7..0e215c47f7b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageApplicablePolicyRequirement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageApplicablePolicyRequirement.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalCount.g.cs index b2db5e2cb48..ed01bb732bb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs index c623e5f4750..add34a8d1da 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApprovalStageId : ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStageCount.g.cs index 9e9681150a4..5c6a8b0a49d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_Get.g.cs index 4af6e18c92f..a3c57b57e76 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_List.g.cs index f62e2bb198b..fceef7c9f9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentApprovalStage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs index 134e964497d..22b1abd41b8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageAssignmentPolicyId : AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_Get.g.cs index 5b6b35121cc..6e81f57d5a2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_List.g.cs index 5f5099ecb05..43835a078b7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageAssignmentPolicy_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCatalog.g.cs index b6ca5ff2b93..f9682b65682 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCatalog.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCount.g.cs index 65043b0d1d3..af5fbaf3c20 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackage.g.cs index 75a90c129b6..94cb9e8de4a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackage.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs index f2184e7d0a8..2a1eb631e41 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroup.g.cs index dbb17b965a7..404cefbb2a0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroup.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs index 09ef674e583..e6238bfa156 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith.g.cs index f572aee6e8f..dcd6e10f725 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageId1 : AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_Get.g.cs index 7204f6fd8d6..4cc783b5824 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_List.g.cs index 38d7e72068d..dc90d565038 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageIncompatibleWith_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion.g.cs index 396798491f7..4135868fe9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageSuggestionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionAccessPackage.g.cs index 376ef315c30..8fee2dec93a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionAccessPackage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSuggestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionCount.g.cs index 2ad16731af9..16b60a73c9c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_Get.g.cs index 2e859924780..aba193c78de 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSuggestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_List.g.cs index e1fb35ee8ce..0f15f78f013 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackageSuggestion_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_Get.g.cs index e450cf9317f..1982aa0bd97 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_List.g.cs index 081374c4b96..d2b42ea9448 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAccessPackage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment.g.cs index 183ca378772..fbc4a4f289f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageAssignmentId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentAdditional.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentAdditional.g.cs index c0907f8474b..63d6762604d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentAdditional.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentAdditional.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentCount.g.cs index 042e27800be..5ae5e5c8a86 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy.g.cs index 478914419f3..e10e298fdf4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageAssignmentPolicyId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyAccessPackage.g.cs index b20f5b5c15f..9be726b81b8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyAccessPackage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCatalog.g.cs index b50f6cbb47d..2928a6413f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCatalog.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCount.g.cs index b69d47e5d61..58d57f226b4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs index fb0bafe8476..dd1c9977827 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomExtensionStageSettingId : AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCount.g.cs index 1ccee879bb2..73616a6c4f0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCustomExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCustomExtension.g.cs index 04716be7fa5..1788253bc32 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCustomExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSettingCustomExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomExtensionStageSettingId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_Get.g.cs index f420f30ce0c..c0c444d42bd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomExtensionStageSettingId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_List.g.cs index 186fa51c1b1..dd89b235b8d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion.g.cs index f8b3b256fad..bea71cd81a5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageQuestionId : AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestionCount.g.cs index 626eaed0bf8..6306c4531f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_Get.g.cs index 84d385a494a..cdf1b5d7c03 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageQuestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_List.g.cs index 8433fd9419c..9335337598a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicyQuestion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_Get.g.cs index e0a7914fc61..ec85b9e9cbe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_List.g.cs index 26faa70047b..ae41635ff27 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest.g.cs index dde019659b5..958ac8eafc5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageAssignmentRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequestCount.g.cs index 7c5a8779a98..a51ec7556dd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_Get.g.cs index ead8750acf6..b7c46780740 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_List.g.cs index df7e7b92057..bfe0948f0b6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignmentRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_Get.g.cs index 93ad6868398..85883bb2aee 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_List.g.cs index 7845bbb24c8..7b7c1c4ee87 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage.g.cs index a1a1a3622f3..ab4f535d46b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AvailableAccessPackageId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageCount.g.cs index b361087f1b2..2b16b7fa175 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope.g.cs index 7b22bb91f95..4c520812b25 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleScopeId : AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScopeCount.g.cs index f9cee35062a..6733cbc9feb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_Get.g.cs index dbf1917cdac..83bb1074837 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_List.g.cs index bef7bba43ca..8680fa3a12c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackageResourceRoleScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_Get.g.cs index f885ea3f8dc..b2681a4571f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_List.g.cs index b116664e792..fa7f86270e1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementAvailableAccessPackage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog.g.cs index 5462c1fd784..2e8c63716cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageCatalogId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogAccessPackageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogAccessPackageCount.g.cs index b7a67a38b61..142ead30143 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogAccessPackageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogAccessPackageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCount.g.cs index d2f97a1a97b..549d15b0f67 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs index 7c89e95457e..6e38f15943f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomCalloutExtensionId : AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtensionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtensionCount.g.cs index ec766593dcc..9a1055eabc9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtensionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_Get.g.cs index 8b0266fd717..26d49cc5842 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_List.g.cs index ee9526cd35c..6defc6bd116 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogCustomWorkflowExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource.g.cs index c104e95a708..56a8e976b3d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceId : AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceCount.g.cs index 8473420fb56..07e580109b9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceEnvironment.g.cs index 60ae7d6bc34..2b46f68ed8f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole.g.cs index 1cd323c8df5..993e45097cc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleCount.g.cs index 88bf78647be..d4f58796d96 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResource.g.cs index 614fded7fb3..57d5737319c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceEnvironment.g.cs index e71a26aab36..326a7e05889 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs index fc434fc21e3..d24fc5baea9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeCount.g.cs index f95120acf96..3300e0172a9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs index 5344c9519c8..fa72b443c1c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceEnvironment.g.cs index f2db878d710..bfad6650c33 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs index 481e25c73ee..421fcc4e5ff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId1 : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRoleCount.g.cs index fdeefa83ea4..2df2d0cc7ce 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRoleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_Get.g.cs index 3453ff37730..af16ed2f79b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_List.g.cs index 8b527ed3c40..2396a889b11 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_Get.g.cs index 9aea646d83a..6800b270e77 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_List.g.cs index 283b0e08561..64df9e458e7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRoleResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_Get.g.cs index f3f13fdcf39..5dfd5aa5d22 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_List.g.cs index a1a9a9e5e72..b5eee4bc03f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope.g.cs index ab230f6957e..e9314ae5b35 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeCount.g.cs index 22e76c6d3a3..82b0f58d93b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResource.g.cs index a3b4d530db9..43b8202529d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceEnvironment.g.cs index 701c537da37..5573df7b25b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs index cbd5b855881..88bf2f37cad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleCount.g.cs index da94a34b1c0..9d185ba1185 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs index 986e8b9f5d5..7e2eeb73e64 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceEnvironment.g.cs index 513e335796a..16ca27c051b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceEnvironment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs index 7ddcd431b7a..fe7a696de44 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId1 : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScopeCount.g.cs index 07536aafc98..fdd14c0c189 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScopeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_Get.g.cs index f85aacfaa2d..7ce625865b8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_List.g.cs index 5f844e848a0..8339dcf94a7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_Get.g.cs index b415962fcf3..ab6d77482e6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_List.g.cs index f3ce02d20cf..2cacfd7fa81 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScopeResourceRole_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_Get.g.cs index 899e03378c7..f39fa85f178 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_List.g.cs index 0b022f56938..572a706f3be 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_Get.g.cs index ff5f324c311..828bd9f4107 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_List.g.cs index 8e9858d4085..3997fa4bdb1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalogResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_Get.g.cs index fd779202d79..3eb295960fd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_List.g.cs index bb1048f2169..c8d6df6634d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementCatalog_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization.g.cs index bf32c7869b1..ab49e513441 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConnectedOrganizationId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationCount.g.cs index ba2a0e65e1f..ec2efd26e1c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsor.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsor.g.cs index 113bee21619..8e98c9fb0f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsor.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsor.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs index 7b3dd4e6001..aa1f8100ecb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorCount.g.cs index b2e4c1cc2e8..70da50bfead 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationExternalSponsorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsor.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsor.g.cs index 09063a36ac9..4e90e6c9fb4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsor.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsor.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs index 9469268e925..ef26b295d40 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorCount.g.cs index 529e83fd1c8..6991039d316 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganizationInternalSponsorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_Get.g.cs index 316e2870a5c..447f2c8c500 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_List.g.cs index 24cd03315af..c9019df0a4a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementConnectedOrganization_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration.g.cs index f5238faceb6..45e5fd93709 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ControlConfigurationId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfigurationCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfigurationCount.g.cs index 891b4b7230d..027e4f0dbe7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfigurationCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_Get.g.cs index 765bd049a1e..909e666ec87 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ControlConfigurationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_List.g.cs index 1938733f6d5..1a89162c5ec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementControlConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource.g.cs index 1f2dec5d0d3..d93e6ea926a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceCount.g.cs index e548aa56b63..1659231c57b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment.g.cs index debc5c788b5..3fd8b082fe9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceEnvironmentId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentCount.g.cs index 444f639b1be..981ec7d0667 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource.g.cs index 921b964c22a..534a0456194 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceId : AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceCount.g.cs index 2fdc2890208..a49914a86dd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole.g.cs index 39e168b871d..bf71f62d77c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleCount.g.cs index f8d4070749d..7d10b600c63 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs index eed34a1c140..ecc5947bc57 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceEnvironment.g.cs index 37ca7613865..731910eb1d1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs index b15b7f64b51..cc4a7339539 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeCount.g.cs index 156ec0e969c..06067c71257 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs index e1fecfe3d65..2b3763a6214 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceEnvironment.g.cs index 30be0253106..bfb527e70b3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceEnvironment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_Get.g.cs index 6a54becf035..d6327d689b3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_List.g.cs index 57fb67a131c..f31e211d996 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_Get.g.cs index d3c2665f67a..be506b01b28 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_List.g.cs index 234d6d14d13..7f326577d27 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceRole_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope.g.cs index 22ec8b2f08b..210ab45ce2a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeCount.g.cs index 1e1b8b1d30d..4c34aaf07ed 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs index bdd87bbb8b7..9fba4f96b59 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceEnvironment.g.cs index 563f135329e..028ba4f94a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs index adf45b50164..2c1b1550339 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleCount.g.cs index 7382a30a76b..01d0581c756 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs index 0cf9356dea7..4e4bf237a6a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceEnvironment.g.cs index c5e2d248097..e74547b7356 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceEnvironment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_Get.g.cs index 7b4b95daa87..c9bd1a11add 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_List.g.cs index 8ba7cd13389..69bebda4f36 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_Get.g.cs index a155e11bec9..7dcd061f068 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_List.g.cs index 4e0d382acb2..233f04228c1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_Get.g.cs index 62b0135710a..be9184843e0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_List.g.cs index 5d51b6de73b..9caf1e9ff5a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironmentResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_Get.g.cs index a074bb3b726..33ff9668065 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_List.g.cs index d9de85a0290..6765aca5e58 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceEnvironment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest.g.cs index 54d3914e6ff..b3ecf238ba1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalog.g.cs index 898a69c8188..ecb20f05fd4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalog.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage.g.cs index 75faee04e34..59ace555ad7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackageCount.g.cs index 386ff27ab2e..16c7d35fc86 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_Get.g.cs index 050373c7f79..7225dd94318 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_List.g.cs index 0bd9af65673..b4cd12dc468 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogAccessPackage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs index a902b5fcb82..c08dfb0dc91 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomCalloutExtensionId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtensionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtensionCount.g.cs index a2f5360ef2a..2b0c01146ba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtensionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_Get.g.cs index 6d21136ec44..f5783622c50 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_List.g.cs index 6ad3724a0ce..e370d723c40 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource.g.cs index fb3a6117e65..e0f98cbbbdd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceCount.g.cs index 72d012a06aa..f8012c3f58a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceEnvironment.g.cs index 28f1628b57d..678dbf2a8cd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs index c71c83f7183..4c69d071c48 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleCount.g.cs index 8e924f7813d..e9e4f31f68a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs index 4d68c26c2a2..04ed48cf22e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceEnvironment.g.cs index d9f911e82ad..217c3d439cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs index 017a877f228..e4dbf6b79f9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeCount.g.cs index 7d0abe1e40c..ac1c7ecad15 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs index 1774c6abbe7..518ede1159e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceEnvironment.g.cs index bf62fc4e09a..beb78a4a87e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs index 6080ebf633f..06791e33b18 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId1 : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRoleCount.g.cs index 49a63ba8415..1da275e4128 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRoleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_Get.g.cs index 97451350d67..17ae7ca95d8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_List.g.cs index 6c7210ae61d..284b963371a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_Get.g.cs index abf38496555..811fffca992 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_List.g.cs index ed43a7e7d19..c1fcb5f2dcd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_Get.g.cs index 6f67c7e3df1..60e048e4885 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_List.g.cs index 0afd99adc79..b1e3e2698e3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs index 943fd37a752..06a0b7a38c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeCount.g.cs index faa7e9adf0c..ee96bdcfad2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs index 6717b8a056e..421a7e2d160 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceEnvironment.g.cs index d59a3edc25a..92085ae81b8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs index f204eabe2e0..46cb25ddbaa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleCount.g.cs index e7fc11154bc..c323bad30a8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs index 22108a218a9..b829e61ac09 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceEnvironment.g.cs index 8ecfe9d0d80..165eb72844c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceEnvironment.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs index 709922cfab9..04b46f0a8a7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId1 : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScopeCount.g.cs index 11608e3ff5d..ba6c066fd2d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScopeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_Get.g.cs index 5b1f73fc556..e309b43954f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_List.g.cs index d0006157c70..7aa6bfc3b78 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_Get.g.cs index 44c2c1f6eac..4662cb150ca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_List.g.cs index 144db4f4a52..b4b01b8532d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_Get.g.cs index 2fa72618333..249010b8756 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_List.g.cs index 9fdb9341845..eb4838450ff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_Get.g.cs index f9e70736e4d..db02f8985d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_List.g.cs index 1343bdd22ec..f04c77a38cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCatalogResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCount.g.cs index 8ee620e8e54..5b6205cb403 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResource.g.cs index 3077185062e..2521ccb3bc9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResource.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceEnvironment.g.cs index da29dbd9032..835e6a25e37 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceEnvironment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole.g.cs index d6753141457..2bb904a1048 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleCount.g.cs index 5f5eb7c415c..0825ba4e058 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResource.g.cs index 59179e92d08..5308f128fb6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceEnvironment.g.cs index ba3e32171ad..a2098e73e76 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs index 8468dae327f..fcc8a2509f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeCount.g.cs index fe60367e41d..e8004d1e9ae 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs index 02568b469fb..472e9e0276b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResourceEnvironment.g.cs index 3f8b34ea77f..a6fda9433b9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_Get.g.cs index 08acbb66aae..b43c076e6ce 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_List.g.cs index 9861e57cb3f..06365f40239 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRoleResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_Get.g.cs index 34e0648cd95..eb82ece0b62 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_List.g.cs index 80bf65732fc..c3c7133f05f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope.g.cs index 8cb2a6ca02a..1b03e35ae72 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeCount.g.cs index 8114d017d0e..a9264a2ca78 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResource.g.cs index a8b6916c6de..137cff8b14d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceEnvironment.g.cs index 713d8768fb6..400f419e88c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs index 56ae834e49e..1492f7df819 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleCount.g.cs index 85f316b9d48..35e88c88ab2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs index ef8bfdf3db7..ab332bdb40d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResourceEnvironment.g.cs index c66235dfca3..b33110138a0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRoleResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_Get.g.cs index 42690269188..2451b774d8a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_List.g.cs index 4583d340402..f2534a88666 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScopeResourceRole_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_Get.g.cs index d7241c5e657..0f8c8341e5e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_List.g.cs index 8a62f205edd..81bf58bc511 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequestResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_Get.g.cs index 98fc873e17d..ed646981360 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_List.g.cs index 6df851a5b05..5a25cf03aaa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole.g.cs index c3227bfa757..ab34b8422e3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleCount.g.cs index e4a66cfdd57..1e0dbe49887 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResource.g.cs index 74cb3068f3a..2ff04071b59 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceEnvironment.g.cs index 92dc22f4ef6..dc5f04e4ef8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope.g.cs index 89e09a424e1..150be137164 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeCount.g.cs index 42e4f1d7066..446dbe03d51 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResource.g.cs index 3a7c62fe4b2..956f5ed22a8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResourceEnvironment.g.cs index efe831b6a37..2c86f654e8f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScopeResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_Get.g.cs index d83d919f0bc..25f84167232 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_List.g.cs index 35d2da43c7f..9a2a0156b54 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope.g.cs index 487899f03f8..add7fb5ea9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleScopeId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeCount.g.cs index dbcdd4c877f..e2551f533f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResource.g.cs index f878a369d0f..cd6b8f4e01d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResource.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceEnvironment.g.cs index bd85f30bb22..15b566e14ec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceEnvironment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole.g.cs index 03c4408253d..00be3a39877 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleCount.g.cs index f74f8d3cf26..a2dd088fdad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs index 331918dc6bd..afeb1dfd2b0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceEnvironment.g.cs index 8e9cb109041..b8834d7f40a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs index 892363b30b8..6cd15ba5c0a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScopeCount.g.cs index 7cd0e34ef64..9d3aa618e66 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScopeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_Get.g.cs index 6f5ab8767cc..3f2a5ce5b92 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_List.g.cs index 2a12cc1e913..e1ddf4a9a73 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_Get.g.cs index a7a64a15cef..2ad44d9e35d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_List.g.cs index 9b9362f550f..0bf6fef2269 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope.g.cs index 80f0af81138..5eafcaa6212 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScopeCount.g.cs index 5c687d6c0da..d8e0166d77e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_Get.g.cs index 93875b311a4..0f8f6cdf4f4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_List.g.cs index d72be7501db..f14198244f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRole.g.cs index f5007a22f58..eedcc390d28 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRole.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResource.g.cs index 0777a9e7e6a..c466b804901 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResource.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceEnvironment.g.cs index 0a7d11e2e05..29ba2c97f2e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceEnvironment.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs index 6310aa67a64..1c09517d7f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRoleCount.g.cs index 63f341d1c8f..dd41feb0ae2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRoleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_Get.g.cs index 65d1162dba1..3436cd7f84a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_List.g.cs index a0fce73a1ba..755b3dce09f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs index 938dff1a2df..d147f67e839 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeCount.g.cs index 251700d66e7..06317e5d441 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs index 76e81f87ec9..c3f9842ad55 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceEnvironment.g.cs index f6949eaea21..f741fef0154 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs index b81f8729626..e27182f2610 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRoleCount.g.cs index aa1c60d6c69..8cf3673d2cf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRoleCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_Get.g.cs index 8ab7a72529c..ac6fda0412d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_List.g.cs index 0fde2b8cbc7..23ccf85de9c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_Get.g.cs index a80eb2fcb9f..bf38eb1148f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_List.g.cs index 3721b5e78be..6e962a3100b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScopeRoleResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_Get.g.cs index f33fd666a71..cc6851fdc91 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_List.g.cs index bf75ac58c51..5326fcdf293 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRoleScope_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_Get.g.cs index cabe3e6f4cb..352d67a81c9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_List.g.cs index 4634f451204..bf34fde9737 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceRole_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope.g.cs index 633fc6d64c3..99633672158 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId : AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeCount.g.cs index 9310a7b84a9..3039396ed02 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResource.g.cs index b6bafb08037..4c456651a66 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceEnvironment.g.cs index 63272437455..5dd8ba21fd4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceEnvironment.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole.g.cs index e983a5af07e..f68a8e16bd8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId : AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleCount.g.cs index 7b244181b4d..9be7eedefa3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResource.g.cs index dce5503f974..a115fe5b0c8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResource.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResourceEnvironment.g.cs index 5c31abf0c76..1e936fdde89 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRoleResourceEnvironment.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_Get.g.cs index e1831d7e0ce..48ed7bbed74 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_List.g.cs index b73dff35cb5..1ee34bd786c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScopeResourceRole_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_Get.g.cs index 959252565ae..ac9abe87db7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_List.g.cs index 781b6a43f6a..b983e631c72 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResourceScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_Get.g.cs index 027132a8609..2be45ff15d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_List.g.cs index 2288aa5c157..b50e01f8c96 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementResource_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSetting.g.cs index 71f7a6a67ba..469b403c992 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject.g.cs index 2c9d7d94a95..f65d83b3b88 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageSubjectId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectConnectedOrganization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectConnectedOrganization.g.cs index 281f2394176..fafe2451e00 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectConnectedOrganization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectConnectedOrganization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSubjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectCount.g.cs index fd765240268..e49abc61d02 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubjectCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_Get.g.cs index 119fd61b959..9cbdf769f39 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSubjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_List.g.cs index 37bdd091db4..17de2f8f1c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgEntitlementManagementSubject_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition.g.cs index 8c6fec56d37..ae2e3f07bb5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewScheduleDefinitionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionCount.g.cs index e4f2519bb9a..96204b7987e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionFilterByCurrentUserWithOn.g.cs index 9f520165715..0d08b82ea68 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs index e51cb3a1198..d46f1ddae5c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceId : AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs index 2da27f1e704..c344691f61a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewReviewerId : AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewerCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewerCount.g.cs index 91f215b5b0f..5266bed9a23 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewerCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewerCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_Get.g.cs index bfa01ac7fd8..7c22267b726 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewReviewerId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_List.g.cs index a298c3da6f0..9aa41e3ac80 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceCount.g.cs index 4962b681e02..46c668e570f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index 655392aee57..016c020f6a1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionCount.g.cs index 7c25c87b5bd..acec1de21d4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs index 34cef9d44db..fd0da99016a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs index 1afa5166912..dda96607b86 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsightCount.g.cs index ea0f0a1596a..621b28f5d5e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsightCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsightCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_Get.g.cs index fbaeff5b0c8..4ba197ed1f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_List.g.cs index ec49ffce204..6e8aa143ed2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_Get.g.cs index 32e5c29fd7e..c29849a1f90 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_List.g.cs index 17d54a379da..2bfc820ed47 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceFilterByCurrentUserWithOn.g.cs index b18e381e38c..11936812d42 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceFilterByCurrentUserWithOn.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs index d44c0bb85a1..fa258fe8871 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewStageId : AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageCount.g.cs index 260dde0ac7a..4f623ef53dd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs index f004fa1ce73..9f5a9669330 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionCount.g.cs index 7b6565068f3..e8402e6be5f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs index 5d70d1a7fa6..da6cea20546 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs @@ -109,7 +109,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs index 64a0743b01d..697df426f33 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_Get.g.cs index 2cca4c6ff35..b3f70e338f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_List.g.cs index 4d3617bfff9..58f4fe74b4a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_Get.g.cs index d563bf91362..60136450391 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_List.g.cs index 568ef62084b..ebfe74b8d3e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs index 0f32541281b..97b51a67a68 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_Get.g.cs index a0e1e566dae..34236f9111c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_List.g.cs index 6223ac0c309..12e5554027b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstanceStage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_Get.g.cs index 46eff26f2c7..afb009abb47 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_List.g.cs index 5fa48e264c1..4ac181b0068 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinitionInstance_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_Get.g.cs index 2a9252c1021..0061ace6a51 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_List.g.cs index bef04bbd470..775c61df71e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs index 90a473e1ce0..0894b592ff0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewHistoryDefinitionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionCount.g.cs index 0f1cc245d26..63b5deae7ea 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs index 9ff6bfe90d3..b39ff8b929b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewHistoryInstanceId : AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount.g.cs index df4eece7960..9a2e007df90 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get.g.cs index 0c762db1d5c..960f1786495 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List.g.cs index 81a073874b5..aa9846cce80 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinitionInstance_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_Get.g.cs index 93149877c10..1196a8e3a98 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_List.g.cs index d9d3b148c7a..934efbf504c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewHistoryDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnified.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnified.g.cs new file mode 100644 index 00000000000..289a6f8cd95 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnified.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnified")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot))] + public class GetMgIdentityGovernanceAccessReviewUnifiedCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs new file mode 100644 index 00000000000..a33207bc277 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecision", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDecision_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDecision_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDecision_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDecision_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionCount.g.cs new file mode 100644 index 00000000000..fd564cff5d1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..44be7d56680 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,113 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = true, Position = 0, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs new file mode 100644 index 00000000000..e7275363d01 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount.g.cs new file mode 100644 index 00000000000..f3ccd35d22e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsightCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get.g.cs new file mode 100644 index 00000000000..8d822a4eb4b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List.g.cs new file mode 100644 index 00000000000..efdcf35cb7c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecisionInsight_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_Get.g.cs new file mode 100644 index 00000000000..c42529d11bc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecision_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecision_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_List.g.cs new file mode 100644 index 00000000000..839e53f6822 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDecision_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDecision_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDecision_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Decisions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs new file mode 100644 index 00000000000..a791f74a832 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinition", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinitionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinition_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewScheduleDefinitionId : null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCount.g.cs new file mode 100644 index 00000000000..91e771d537b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..0dea07c9a6d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,113 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = true, Position = 0, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs new file mode 100644 index 00000000000..2d619908b22 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceId : AccessReviewScheduleDefinitionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..7974a5d46f4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewReviewerId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount.g.cs new file mode 100644 index 00000000000..86be8aa5ef0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get.g.cs new file mode 100644 index 00000000000..a70f1c2b6b9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List.g.cs new file mode 100644 index 00000000000..e115e4d782d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount.g.cs new file mode 100644 index 00000000000..f8073092659 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs new file mode 100644 index 00000000000..3ab09fe95d7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount.g.cs new file mode 100644 index 00000000000..8435e7f91d5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..276807d1fd0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,118 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewScheduleDefinition%2Did", AccessReviewScheduleDefinitionId }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..8531864c8cb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount.g.cs new file mode 100644 index 00000000000..83b7b620a21 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get.g.cs new file mode 100644 index 00000000000..33ef05502b0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List.g.cs new file mode 100644 index 00000000000..e91cef81216 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get.g.cs new file mode 100644 index 00000000000..15de93fe08f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List.g.cs new file mode 100644 index 00000000000..e0962665075 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..43b37621c41 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,115 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewScheduleDefinition%2Did", AccessReviewScheduleDefinitionId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs new file mode 100644 index 00000000000..14bb8ad1dfa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewStageId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount.g.cs new file mode 100644 index 00000000000..a834459bcb1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs new file mode 100644 index 00000000000..f7914101c0b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount.g.cs new file mode 100644 index 00000000000..55c85b0cfd1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..60f70a156e6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,121 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewScheduleDefinition%2Did", AccessReviewScheduleDefinitionId }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "accessReviewStage%2Did", AccessReviewStageId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..2df92cf004b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get or Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount.g.cs new file mode 100644 index 00000000000..3109f26f521 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get.g.cs new file mode 100644 index 00000000000..d48e99e217c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List.g.cs new file mode 100644 index 00000000000..52b6962e06a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get.g.cs new file mode 100644 index 00000000000..01b7301d6f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List.g.cs new file mode 100644 index 00000000000..7c53f0d5d2c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..7f130530ec1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,118 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewScheduleDefinition%2Did", AccessReviewScheduleDefinitionId }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get.g.cs new file mode 100644 index 00000000000..51883bf1338 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List.g.cs new file mode 100644 index 00000000000..40f1bdf66e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get.g.cs new file mode 100644 index 00000000000..3e0e4d827c3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List.g.cs new file mode 100644 index 00000000000..183902eb6e2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_Get.g.cs new file mode 100644 index 00000000000..50083d99830 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinition_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinition_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_List.g.cs new file mode 100644 index 00000000000..1ab0d19e7ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedDefinition_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/definitions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedDefinition_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition))] + public class GetMgIdentityGovernanceAccessReviewUnifiedDefinition_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinitionCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Definitions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs new file mode 100644 index 00000000000..6ec44d0b3d7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstance", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstance_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstance_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstance_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstance_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceId : null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..6758ebe139f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewReviewerId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount.g.cs new file mode 100644 index 00000000000..ef56c6a2806 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get.g.cs new file mode 100644 index 00000000000..c5f7491daa8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List.g.cs new file mode 100644 index 00000000000..f870c8c0828 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceCount.g.cs new file mode 100644 index 00000000000..107800665ff --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs new file mode 100644 index 00000000000..6c6ea69c9c5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount.g.cs new file mode 100644 index 00000000000..31139c3100c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..b85c9ce949b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,115 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..e5e39a01a3e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount.g.cs new file mode 100644 index 00000000000..8bbe1b04f1e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get.g.cs new file mode 100644 index 00000000000..eb3add00276 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List.g.cs new file mode 100644 index 00000000000..959e0f6dc56 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get.g.cs new file mode 100644 index 00000000000..739e1d59690 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List.g.cs new file mode 100644 index 00000000000..9674b8bc705 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceDecision_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..cd883a1eb7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,113 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = true, Position = 0, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs new file mode 100644 index 00000000000..aad5cb80a39 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStage_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewStageId : AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCount.g.cs new file mode 100644 index 00000000000..e84243dddce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs new file mode 100644 index 00000000000..231e97602ff --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessReviewInstanceDecisionItemId : AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount.g.cs new file mode 100644 index 00000000000..fe70f9f278d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..20106e3b3ad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,118 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "accessReviewStage%2Did", AccessReviewStageId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.Decisions.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..8539315d7b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get or Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get" : "Get-MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GovernanceInsightId : AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount.g.cs new file mode 100644 index 00000000000..19e0e15efd2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get.g.cs new file mode 100644 index 00000000000..913ddfee887 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List.g.cs new file mode 100644 index 00000000000..997af9a4f48 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsightCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get.g.cs new file mode 100644 index 00000000000..1a89f3fe84a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List.g.cs new file mode 100644 index 00000000000..6c37e71bf97 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn.g.cs new file mode 100644 index 00000000000..5150ffe47c4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn.g.cs @@ -0,0 +1,115 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/filterByCurrentUser(on='{on}')")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOn")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStageFilterByCurrentUserWithOnCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'on' parameter of this OData function.")] + public string On { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "accessReviewInstance%2Did", AccessReviewInstanceId }, + { "on", On }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.FilterByCurrentUserWithOn.FilterByCurrentUserWithOnGetResponse? result; + try + { + result = requestBuilder.GetAsFilterByCurrentUserWithOnGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get.g.cs new file mode 100644 index 00000000000..a32363da705 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_List.g.cs new file mode 100644 index 00000000000..48931c58db6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstanceStage_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_Get.g.cs new file mode 100644 index 00000000000..454d1a69e4b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstance_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstance_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_List.g.cs new file mode 100644 index 00000000000..709591f00c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAccessReviewUnifiedInstance_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/accessReviews/unified/instances")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceAccessReviewUnifiedInstance_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class GetMgIdentityGovernanceAccessReviewUnifiedInstance_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceCollectionResponse? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.AccessReviews.Unified.Instances.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn.g.cs index 2e07de89813..40b80d5bab5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn.g.cs index 2d6f9e58d78..ff22ebf52d7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentAppConsentRequestUserConsentRequestFilterByCurrentUserWithOn.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest.g.cs index 84862b98584..2e41c066dc0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppConsentRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestCount.g.cs index 99f7f2d8bfc..a0a25b6ca2d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs index d5a63fe4f6e..692ab5c535b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserConsentRequestId : AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs index 89b4ccf70cb..3b61073b1ae 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs index 1be35ec7bc7..7e04ee5e838 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApprovalStageId : UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount.g.cs index f4620c33ec0..1b924cfe21e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_Get.g.cs index 5b40406004e..91a7981bfc3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List.g.cs index eaa1c18c161..628dd8e2894 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestCount.g.cs index c9e885bd416..beafc8c8696 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_Get.g.cs index 8361dcad53f..3d1170bc096 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_List.g.cs index b5694f69b65..a5a13a542fe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequestUserConsentRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_Get.g.cs index fa88ad5b76f..8178eb8be49 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_List.g.cs index 464388ee0d4..28176f644ea 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceAppConsentRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog.g.cs new file mode 100644 index 00000000000..b833b00e7d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalog", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalog_Get or Get-MgIdentityGovernanceCatalog_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalog_Get" : "Get-MgIdentityGovernanceCatalog_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageCatalogId : null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage.g.cs new file mode 100644 index 00000000000..29f632f3c63 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/accessPackages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogAccessPackage", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackage), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogAccessPackageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessPackageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogAccessPackage_Get or Get-MgIdentityGovernanceCatalogAccessPackage_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogAccessPackage_Get" : "Get-MgIdentityGovernanceCatalogAccessPackage_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageId : AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackageCount.g.cs new file mode 100644 index 00000000000..b11f6b2d03b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackageCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/accessPackages/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogAccessPackageCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogAccessPackageCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_Get.g.cs new file mode 100644 index 00000000000..648435039c2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/accessPackages/{accessPackage-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogAccessPackage_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackage))] + public class GetMgIdentityGovernanceCatalogAccessPackage_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackage? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages[AccessPackageId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_List.g.cs new file mode 100644 index 00000000000..710a0e99bb3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogAccessPackage_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/accessPackages")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogAccessPackage_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackage))] + public class GetMgIdentityGovernanceCatalogAccessPackage_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].AccessPackages.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCount.g.cs new file mode 100644 index 00000000000..cbf27ecf881 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs new file mode 100644 index 00000000000..d0bb291bd53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogCustomWorkflowExtension", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtensionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CustomCalloutExtensionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_Get or Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_Get" : "Get-MgIdentityGovernanceCatalogCustomWorkflowExtension_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomCalloutExtensionId : AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCount.g.cs new file mode 100644 index 00000000000..aead62ce76f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogCustomWorkflowExtensionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogCustomWorkflowExtensionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_Get.g.cs new file mode 100644 index 00000000000..9688dcff0c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions/{customCalloutExtension-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogCustomWorkflowExtension_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension))] + public class GetMgIdentityGovernanceCatalogCustomWorkflowExtension_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomCalloutExtensionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_List.g.cs new file mode 100644 index 00000000000..2ed9cef8c2d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogCustomWorkflowExtension_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogCustomWorkflowExtension_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension))] + public class GetMgIdentityGovernanceCatalogCustomWorkflowExtension_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtensionCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource.g.cs new file mode 100644 index 00000000000..70bd57cc12d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResource", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResource_Get or Get-MgIdentityGovernanceCatalogResource_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResource_Get" : "Get-MgIdentityGovernanceCatalogResource_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceId : AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceCount.g.cs new file mode 100644 index 00000000000..8cc367dc9f1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceEnvironment.g.cs new file mode 100644 index 00000000000..147be16c1df --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceEnvironment.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/environment")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceEnvironment")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment))] + public class GetMgIdentityGovernanceCatalogResourceEnvironmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceEnvironment? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].Environment.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..a04020989e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceCatalogResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs new file mode 100644 index 00000000000..f0578cdbc68 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceRole", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_Get or Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_Get" : "Get-MgIdentityGovernanceCatalogResourceRoleResourceRole_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId1 : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCount.g.cs new file mode 100644 index 00000000000..74a31c7f247 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceRoleCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceRoleCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_Get.g.cs new file mode 100644 index 00000000000..0760cc64f48 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceRole_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceRole_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_List.g.cs new file mode 100644 index 00000000000..efa1837812a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceRole_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceRole_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceRole_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs new file mode 100644 index 00000000000..52f13f044a4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get or Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get" : "Get-MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceRoleId1 : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount.g.cs new file mode 100644 index 00000000000..0b5c1707074 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get.g.cs new file mode 100644 index 00000000000..7f1dd116a7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List.g.cs new file mode 100644 index 00000000000..3f01954e0c0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class GetMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRoleCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs new file mode 100644 index 00000000000..65e0e2adf06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get or Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get" : "Get-MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId1 : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount.g.cs new file mode 100644 index 00000000000..4e58a918d2f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get.g.cs new file mode 100644 index 00000000000..e9de8cda889 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List.g.cs new file mode 100644 index 00000000000..edae2f06a52 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs new file mode 100644 index 00000000000..bafbd519b95 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceScope", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_Get or Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_Get" : "Get-MgIdentityGovernanceCatalogResourceScopeResourceScope_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AccessPackageResourceScopeId1 : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCount.g.cs new file mode 100644 index 00000000000..a0d5b843460 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceScopeCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceScopeCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_Get.g.cs new file mode 100644 index 00000000000..2c56097af3b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceScope_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceScope_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_List.g.cs new file mode 100644 index 00000000000..4291f906c11 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceScopeResourceScope_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceScopeResourceScope_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class GetMgIdentityGovernanceCatalogResourceScopeResourceScope_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScopeCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..18be9c71803 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceUploadSession_Get or Get-MgIdentityGovernanceCatalogResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceUploadSession_Get" : "Get-MgIdentityGovernanceCatalogResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..3a8583bf7b5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..b1e67a86297 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_Get or Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceCatalogResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..b21e3357d34 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..9af8bbe16af --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..ce52fc574e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..adac2f72d5d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceCatalogResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..fdd02581ee9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceCatalogResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..c03b77c3274 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceCatalogResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_Get.g.cs new file mode 100644 index 00000000000..3d27aa003a0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResource_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource))] + public class GetMgIdentityGovernanceCatalogResource_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_List.g.cs new file mode 100644 index 00000000000..5b376c21414 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalogResource_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalogResource_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource))] + public class GetMgIdentityGovernanceCatalogResource_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_Get.g.cs new file mode 100644 index 00000000000..40604f6e24b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs/{accessPackageCatalog-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalog_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog))] + public class GetMgIdentityGovernanceCatalog_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_List.g.cs new file mode 100644 index 00000000000..3df84e6e840 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceCatalog_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/catalogs")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceCatalog_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog))] + public class GetMgIdentityGovernanceCatalog_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogCollectionResponse? result; + try + { + result = client.IdentityGovernance.Catalogs.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.Catalogs.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn.g.cs index 1a0c0d7a3e9..062a43e966f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageAssignmentApprovalFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn.g.cs index 6458da26814..f81e95608f2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..ee05e96f6de --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..866831e26f4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8c92c0b9be7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..2466a93db1c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..9824b7de0e2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..003c58fc6d9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..25cfab2a736 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..3f9bdf7ce50 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..f987116a1c1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..f53bdf0561d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..a076fe95952 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..22fa44b220a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..0cf0e892e02 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..9923f358b6d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..7a045d08635 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..9c7aeaf0ddb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..56962605d49 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..ff2c8c628cb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..8d8b4ac77ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..67a8a30d15d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..1a806c192aa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..85a793a6aff --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..249bd8fd25c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..c63ddae8714 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..8bb700383a7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..bbb7cbfb21c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..d465e985db2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..44386c764af --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..22e76f9c2a3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..20223b162d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..1e7e80ba796 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..9604dea2810 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..00aa75cd588 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..c190190494b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..6cc9524edca --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..86717211a58 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..853bac43905 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..5b7211fa3c0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..e47e8e1d5c1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..33b0bfd5b0e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn.g.cs index 2ce5bda0441..5646a6c2107 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAccessPackageSuggestionFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId.g.cs index 14f54583ea8..238281a6193 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentAdditionalAccessWithAccessPackageIdWithIncompatibleAccessPackageId.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn.g.cs index 30b0de1256f..2804749cfb1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn.g.cs index 27d97bce1d8..c4369ff0c3d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementAssignmentRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..bcdbdf576e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..b5f20ffbb7b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..3ebf17fb1e1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..a357ed7f4a7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..a308ffc65b8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..f399eb6ab87 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..17788a4f0f9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..75018ba5459 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..5e550ba3f88 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..7d1b58456b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..5f0d7bd2d55 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnectorCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string ExternalOriginResourceConnectorId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get or Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get" : "Get-MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalOriginResourceConnectorId : null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount.g.cs new file mode 100644 index 00000000000..ebbbf004184 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get.g.cs new file mode 100644 index 00000000000..0d4120bf9cf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnector-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string ExternalOriginResourceConnectorId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExternalOriginResourceConnectorId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List.g.cs new file mode 100644 index 00000000000..f06ae83e383 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnectorCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..2eb2e4e9e9f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..0470a7cd700 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..ae0b8a6936f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..ca584684c37 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..da1b2110000 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..5296874293a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,101 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..035a8360263 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,81 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..623bd1e242a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,70 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..bf37e718df7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..9a050e33ad3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,150 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..351da0d596f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..25d5cf2eb5a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..1dabcbc8e90 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..ee9271f7a53 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..b03f502cb92 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..3e6a837da94 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..beb7c491af2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..b94673ebbf9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..63adbdab1ab --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..163fb1ae1ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..61053a6c4ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..3a69f0ab142 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..83990a6d664 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..a515557b532 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..8d61d6f1d06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..4a19ff66c7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,101 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..9c04df06e9c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,81 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..8c3c079404c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,70 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..41acaddfb0c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..5373cb7d748 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,150 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..2e3795716ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..ad5a8c3e0b5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..038c879d33e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..0b193e3dd69 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..db6e08cc933 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..a628e81ebb6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..4312a79ba73 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..b74e3c6f897 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..7a28909c290 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..ead9c221320 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..5e0c74ea1d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs new file mode 100644 index 00000000000..feccf9ba9b9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..d6be5a08f02 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..f499cf8df08 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..cb9913dc1dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..0dee37b95f4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..ca525d02ecd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..8765787819c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..90fab4bba1b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..76236b7a81e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..e59b8a41aad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..fd2fbb86df9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..21664df5793 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..da6a47450f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..212ae2379b1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..fe817a4d370 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..191880df4df --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..37d482219fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..584e407e195 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..dca3a71c1ea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..2f090a66786 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..7cdc5e76f6f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..3d2cc2bf010 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..1e35dfff620 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..0deff59bfd6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..7c3fb2a9496 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..9748783c68a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..4d7f10a19fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..df8e9ef5556 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..30d83068603 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..ed1ce44a4d8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..247167d17fd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..d0e280ae536 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..67eddf0b72a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..c9e975dec25 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..a16415f05d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..270c5a68b50 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..63b60a8debc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..f6eee4b3f44 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..556d0d61fb1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..c91a091126d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..e6442f9c77d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..84eb92df565 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..db5f3a2af91 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..3b6aca25b11 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..ae5bcfd596e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..1c6554f0b5c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..b8f07aa2370 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..55ea4778f04 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..51c1d51b6da --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..92cb43e2171 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..5170ca419c4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..4bf874ab2c7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..69e83e5e656 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..4ef70aebe17 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..c493ce4ec48 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..94c615e1f17 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..8baafd916c9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..1449c870a8c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..93137afef58 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..8ed5f1be876 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..71315598504 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs new file mode 100644 index 00000000000..7bc0b3b7d91 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRequestId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..08e6e1f6f76 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..1f160320aad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..2efa5cf659c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..e776fc2da3c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..5fd9c2296bb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..b4ff4887f3d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..30f29a816b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..e18051f51fc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..4b496b95e9b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..8b352aadec2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..0fdd2efd858 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..21375b03204 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..247ce04536b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..0f0c36874b4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..68ecde6a653 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..232eb0e8554 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..6ba1c00ea79 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..63647c63ccd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..6ee235b5793 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..b1b05872774 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..aef1ed65395 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..ff7c9f0b102 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..0fc84ffe0fb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..e45b9204399 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..7cc548c7e48 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..bf076490c04 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..a45ae67bed9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..ffc595520e0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..c7030ca1a34 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..f43832288a8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..99028f5e870 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..014fb01cdcc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..116752bf46f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..751417d696f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..b510d3eec62 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..f995badf019 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..094d1b5af56 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..e3429c9b7ee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..f4c47b7fee1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..6db5c2f12c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..075c644ddb1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..2aa4c6dfa62 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..fbfeaff4ba7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..ac316f483eb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..7c57a276b98 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..033f39f4e6f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..5fd6a0aa1f8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..c5d07edd030 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..409e6a21108 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..dc6ec68f6c0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..5e04a2d27c2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..6e8fac6ecd0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..1f6ff2cb9f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..d6dac4ad7a2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..94205744542 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..21c091aeefb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..b4dfdef71c4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..b6666690973 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..8b149c62eee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8e2e01609b7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..6d45ff8d70c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..663787933e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..064bf9745d3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..ed345846fe9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..a941a5e2084 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..33769023840 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..8140e41baa6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..7e9beae3c74 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..9ce939265b1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..4933a65de39 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/externalOriginResourceConnector")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnector")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.ExternalOriginResourceConnector.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..9648007680c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..928f9c312f3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..de7be711a03 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..53e89b96664 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..240eaebfc84 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..4d42851650d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..767e809f726 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..0d7e31611f4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..7b4e241a997 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..5ce36f921cf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..eb8d297f7d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..00a3d5a8acf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..02ba85d6e23 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..5004886bd9c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..5b2a2a06217 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..83f4fdca4bd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..1fd44df9ee4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..0a060aaf8aa --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs new file mode 100644 index 00000000000..fa97f124d91 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSession", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_Get or Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceUploadSession_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceUploadSessionId : AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCount.g.cs new file mode 100644 index 00000000000..8726ad51c60 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile.g.cs new file mode 100644 index 00000000000..96a4d76d931 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get or Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get" : "Get-MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomDataProvidedResourceFileId : CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..f3741693704 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent")] + [OutputType(typeof(byte[]))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount.g.cs new file mode 100644 index 00000000000..0d82ff836b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get.g.cs new file mode 100644 index 00000000000..9d3cc1e3820 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List.g.cs new file mode 100644 index 00000000000..edc669df896 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFile))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSessionFile_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceFileCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_Get.g.cs new file mode 100644 index 00000000000..12e4cd09ed9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSession_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_List.g.cs new file mode 100644 index 00000000000..718126751d1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceEntitlementManagementResourceUploadSession_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class GetMgIdentityGovernanceEntitlementManagementResourceUploadSession_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSessionCollectionResponse? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow.g.cs index 35e47de91b4..c489feb9413 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkflowId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget.g.cs index 76b27c03e78..1cae35aa148 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTargetCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTargetCount.g.cs index d261a367b6f..de26a136cbf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTargetCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTargetCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_Get.g.cs index 7e02037f937..e64e4f65335 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_List.g.cs index d601d6ae04a..1966b6ac999 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowAdministrationScopeTarget_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCount.g.cs index b9f2640049e..f52b2b58c0d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedBy.g.cs index d2800bcc9aa..738f5b66b0d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs index 2ae6b257189..2648b04af7f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningError.g.cs index 8d9fcfeb7b0..e41017187f0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningErrorCount.g.cs index eeed92b33a0..6fd9ac4738e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCreatedByServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs index 8bee07fe64d..778e6de1c12 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomTaskExtensionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCount.g.cs index 8e794e2cba4..fe7620caedc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedBy.g.cs index 54638991f66..55c433726a1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs index 9e97fbd9231..1d9981eb3cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningError.g.cs index d25391a459f..c5a25ed3ed0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningErrorCount.g.cs index 687f2104412..2db701b96e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedBy.g.cs index 819b5a318b8..2c89a53c639 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs index 522122ba3d6..3bf4900dd8a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningError.g.cs index 9c933b2f676..c3d094150f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningErrorCount.g.cs index 56d68335416..06c2c59af34 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_Get.g.cs index 7f8d7896c7d..d2ee883675c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_List.g.cs index acf02429804..a90b4a7b96a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs index 10fe1ac2e56..995b1ea7856 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs index 8ecfffb0c08..72fc13f47a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkflowId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget.g.cs index 3f797466ca6..52a69773414 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_Get.g.cs index b56e03ef335..f9d284ef2be 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_List.g.cs index 3cb96293b1e..070df34a6c4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowAdministrationScopeTarget_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCount.g.cs index 7cd44431391..6016a3e1fea 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreatedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreatedBy.g.cs index 8acaa39e49b..9328f74acf7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreatedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreatedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope.g.cs index a39cbcea9ce..381293cfe09 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserProcessingResultId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_Get.g.cs index acf3fd786ee..3c8aeeec83f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_List.g.cs index 63a9d75c41c..5a8fb1caaf6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowExecutionScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowLastModifiedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowLastModifiedBy.g.cs index f46d9f2f505..8449ebfbd62 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowLastModifiedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowLastModifiedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope.g.cs index 9520c1dcf59..615b1070d84 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_Get.g.cs index 3bd4b94daa2..1302aa6c560 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_List.g.cs index e597d5e5fb8..26fc7caf2d2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun.g.cs index 54f219b0ece..10f0d3de8fc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult.g.cs new file mode 100644 index 00000000000..61bfe255ffd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectProcessingResultId : RunId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount.g.cs new file mode 100644 index 00000000000..94c17000143 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun.g.cs new file mode 100644 index 00000000000..11316e1d0ce --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string RunId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId1 : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs new file mode 100644 index 00000000000..0631b7d3502 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRunCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs new file mode 100644 index 00000000000..3d8a8ef249a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/{run-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string RunId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs new file mode 100644 index 00000000000..d960c93f060 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultReprocessedRun_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs new file mode 100644 index 00000000000..6f4a199a2be --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTimeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' parameter of this OData function.")] + public string StartDateTime { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' parameter of this OData function.")] + public string EndDateTime { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "workflow%2Did", WorkflowId }, + { "run%2Did", RunId }, + { "startDateTime", StartDateTime }, + { "endDateTime", EndDateTime }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary? result; + try + { + result = requestBuilder.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs new file mode 100644 index 00000000000..3d81b590ef9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs new file mode 100644 index 00000000000..2e9050f35e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs new file mode 100644 index 00000000000..0e8a230f33d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubject")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..05f859063e4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs new file mode 100644 index 00000000000..3e01c360d09 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningError))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs new file mode 100644 index 00000000000..4523dfbb389 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs new file mode 100644 index 00000000000..790c52070bd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/task")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTask")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultTaskCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs new file mode 100644 index 00000000000..c07b07f5c29 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs new file mode 100644 index 00000000000..18b6e9dc24b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get.g.cs new file mode 100644 index 00000000000..206908fb25f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List.g.cs new file mode 100644 index 00000000000..64e279d5d06 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs index 6c94e383899..bddfffe6f5f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs index c978953223d..5ad5a640ecc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get.g.cs index 69820dd81de..d637f3e3498 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List.g.cs index 60c18e94949..bed9ccf8198 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRun_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult.g.cs new file mode 100644 index 00000000000..927fc048a89 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectProcessingResultId : WorkflowId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount.g.cs new file mode 100644 index 00000000000..35c867182ec --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun.g.cs new file mode 100644 index 00000000000..6c126a3f516 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount.g.cs new file mode 100644 index 00000000000..27faaddcc11 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRunCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs new file mode 100644 index 00000000000..80950d2a6c6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/{run-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List.g.cs new file mode 100644 index 00000000000..e7cafe24cdd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultReprocessedRun_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs new file mode 100644 index 00000000000..322d47ec859 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -0,0 +1,72 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTimeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' parameter of this OData function.")] + public string StartDateTime { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' parameter of this OData function.")] + public string EndDateTime { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "workflow%2Did", WorkflowId }, + { "startDateTime", StartDateTime }, + { "endDateTime", EndDateTime }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary? result; + try + { + result = requestBuilder.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult.g.cs new file mode 100644 index 00000000000..bb9009ca29a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs new file mode 100644 index 00000000000..a59e5cb701e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs new file mode 100644 index 00000000000..bf089763e0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubject")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..5b0e4a91232 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs new file mode 100644 index 00000000000..c262a3dc7d3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningError))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs new file mode 100644 index 00000000000..9321131da2b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs new file mode 100644 index 00000000000..09762703c87 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/task")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTask")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultTaskCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs new file mode 100644 index 00000000000..fe1fa236fee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs new file mode 100644 index 00000000000..0b18424bddc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get.g.cs new file mode 100644 index 00000000000..e73dd5cc9ca --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List.g.cs new file mode 100644 index 00000000000..65203c2b024 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs index fa89192446d..0bf7aad8be4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.g.cs index da1d47dc563..d4e0aae5c1f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskReportId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs index a4d6cf984b5..9513df52c92 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_Get.g.cs index 7418555ce93..dd96c5d7907 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_List.g.cs index d8824287c5a..e2850d63737 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReport_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get.g.cs index 7c169bf6d77..6424ceafb75 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List.g.cs index bdb593241f8..31b32e5fcbe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.g.cs index d632d48bcc5..fcdfb6f6197 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserProcessingResultId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs index b6774dcf974..656210cd116 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_Get.g.cs index 84e4cde50c3..f37a3626519 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_List.g.cs index be2cbba131d..fbca09dd43c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResult_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion.g.cs index b280f66cef9..4cd73008dd7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkflowVersionVersionNumber : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_Get.g.cs index 69870bc44e6..3bb20e033dd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_List.g.cs index b5e0234eec7..a463bba286a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_Get.g.cs index dac3a7c7b7f..15225c5b960 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_List.g.cs index c7742bfac09..9e77ada37f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope.g.cs index 6c3e4d108d8..b54d11965d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserProcessingResultId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScopeCount.g.cs index 77f5bc4de72..3c7f205842f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_Get.g.cs index 94300f5a313..a2e52b2845a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_List.g.cs index 0be0bc4813c..98d921f721d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowExecutionScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsight.g.cs index 058fd5c910b..092d4b35ef9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsight.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopTasksProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopTasksProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs index ee372acfb74..b6482d22e0b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopTasksProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopTasksProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs index beeb89e5063..31413c2519e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightTopWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedByCategoryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedByCategoryWithStartDateTimeWithEndDateTime.g.cs index e53792ff9b0..940fefb048f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedByCategoryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedByCategoryWithStartDateTimeWithEndDateTime.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs index 85a9deb2020..3cb626efdc1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowInsightWorkflowsProcessedSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedBy.g.cs index 803a8d4166a..3b5c102268f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedBy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs index 5126a7ae7de..f2ca6342b8e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningError.g.cs index e0b25fbbcdd..68448ce0845 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningErrorCount.g.cs index 39bb34d1aef..86b2e0c784c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowLastModifiedByServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope.g.cs index a7dd4500d20..54cf9a8eebd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScopeCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScopeCount.g.cs index 829d23c46e6..2ef133bbf5d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScopeCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScopeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_Get.g.cs index bc3a12dfa9f..507dfde0ae1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_List.g.cs index f6dfa52f242..7bac2e9179a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowPreviewScope_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun.g.cs index dcec63614d4..e204171be51 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunCount.g.cs index d2eb548502d..d8bfa4b63d0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun.g.cs index 3ce82b14846..ae568384ecb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId1 : RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount.g.cs index 4b5afd462d3..ac4485a3933 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRunCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get.g.cs index 928f04fa0f5..9169f48a91f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List.g.cs index 161e5145458..ca46cac1b11 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunReprocessedRun_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult.g.cs new file mode 100644 index 00000000000..6c0a4ec2eda --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectProcessingResultId : RunId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount.g.cs new file mode 100644 index 00000000000..bf1ae28af23 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun.g.cs new file mode 100644 index 00000000000..c7d3415e7dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string RunId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get or Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId1 : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs new file mode 100644 index 00000000000..3925059550e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRunCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs new file mode 100644 index 00000000000..2ec64a0085c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/{run-id1}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string RunId1 { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId1].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs new file mode 100644 index 00000000000..97fd5c0efdd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultReprocessedRun_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs new file mode 100644 index 00000000000..fec2e4a346d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTimeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' parameter of this OData function.")] + public string StartDateTime { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' parameter of this OData function.")] + public string EndDateTime { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "workflow%2Did", WorkflowId }, + { "run%2Did", RunId }, + { "startDateTime", StartDateTime }, + { "endDateTime", EndDateTime }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary? result; + try + { + result = requestBuilder.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs new file mode 100644 index 00000000000..2a8dacdcedd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs new file mode 100644 index 00000000000..5de77cb8ff1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs new file mode 100644 index 00000000000..f14a7541f60 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubject")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..af0fd9d8a57 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs new file mode 100644 index 00000000000..3dc6190766f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -0,0 +1,148 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningError))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs new file mode 100644 index 00000000000..14e45905e96 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -0,0 +1,68 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs new file mode 100644 index 00000000000..9512b8edc95 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/task")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTask")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultTaskCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs new file mode 100644 index 00000000000..79a2b286484 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs new file mode 100644 index 00000000000..649020aef79 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get.g.cs new file mode 100644 index 00000000000..450b768f232 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List.g.cs new file mode 100644 index 00000000000..2be73236fee --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs index 46b8e3655e6..8a4b6515fbf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.g.cs index f0beee3174e..81603174519 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultCount.g.cs index 48b57e4d793..1a8067805d4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubject.g.cs index fca61ecd967..d2b76c77158 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubject.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs index f7439aa24be..15ce505b2c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningError.g.cs index db1ebaf5308..40c86326bba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs index 9a018c48b2e..9add2c6bb4b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultTask.g.cs index d7d40b89f1a..4b686c4c1bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultTask.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get.g.cs index 48a198a154f..137b9be5a55 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_List.g.cs index ce223b1baff..c19dd59227c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.g.cs index 8c298645231..df93dcab495 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserProcessingResultId : RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultCount.g.cs index 90c020382cc..13c4f77ecdd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun.g.cs index 155bd684004..0fc9edd61b9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId1 : UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRunCount.g.cs index dcaeedab0f3..27b5395c0de 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRunCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRunCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_Get.g.cs index 7d3cd2e317e..40a8b6a6604 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_List.g.cs index 82a307d7764..1d68d484dbe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultReprocessedRun_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubject.g.cs index 724c6071dca..a0ee88fa836 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubject.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs index c6c174002cf..e0fc460449b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningError.g.cs index 8f2de25e96f..ac388449460 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs index c61eb0700d6..67e51337457 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs index c70033b037c..9676b391c4f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.g.cs index 64c509f1b92..7b652320b1f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get.g.cs index d170c7a0692..d98f83676ad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List.g.cs index 78229e421d0..71445f5de68 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResult_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_Get.g.cs index e96ed7d986c..cefe0aaf1b4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_List.g.cs index 0f19afa49f4..f230617e9f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_Get.g.cs index ffe7f1e25f5..9b18bea685b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_List.g.cs index 732bc003326..c0b0bc52635 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowRun_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSetting.g.cs index 2b7974b5dc3..a39473df970 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult.g.cs new file mode 100644 index 00000000000..edf93067fe4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectProcessingResultId : WorkflowId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount.g.cs new file mode 100644 index 00000000000..77621062d7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun.g.cs new file mode 100644 index 00000000000..154c16da284 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get or Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount.g.cs new file mode 100644 index 00000000000..f03c5c3ff9b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRunCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs new file mode 100644 index 00000000000..d5a6f3fbda3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns/{run-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string RunId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns[RunId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RunId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List.g.cs new file mode 100644 index 00000000000..02f28578ce4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/reprocessedRuns")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.Run))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultReprocessedRun_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.RunCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].ReprocessedRuns.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs new file mode 100644 index 00000000000..1d610445a8e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -0,0 +1,72 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/microsoft.graph.identityGovernance.summary(startDateTime={startDateTime},endDateTime={endDateTime})")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTime")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultSummaryWithStartDateTimeWithEndDateTimeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' parameter of this OData function.")] + public string StartDateTime { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' parameter of this OData function.")] + public string EndDateTime { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "workflow%2Did", WorkflowId }, + { "startDateTime", StartDateTime }, + { "endDateTime", EndDateTime }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTime.MicrosoftGraphIdentityGovernanceSummaryWithStartDateTimeWithEndDateTimeRequestBuilder(pathParameters, requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectSummary? result; + try + { + result = requestBuilder.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult.g.cs new file mode 100644 index 00000000000..7e7c75d4fc1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult), ParameterSetName = new[] { "Get" })] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get or Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get" : "Get-MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs new file mode 100644 index 00000000000..a3b0482e874 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs new file mode 100644 index 00000000000..41e583fe6cb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubject")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.User? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..b170e8169bf --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs new file mode 100644 index 00000000000..6e39d7f8bda --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -0,0 +1,146 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningError")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningError))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ServiceProvisioningErrorCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs new file mode 100644 index 00000000000..552b9517130 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/serviceProvisioningErrors/$count")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCount")] + [OutputType(typeof(int))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectServiceProvisioningErrorCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.ServiceProvisioningErrors.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs new file mode 100644 index 00000000000..36cce4f908a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/task")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTask")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultTaskCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskObject? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Task.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs new file mode 100644 index 00000000000..b6693733643 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs new file mode 100644 index 00000000000..c118cb0d26a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List.g.cs @@ -0,0 +1,144 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.TaskProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get.g.cs new file mode 100644 index 00000000000..7976532e540 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SubjectProcessingResultId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List.g.cs new file mode 100644 index 00000000000..f213fb76d85 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("GET", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults")] + [Cmdlet(VerbsCommon.Get, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResult))] + public class GetMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResult_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectProcessingResultCollectionResponse? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask.g.cs index 7f6feb4e153..376f2f0e3ab 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskCount.g.cs index cd8d38297b2..9397b73aa72 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition.g.cs index d7992b0310e..0b1e762d467 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskDefinitionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinitionCount.g.cs index b9a0a25ce38..da02ce93c63 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinitionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_Get.g.cs index 6f41ade417f..10dbb82a9c0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_List.g.cs index b20b3b42ca6..48b8102fcf4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult.g.cs index b9ec8210751..e131017f954 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultCount.g.cs index 96e9ea6ed2a..969c701377a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubject.g.cs index a6901aa79a0..11ce7c3ff98 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubject.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs index b267f6fc917..24e8a0ae382 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningError.g.cs index 67f3da07da9..850a88cb03e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs index 17a532d623f..981cab04285 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultTask.g.cs index 654383365c2..1bd46db5685 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultTask.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_Get.g.cs index ddcbcae76fd..81a65ff6045 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_List.g.cs index 46090eecb92..632024108cc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport.g.cs index 1cb19ce7104..dc2f27c783f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskReportId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportCount.g.cs index 41f648be185..1ccbc612c5d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs index b3caba39451..95f8735131c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTask.g.cs index 791c2c5b794..b89c5afd1ff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTask.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskDefinition.g.cs index 2a837546c91..a344def35ef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.g.cs index 04e2854630e..583a05eaccf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultCount.g.cs index 27e5b6bea33..c280ba9f597 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubject.g.cs index 5ab229564a4..edc26864106 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubject.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs index 73d86aad8f2..d58dbe157f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningError.g.cs index fd6853b3dbc..b619c0941f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs index 17c67ba041f..33c740f144f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultTask.g.cs index 2449b00771b..50e3db9376c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultTask.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_Get.g.cs index ed94a657b4b..8c4891f4b99 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_List.g.cs index d6664d9eabc..99b22bf7d10 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_Get.g.cs index 861e77786fc..187e04e8a3b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskReportId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_List.g.cs index 57201f874af..50d688c1e91 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTaskReport_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_Get.g.cs index 8e04d79030b..7534baa9970 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_List.g.cs index 2dadc1df2c8..42c3c6474ee 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate.g.cs index d4f7c42cb79..6a0448a9dc9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkflowTemplateId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateCount.g.cs index 2161a3107ea..5fe4f4f80ab 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask.g.cs index cc8385ff6c1..bcabe79325b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskId : WorkflowTemplateId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskCount.g.cs index 4d15e6fd49f..607d2873eca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowTemplateId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult.g.cs index 5a4f3831bbb..6be97d71ea9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultCount.g.cs index 5d91d4b807e..6a27bcabdfb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubject.g.cs index d8fcf6a3a73..a87065c1db7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubject.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs index a4d7d9d2602..b4be9e7cde3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningError.g.cs index c6e351b63c8..27d9aa5c531 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs index 2de91fbd037..ec254c5b20a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultTask.g.cs index 6105ab2af81..180580a556a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultTask.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_Get.g.cs index 9e717aa9ad5..a19b6f6c3bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_List.g.cs index aac10cdb88e..fb8f7fe91d4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_Get.g.cs index b6d6b39e51a..ba88c690e68 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_List.g.cs index 5da53eca54c..64dce5f1c07 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplateTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowTemplateId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_Get.g.cs index aad36483185..68a4259bf6b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowTemplateId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_List.g.cs index 7cf0d410aad..db7d9ff6225 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult.g.cs index 9af19efbf6c..a3bc1435b48 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserProcessingResultId : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultCount.g.cs index 818483aefad..bb78fb949e0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun.g.cs index 3faf766877d..e235daf2d96 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RunId : UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRunCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRunCount.g.cs index 70c7867cb9c..9b6e6e06dc7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRunCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRunCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_Get.g.cs index 2e2d13f4837..ba3b5773dde 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RunId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_List.g.cs index f0d6af4d85e..b3e1802641f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultReprocessedRun_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubject.g.cs index 1b87d20279f..79106979981 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubject.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs index bc93d7640f2..5fc89df4567 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningError.g.cs index dba5e44d2dc..4a18696893f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs index b488e2980fa..a542f8ed613 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs index 1dae22f4649..93a6628e2ba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSummaryWithStartDateTimeWithEndDateTime.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.g.cs index 4eab4bcc66c..04a49b50d57 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_Get.g.cs index e699a13fe4c..4db9dcc196a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_List.g.cs index eec07d7b528..80210449c1f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResult_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_Get.g.cs index 7f370d1342b..377d3cd72f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_List.g.cs index ab95c8c0889..6ca8b60333e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowUserProcessingResult_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion.g.cs index 76b4bc48d5e..77f890a56f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkflowVersionVersionNumber : WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget.g.cs index 0ff932c1fad..5a7a29ba301 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTargetCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTargetCount.g.cs index 1108ed8225e..938f0b26df8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTargetCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTargetCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_Get.g.cs index d92936c0052..5a5ba7c178c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_List.g.cs index e1eab514e9b..ab72d9e3c7b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionAdministrationScopeTarget_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCount.g.cs index 071cd921eeb..b78fec2e1f8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedBy.g.cs index e5b325b713a..420c35b7c6d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedBy.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs index 11da69b27bf..45c32a61cf0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningError.g.cs index f61bb6cd463..6be0b9af308 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningErrorCount.g.cs index d28b87d1070..b92b4489a4d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionCreatedByServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedBy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedBy.g.cs index 2a73018ef5f..1a23552162f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedBy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedBy.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs index dc698e6a40f..c41d4a1d6e8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningError.g.cs index e6f563d96cf..0d063bf76df 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningErrorCount.g.cs index 56dedeeaa60..47b5b30c4da 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs index 80672fd7c9b..d0344d8edb1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskId : WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskCount.g.cs index b23d2fba80e..835f2e478e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult.g.cs index 6175a432b54..ef01a1ab94e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TaskProcessingResultId : TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultCount.g.cs index ea3f0be0bc6..76c8955f8db 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubject.g.cs index dfb6a0534e3..e2b25a4619d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubject.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs index a1d141d07df..aa3f4d16f97 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningError.g.cs index 4b0f2943f53..dac7e97f2a2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningError.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs index 423d514010c..7dc8735a8f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectServiceProvisioningErrorCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultTask.g.cs index 2612e7b362d..a96fbc6075b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultTask.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_Get.g.cs index e68b97a63db..23b4064593c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_List.g.cs index 9dbeda09f89..11911a7366f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResult_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_Get.g.cs index f765d62cbb9..9583fcd83b1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_List.g.cs index 2d477cafd3a..372531ecac0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersionTask_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_Get.g.cs index d50f53da398..b260a53668b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_List.g.cs index 361111b81d3..08e1c9a2e68 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflowVersion_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_Get.g.cs index 37a9d96840f..36b69b226fc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_List.g.cs index 7e8bc86467f..d777d7d9547 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceLifecycleWorkflow_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccess.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccess.g.cs index 933138b6bf3..c91fc59286b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccess.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccess.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroup.g.cs index ad87c60e8e6..a7cf0281d9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroup.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs index 2aa1152c9f0..1858926e94f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApprovalId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalCount.g.cs index 52ffd1a043d..b615395d648 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalFilterByCurrentUserWithOn.g.cs index 3c3ea7a3f4b..35b1e7d0889 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs index d584b97c88e..df67bdb91f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ApprovalStageId : ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStageCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStageCount.g.cs index 1d1250326ee..a3f4ddab3db 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStageCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_Get.g.cs index 0a08958e2cb..857716c3f3d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_List.g.cs index 8beb093f923..01a4f887f22 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_Get.g.cs index fa059d9545f..1906b319b27 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_List.g.cs index 516b9a3046a..ebf029e052a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs index ea13463187c..109564eaf20 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupAssignmentScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleActivatedUsing.g.cs index 99a785106fb..4881c54d5b2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleCount.g.cs index 2386964c023..2f667e8b034 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleFilterByCurrentUserWithOn.g.cs index c6f58b0849a..070c324d8a1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroup.g.cs index bcf9767703a..e079b9298cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningError.g.cs index 13a69c6b39e..731f2f66e95 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningErrorCount.g.cs index 0dd704faa2b..c9b53f8d30d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs index 46d2d960706..01474e0a3c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupAssignmentScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceActivatedUsing.g.cs index 460dad0143e..e77af94b3fc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceCount.g.cs index 8a82dc56d77..e9f6dbdb725 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs index 156c1aa61f8..eb71f4a1941 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroup.g.cs index e5acc39e9e9..e3d08fbaf2c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningError.g.cs index e5cc7efe634..25529b679bb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningErrorCount.g.cs index e6e27a36d86..f3c698f3884 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstanceGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstancePrincipal.g.cs index 6195e39ecc0..564f32369fa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_Get.g.cs index 124f1cc88a7..ecfffb5bc16 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_List.g.cs index 6e9c909110e..03ab6030256 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedulePrincipal.g.cs index d206881152e..c825682bb45 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs index b02852f2a67..84c5bbc6da0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupAssignmentScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestActivatedUsing.g.cs index 75d2774e836..0fcd16fec9b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestCount.g.cs index 134db055a48..d1bfbcc97cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs index 2f839d670f2..b0cff833631 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroup.g.cs index 2d4884146a0..09161a513b1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningError.g.cs index c1e9adfc26d..05e9184fa74 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningErrorCount.g.cs index 0e4e5e272a3..9082cd4cb6f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestPrincipal.g.cs index 4dbbb572e87..6b8428541f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestTargetSchedule.g.cs index 934edf671d1..98ec5cc5eb3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_Get.g.cs index bfacb8c4cab..5546af9ed8b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_List.g.cs index 911c49524a1..82b1c186807 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_Get.g.cs index 9d4cad3aafa..66e5e1450cd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_List.g.cs index 57a6e4f9398..7b301e01212 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs index 67b910eab17..e155e4526e0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupEligibilityScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleCount.g.cs index e4225aae619..76168b36ef0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleFilterByCurrentUserWithOn.g.cs index ecaafd396c3..1c8a14d60e2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroup.g.cs index c7178f4acd9..dc6a8051c14 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningError.g.cs index 4b99020d83b..b70a89f687c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningErrorCount.g.cs index 7266d6c6e61..f777b877df6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs index 86ef044bf6e..23c7c43def5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupEligibilityScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceCount.g.cs index c900a0b212f..cb47ecb0764 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs index a87fe6276ed..b0d4308bb81 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroup.g.cs index 3c2b40703a1..595d1f37a7f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningError.g.cs index 740ec5c1824..ce4bb3fa233 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningErrorCount.g.cs index 4783b692145..dd2b6029b53 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstanceGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstancePrincipal.g.cs index 5d3173166a1..2bafe3cc1bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_Get.g.cs index 9c62ccbac65..bfeeeb53a84 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_List.g.cs index d48457952bc..20e213420e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedulePrincipal.g.cs index da5a9f59b56..28327f50dc1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs index d4e08db48c7..eeeea95fdaf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrivilegedAccessGroupEligibilityScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestCount.g.cs index 28504a29b06..09993542fc1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs index 80394f6ace3..ad77243c1ff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroup.g.cs index db89acd11b5..d8a6e84677a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningError.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningError.g.cs index 334b58d0e2a..7ac2a99855c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningError.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningErrorCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningErrorCount.g.cs index 76e89ef0f9c..b7d7d0fd1a7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningErrorCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestPrincipal.g.cs index 0adc4103c99..d339494c2fa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestTargetSchedule.g.cs index 56f5e0893ca..57e23138497 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_Get.g.cs index 2fe7c55a5b0..5e04d8dcd11 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_List.g.cs index cd9e4361483..ba751fd69eb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_Get.g.cs index d9b98ef4c84..5234dc43f94 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_List.g.cs index f93896c9802..9c4b939cbf6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement.g.cs index d8aa5ea2008..89ad353d23e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs index 9123448bd1d..d5478c0a318 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementAcceptanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptanceCount.g.cs index bc4c5a433bd..9fd6b47716c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_Get.g.cs index 7946719edd9..fab063b2106 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_List.g.cs index e2a1a844789..8bd3068c35b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementAcceptance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementCount.g.cs index 818081f29b8..6e718877a61 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFile.g.cs index 43d5c3f35b8..249f6cc2b36 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFile.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileCount.g.cs index 3e886a4b528..2e8f5c96d5f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs index 2623f83265e..43256853250 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileLocalizationId : AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationCount.g.cs index 02631dc6e6b..c403700d17c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs index 4400ac95e87..d1f73950eda 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileVersionId : AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersionCount.g.cs index 0d6f4ebc847..c372382a44b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_Get.g.cs index 0820413974a..0b58a18fd76 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_List.g.cs index 6d4b26e66ac..81d61c60a4f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_Get.g.cs index a99eece36f5..fee57f090a6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_List.g.cs index 41ecbad6ead..8a48b9a3236 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileLocalization_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs index 7d525958842..016e0cfd381 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementFileVersionId : AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersionCount.g.cs index 60ee14f9ed6..7e33a277921 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_Get.g.cs index e498e300f06..fb74274fb6c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_List.g.cs index 169a89170f6..4f35c3ca726 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreementFileVersion_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_Get.g.cs index e189baca37b..5671642ff33 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_List.g.cs index 1dc370a66fd..f20c6782ba7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgIdentityGovernanceTermsOfUseAgreement_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectory.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectory.g.cs index ac6e815ca81..0c5f56854e5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectory.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectory.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace.g.cs index 30781189e90..8db47b9b256 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRbacResourceNamespaceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceCount.g.cs index 40d7b40893c..d842d722cc2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs index b3e399d91d0..5ab81b26f65 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRbacResourceActionId : UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceActionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceActionCount.g.cs index cb36995d517..0bb32ec8900 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceActionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceActionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_Get.g.cs index 82752c22de5..76c160a64ea 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_List.g.cs index 8e6e0da43e7..e0ac9c18d16 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespaceResourceAction_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_Get.g.cs index a8f65fcf9cb..6c85fc76cd3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_List.g.cs index ca7f6f8041c..71d1668aeff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryResourceNamespace_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment.g.cs index 6771a28dbb3..f9171bb20bb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs index eab594e48e7..23a33fceac8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentCount.g.cs index 20db5a247c7..d9346b3c060 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentDirectoryScope.g.cs index 6f9cf228f1c..fe4dff71cef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentPrincipal.g.cs index a8845b55672..c478d7286d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentRoleDefinition.g.cs index be4aebdb2e4..fcd677984d9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs index cbfaf338a9f..9383dcbf53d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleActivatedUsing.g.cs index da596b650e0..5d8433438a3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleAppScope.g.cs index d5302a5b687..23bceca5544 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleCount.g.cs index 2f1b54e2f57..00502b9883b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleDirectoryScope.g.cs index cc7c7d41972..531651a7373 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs index df5609c6995..3a8abec6c01 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs index 2e7ee89f055..4556639071f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceActivatedUsing.g.cs index a119f41f9c3..0196681654e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceAppScope.g.cs index dbeebeb1b27..bacea111bb1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceCount.g.cs index a3109d280a7..543cc1e0e40 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceDirectoryScope.g.cs index 6dba385824e..e2305366021 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs index ac57d1d1bd2..e33207c918a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstancePrincipal.g.cs index c6f896dfab1..70daae747f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceRoleDefinition.g.cs index ebe9a16b1ed..36da33b6f77 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstanceRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_Get.g.cs index d93ca3fb865..bf7a0c03115 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_List.g.cs index b6fe9d3b807..41d6ded8153 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedulePrincipal.g.cs index 7df3d3aa097..12ce9321b23 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs index 94794c09ed9..b24b991b614 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestActivatedUsing.g.cs index 00f238862d2..055905670e5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestAppScope.g.cs index edc26afcb4c..85aec61c450 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestCount.g.cs index 440fc3ba8ea..51226f47b04 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestDirectoryScope.g.cs index fd8872e19cc..2773171daed 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs index fd02f5432c8..d351291c647 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestPrincipal.g.cs index bda41d71c5e..aedd4eade9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestRoleDefinition.g.cs index e6a7244975d..b62be230a91 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestTargetSchedule.g.cs index 73d901e8d1b..888fb3e4668 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_Get.g.cs index d4ab5c8581a..958d12e1509 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_List.g.cs index 43d8353b49e..823a411fdb3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRoleDefinition.g.cs index 259db60e0a4..0ac25f47856 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentScheduleRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_Get.g.cs index 7a401477a8c..3574fe50da5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_List.g.cs index a6f022d4875..c9009ab511f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignmentSchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_Get.g.cs index 7a304fdedc4..1e526ba19ca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_List.g.cs index 43d055309ad..c54b06cfa39 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition.g.cs index 7ef7f78a0b9..dacd59adb80 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleDefinitionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionCount.g.cs index f57d9ec0f31..3a4aad09454 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs index 1bc371cf76a..b5e9b5a3be6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleDefinitionId1 : UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFromCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFromCount.g.cs index 23b62cab1bf..707c20e63ac 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFromCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFromCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_Get.g.cs index 620346b2611..358046ae1f6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_List.g.cs index af35e7cfd07..a250e92b49c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_Get.g.cs index 50f32c4f091..e65e3062f58 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_List.g.cs index 0bb38922c80..5fbed326c21 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs index 1d52d9731a9..2ee70bd1464 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleAppScope.g.cs index fd70212e311..b64ec469dc7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleCount.g.cs index 47735b31e0d..632aba251e2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleDirectoryScope.g.cs index 2ff44001df2..e1be1cdff0c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs index 53a69894ab9..0bf41e40322 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs index dd5ebb8da06..6cb3f7487f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceAppScope.g.cs index 3479b814d07..bd4851ea514 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceCount.g.cs index 860b9a4f4f2..5ce66b537b9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceDirectoryScope.g.cs index 7bf7a545d02..45c0ec956da 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs index 47f1ac60c7a..55f55e00cb2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstancePrincipal.g.cs index f73a615a2d4..45c2d91cad0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceRoleDefinition.g.cs index 323521610fb..3b702f07975 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstanceRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_Get.g.cs index f58ca1bc201..571bfa2531b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_List.g.cs index ef0d05d22ba..489840ab4ab 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedulePrincipal.g.cs index 6f5f4bd34f3..33d07ec80de 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs index 3a39fd8c47e..8840024d362 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestAppScope.g.cs index b7b017c73b6..60366499c4f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestCount.g.cs index 75b54f8781e..4f4a8d8bf98 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestDirectoryScope.g.cs index 72fcd1addbe..4b0ff71ddb5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs index 456bc273f89..d90de2d3ed9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestPrincipal.g.cs index 9d996372202..cafd2f10bca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestRoleDefinition.g.cs index 343af564600..72ae012b15f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestTargetSchedule.g.cs index c1f586f5d42..b31387d1a17 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_Get.g.cs index cfab2de3a68..15ae4bf1e85 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_List.g.cs index 9bd3679431d..cd2d3e3378b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRoleDefinition.g.cs index b450ed36a64..dbbf654114e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilityScheduleRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_Get.g.cs index 62eeb6c9b75..827ff10cd03 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_List.g.cs index e04277e1b8e..a04147a07f1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementDirectoryRoleEligibilitySchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagement.g.cs index 6d12d735120..d857100e148 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagement.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace.g.cs index a0e87944ed9..4f9bb3d511c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRbacResourceNamespaceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceCount.g.cs index 280f5a1d31b..7c77dd42de3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs index f40ead2e491..ca72264933d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRbacResourceActionId : UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceActionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceActionCount.g.cs index ad3dc869fa6..aa7f96ce0ff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceActionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceActionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_Get.g.cs index ce8855883fe..bfe045c663d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_List.g.cs index 7a0c7761749..6429d8a205f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespaceResourceAction_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_Get.g.cs index 733bf3a5699..31b8fd924a7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_List.g.cs index 7341494451a..1a1d217c686 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementResourceNamespace_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment.g.cs index 31b78bf03e0..8a21c87bc14 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs index 31193aac350..200fc829a5b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentCount.g.cs index 7fef6b84914..3136c52a1b1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentDirectoryScope.g.cs index 58d59b03330..dd7d10e2032 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentPrincipal.g.cs index 46e0340e5aa..3f0c4f1c03f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentRoleDefinition.g.cs index ef377f9267a..39717e1a179 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs index 76aa8ab4991..59a9ac1a897 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleActivatedUsing.g.cs index 52d9b2432a1..f994878cfac 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleAppScope.g.cs index ba970d64169..c1c6739093d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleCount.g.cs index 679e0ad4b98..0b4ed7dd38e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleDirectoryScope.g.cs index 399a9f59be9..27d1fe6454d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs index 0267cfe7d30..dcedd2f712e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs index cd5fdba9870..64a53b6fcef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceActivatedUsing.g.cs index 10d3ad7d718..8d230316683 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceAppScope.g.cs index 1a8f9914890..ef994a51a87 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceCount.g.cs index 4f2f175f94a..5b1a86d0485 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceDirectoryScope.g.cs index e9f8cc24dc0..49e47388bf5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs index bcb58ef5bd6..6b7f882ba44 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstancePrincipal.g.cs index 70c3ddd23c8..40b5c9980b2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceRoleDefinition.g.cs index 5101d1830c2..8bd66184c59 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstanceRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_Get.g.cs index ed772531f90..a05e5a35a7e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_List.g.cs index 84c90efb9bc..77166d24028 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedulePrincipal.g.cs index f23f72140ad..3d2d44d6a80 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs index faf18b5e581..36f8aeeede6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleAssignmentScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestActivatedUsing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestActivatedUsing.g.cs index 28ce6892d1b..87165fa0855 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestActivatedUsing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestActivatedUsing.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestAppScope.g.cs index 8c48088fd36..8dbc9c8ce7c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestCount.g.cs index c2aa642a24f..f7acf01ab79 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestDirectoryScope.g.cs index 230fd0790ba..1dc81a60bf2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs index 751c7defc03..01e914ac310 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestPrincipal.g.cs index 6d48c4fd371..65e846d4f35 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestRoleDefinition.g.cs index 7ebeb77fc9e..a738c463119 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestTargetSchedule.g.cs index 9035fa3231d..473cfe2f74a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_Get.g.cs index 859916d1854..0d22fb4ea57 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_List.g.cs index 7ec45b41056..a4fe91863d8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRoleDefinition.g.cs index cf9178600bf..f2e78b61680 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentScheduleRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_Get.g.cs index 72c541f4521..14796d5b056 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_List.g.cs index 569cddafbab..91f13783d4f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignmentSchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_Get.g.cs index 086b157e021..a0a121e9787 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_List.g.cs index f9fc9f72594..9991b937bdb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition.g.cs index 35d3f0df3e4..79600b5a57b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleDefinitionId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionCount.g.cs index 1793341781a..95713c51bfd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs index be50ef94dee..25f413c9bd0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleDefinitionId1 : UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFromCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFromCount.g.cs index 35dc1816887..c31f105215f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFromCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFromCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_Get.g.cs index 84339511620..c13d829e69b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_List.g.cs index 4949318aa88..6f766fccfbd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_Get.g.cs index ba5744ce97d..967be20777b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_List.g.cs index 8ba0f2afc41..f2a93e2c79d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleDefinition_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs index 60c280a672a..0c8d11f8fc9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleAppScope.g.cs index 5e371b23ab3..a2424e2a90f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleCount.g.cs index 0e4a3fd529a..78bb18eefd3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleDirectoryScope.g.cs index c84d8cc2f89..e4b411c5f2a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs index bff78cd7bae..1d0b016aec7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs index 5a9fa8b71b9..169b17bc696 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleInstanceId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceAppScope.g.cs index 4ea85915bb9..406810b677c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceCount.g.cs index 8aaf8a34153..eb0fbf3e7e1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceDirectoryScope.g.cs index cb4078179c5..6e50173c318 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs index c89a846f2b2..2677533a91a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstancePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstancePrincipal.g.cs index 3e5a72f6d5f..cb9c58f6b55 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstancePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstancePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceRoleDefinition.g.cs index abbf0205647..e8e14c4d9e8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstanceRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_Get.g.cs index 9272e553b4e..455a492628c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_List.g.cs index bb7918c69b4..b0f215a447c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedulePrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedulePrincipal.g.cs index 005be696dd3..c5ffefd14c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedulePrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedulePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs index bc2d117a8a2..17d826f820b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleEligibilityScheduleRequestId : null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestAppScope.g.cs index 27d052f15c1..99fa28a26c1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestAppScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestCount.g.cs index 366e39c8789..e1d5e969d3c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestDirectoryScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestDirectoryScope.g.cs index 5024d9ce5d8..06be0d487f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestDirectoryScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestDirectoryScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs index 72ab704c76c..93731eef56d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestFilterByCurrentUserWithOn.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestPrincipal.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestPrincipal.g.cs index 66568501631..e2c82e1f95f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestPrincipal.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestPrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestRoleDefinition.g.cs index 12ceb6470aa..f4da4dd82fb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestTargetSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestTargetSchedule.g.cs index 5ccbc73c9fb..e90f864e2cc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestTargetSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequestTargetSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_Get.g.cs index d4430a47d06..2210a05d331 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_List.g.cs index fe1ebde9b7d..b688f928d95 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRoleDefinition.g.cs index 46ed760a04e..f653b0fb364 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilityScheduleRoleDefinition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_Get.g.cs index 11d25d1f0de..5bb483a01c7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_List.g.cs index 244bb2d6c76..ce53d7e5925 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgRoleManagementEntitlementManagementRoleEligibilitySchedule_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance.g.cs index f26e6c0c70c..2ea82c37063 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AgreementAcceptanceId : UserId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptanceCount.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptanceCount.g.cs index 4a786311ce4..105e75e383a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptanceCount.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptanceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_Get.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_Get.g.cs index 386b7dc942d..f5baba4302c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_Get.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_List.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_List.g.cs index 77b1f3345a6..13e268385dc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_List.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/GetMgUserAgreementAcceptance_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.g.cs index 095f2a4a76d..6c7660df52c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgAcceptIdentityGovernanceAccessReviewDefinitionInstanceRecommendation.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.g.cs index d90c0ee239b..46cf2b3364a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgBatchIdentityGovernanceAccessReviewDefinitionInstanceRecordDecision.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations.g.cs new file mode 100644 index 00000000000..1eecc5aef8d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/acceptRecommendations")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendations", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageAcceptRecommendationsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions.g.cs new file mode 100644 index 00000000000..7cbcfd05847 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions.g.cs @@ -0,0 +1,87 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/batchRecordDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewDefinitionInstanceStageBatchRecordDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalId { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceId { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalId))) + body.PrincipalId = PrincipalId; + + if (this.IsParameterBound(nameof(ResourceId))) + body.ResourceId = ResourceId; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations.g.cs new file mode 100644 index 00000000000..3bf7fea4e96 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/acceptRecommendations")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendations", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceAcceptRecommendationsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].AcceptRecommendations.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions.g.cs new file mode 100644 index 00000000000..47be67fc233 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/applyDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceApplyDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ApplyDecisions.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions.g.cs new file mode 100644 index 00000000000..485915be12e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions.g.cs @@ -0,0 +1,85 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/batchRecordDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceBatchRecordDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalId { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceId { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalId))) + body.PrincipalId = PrincipalId; + + if (this.IsParameterBound(nameof(ResourceId))) + body.ResourceId = ResourceId; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].BatchRecordDecisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions.g.cs new file mode 100644 index 00000000000..b2622f047a6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/resetDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceResetDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ResetDecisions.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder.g.cs new file mode 100644 index 00000000000..737e4687135 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/sendReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceSendReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].SendReminder.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations.g.cs new file mode 100644 index 00000000000..e502c47ceb2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/acceptRecommendations")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendations", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageAcceptRecommendationsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions.g.cs new file mode 100644 index 00000000000..6170bdb8a95 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions.g.cs @@ -0,0 +1,87 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/batchRecordDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageBatchRecordDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalId { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceId { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Definitions.Item.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalId))) + body.PrincipalId = PrincipalId; + + if (this.IsParameterBound(nameof(ResourceId))) + body.ResourceId = ResourceId; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop.g.cs new file mode 100644 index 00000000000..326ce38df7c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/stop")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStop", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageStopCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Stop.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop.g.cs new file mode 100644 index 00000000000..cd4b248b796 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stop")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStop", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStopCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stop.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionStop.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionStop.g.cs new file mode 100644 index 00000000000..66ab6c8d07c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionStop.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/stop")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedDefinitionStop", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedDefinitionStopCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewScheduleDefinitionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Stop.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations.g.cs new file mode 100644 index 00000000000..df9f0cc73b5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/acceptRecommendations")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendations", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceAcceptRecommendationsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].AcceptRecommendations.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions.g.cs new file mode 100644 index 00000000000..5fb21fe20b4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/applyDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceApplyDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ApplyDecisions.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions.g.cs new file mode 100644 index 00000000000..d31e8fed592 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions.g.cs @@ -0,0 +1,83 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/batchRecordDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceBatchRecordDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalId { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceId { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalId))) + body.PrincipalId = PrincipalId; + + if (this.IsParameterBound(nameof(ResourceId))) + body.ResourceId = ResourceId; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].BatchRecordDecisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions.g.cs new file mode 100644 index 00000000000..1dd2c7cbfb5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/resetDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceResetDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ResetDecisions.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder.g.cs new file mode 100644 index 00000000000..7a9a03542e4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/sendReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceSendReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceSendReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].SendReminder.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations.g.cs new file mode 100644 index 00000000000..56d5e4ad928 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/acceptRecommendations")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendations", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageAcceptRecommendationsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].AcceptRecommendations.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions.g.cs new file mode 100644 index 00000000000..61fb5f92c5c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions.g.cs @@ -0,0 +1,85 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/batchRecordDecisions")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisions", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageBatchRecordDecisionsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalId { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceId { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.AccessReviews.Unified.Instances.Item.Stages.Item.BatchRecordDecisions.BatchRecordDecisionsPostRequestBody(); + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalId))) + body.PrincipalId = PrincipalId; + + if (this.IsParameterBound(nameof(ResourceId))) + body.ResourceId = ResourceId; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].BatchRecordDecisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageStop.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageStop.g.cs new file mode 100644 index 00000000000..5cd7ae75e90 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageStop.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/stop")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageStop", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStageStopCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Stop.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStop.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStop.g.cs new file mode 100644 index 00000000000..2c5f9180afe --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStop.g.cs @@ -0,0 +1,59 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stop")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceAccessReviewUnifiedInstanceStop", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceAccessReviewUnifiedInstanceStopCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stop.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceRefresh.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceRefresh.g.cs new file mode 100644 index 00000000000..c521cd31649 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceRefresh.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/refresh")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceCatalogResourceRefresh", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceCatalogResourceRefreshCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].Refresh.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..131b203daac --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceCatalogResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceCatalogResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceCatalogResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..af011444bb0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..19a7203676e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..8143286dc0a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..42db100fee2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..8ea2994129a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..c1412889fe8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..1c5b9daafd9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..724f1b940f1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..ccdd836d876 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..9abc6951ec1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..6be5923b10d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..0a676d9a2e2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..18381e08977 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..a2d7e2a00b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..aabaef7fa7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..7d9b0438271 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..69fbb8697b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..d0720adc3e8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..28514e6ab05 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..ff3f074b14d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..68790a83d96 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..2bca8d96331 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..6cc5a4e9959 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..935faff8b73 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile.g.cs new file mode 100644 index 00000000000..d22a5c4a6c3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/uploadFile")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFile", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class InvokeMgIdentityGovernanceEntitlementManagementResourceUploadSessionUploadFileCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].UploadFile.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivate.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivate.g.cs index c9ae2506839..33365eed4ec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivate.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivate.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateAndWait.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateAndWait.g.cs new file mode 100644 index 00000000000..2a1b8b1da38 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateAndWait.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/microsoft.graph.identityGovernance.activateAndWait")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowActivateAndWait", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult))] + public class InvokeMgIdentityGovernanceLifecycleWorkflowActivateAndWaitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(WorkflowId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody(); + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateAndWait.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateWithScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateWithScope.g.cs index 53f2ea29e9b..41a7134fecf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateWithScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowActivateWithScope.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCancelProcessing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCancelProcessing.g.cs index f275f42ca23..602dd261801 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCancelProcessing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCancelProcessing.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowClearQuarantine.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowClearQuarantine.g.cs index 4cc95e358f2..187d74c8b51 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowClearQuarantine.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowClearQuarantine.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCreateNewVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCreateNewVersion.g.cs index c3c8491e04b..19a9a00e5c8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCreateNewVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowCreateNewVersion.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate.g.cs index e89315f952d..6e85a823bd6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivate.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait.g.cs new file mode 100644 index 00000000000..49fe71e667c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/microsoft.graph.identityGovernance.activateAndWait")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWait", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult))] + public class InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateAndWaitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowSubject? Subject { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(WorkflowId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.MicrosoftGraphIdentityGovernanceActivateAndWait.ActivateAndWaitPostRequestBody(); + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.AwaitedWorkflowProcessingResult? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].MicrosoftGraphIdentityGovernanceActivateAndWait.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkflowId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope.g.cs index f483a656caf..6f86e119b82 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowActivateWithScope.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing.g.cs index c22b587892f..a998af77298 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCancelProcessing.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine.g.cs index 513e791c5be..08d0faa85b3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowClearQuarantine.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreateNewVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreateNewVersion.g.cs index 4b64601473c..f0df14d461d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreateNewVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowCreateNewVersion.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures.g.cs index cbaf2eaab64..b7afb840311 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewTaskFailures.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow.g.cs index f7dc3c25a8a..341db07f15f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowPreviewWorkflow.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore.g.cs index c6753e9e679..13229ea923b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRestore.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs new file mode 100644 index 00000000000..7fd8c214733 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs @@ -0,0 +1,81 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/microsoft.graph.identityGovernance.resume")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResume", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultResumeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Source { get; set; } + + [Parameter(Mandatory = false)] + public string? Type { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + + if (this.IsParameterBound(nameof(Source))) + body.Source = Source; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume.g.cs index c6720a34889..d0342917ce0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs index a329922a159..9601c964fc0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs new file mode 100644 index 00000000000..f7ecd4471dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/microsoft.graph.identityGovernance.resume")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResume", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultResumeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Source { get; set; } + + [Parameter(Mandatory = false)] + public string? Type { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + + if (this.IsParameterBound(nameof(Source))) + body.Source = Source; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume.g.cs index f2bd91dedec..01292c1555a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume.g.cs index 81ef468baf7..f3d96cb21b7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTaskReportTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume.g.cs index 18e750a1ebe..1fdae1a6169 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowUserProcessingResultTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersionTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersionTaskProcessingResultResume.g.cs index 4bdb9339a33..c34efad1956 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersionTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowVersionTaskProcessingResultResume.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures.g.cs index 966c7be649f..5e97053e86e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewTaskFailures.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewWorkflow.g.cs index ebf2cdda007..e6f71ca4781 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowPreviewWorkflow.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRestore.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRestore.g.cs index 01519c4e908..3877981ff3b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRestore.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRestore.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs new file mode 100644 index 00000000000..1eb79ff02d8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume.g.cs @@ -0,0 +1,81 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/microsoft.graph.identityGovernance.resume")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResume", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultResumeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Source { get; set; } + + [Parameter(Mandatory = false)] + public string? Type { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.Runs.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + + if (this.IsParameterBound(nameof(Source))) + body.Source = Source; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume.g.cs index eb87fd62365..0ff736a2edc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs index 33a53c94716..a1174103722 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultTaskProcessingResultResume.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs new file mode 100644 index 00000000000..bd8bcff6cbe --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/microsoft.graph.identityGovernance.resume")] + [Cmdlet(VerbsLifecycle.Invoke, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResume", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultResumeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Source { get; set; } + + [Parameter(Mandatory = false)] + public string? Type { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionCallbackData? Data { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Identity.Governance.Client.IdentityGovernance.LifecycleWorkflows.Workflows.Item.SubjectProcessingResults.Item.TaskProcessingResults.Item.MicrosoftGraphIdentityGovernanceResume.ResumePostRequestBody(); + + if (this.IsParameterBound(nameof(Source))) + body.Source = Source; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].MicrosoftGraphIdentityGovernanceResume.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume.g.cs index 7c4d37fae97..9ef2b6a15a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume.g.cs index 6f44b349270..d5b52e8c1d9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume.g.cs index a7093c58a55..0bcf61467d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResultResume.g.cs index 13aedf8346c..0a6f312b5d5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowUserProcessingResultTaskProcessingResultResume.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultResume.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultResume.g.cs index 3ef64e8e05c..77414da4ad7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultResume.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/InvokeMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultResume.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreement.g.cs index 6f315089365..cccb961625f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreement.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementAcceptance.g.cs index 2bb7f2ce173..db9ca242394 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementAcceptance.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFile.g.cs index 01b5f23af5e..386022bbcd0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFile.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalization.g.cs index df399a1c433..f3969805697 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalization.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalizationVersion.g.cs index 7d1059080fb..f3350fe4ebe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileLocalizationVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileVersion.g.cs index 66f5c06a122..087a35bfe00 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgAgreementFileVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackage.g.cs index 38a9b0af60c..13897e4ed4a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackage.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs index ac218b80d6f..d11a4e40c4f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs index 71d093fd44d..657381ccfff 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs index 0e4f40580bf..e8c69a88448 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs index 8bfdf7ae9f8..8f2e17400a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageResourceRoleScope.g.cs index 78d930e9bf7..54cac45130a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageResourceRoleScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageSuggestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageSuggestion.g.cs index ee08ff1f39c..08ac9d83d94 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageSuggestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAccessPackageSuggestion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignment.g.cs index 7af227f7f9b..1bcc3ba6313 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignment.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicy.g.cs index 66f84325496..607aa11df1d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicy.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs index cb7f3c07188..38a86f45fec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyQuestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyQuestion.g.cs index 41e87b8adb2..19bb2fa3abf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyQuestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentPolicyQuestion.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentRequest.g.cs index 4618dccae69..051b4d8364b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAssignmentRequest.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAvailableAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAvailableAccessPackage.g.cs index a382c7d6e81..1682639d9b6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAvailableAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementAvailableAccessPackage.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalog.g.cs index 2f9735ca31e..114e5352e93 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalog.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs index 3a115c54d92..02d9692ad88 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResource.g.cs index 05abfe1a21e..e4dc3fefefd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRole.g.cs index b76645ef7f3..f0f1ea8114b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs index 28395e98f67..d5e01d9b07f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs index f9f145368a9..1a98f48a30f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScope.g.cs index b75e74176de..faf87df675b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs index 967f0d37470..8f8459cd327 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs index 305a3aa2498..5d9cecd263c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganization.g.cs index c74a9958801..fab77e92c9d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganization.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs index f8e63c16869..10f43dab12a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationExternalSponsorByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs index b5536b40a2c..a9cd9c0dfb0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementConnectedOrganizationInternalSponsorByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementControlConfiguration.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementControlConfiguration.g.cs index 2d99b583b0c..076235135fa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementControlConfiguration.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementControlConfiguration.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResource.g.cs index 2cbbeffc7fa..1ab689756c9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResource.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironment.g.cs index 366d84d4fab..9ab89e97789 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironment.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResource.g.cs index 180e421c491..d955b3abdb6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRole.g.cs index 535191232e3..54e30678347 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs index 474a72d93d7..dc8bf516796 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScope.g.cs index 3248e392fab..49c917db2f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs index 1ca7f94e13b..183c16d4fa4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequest.g.cs index de5cde8b7f5..484239568ee 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequest.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs index 17680aa1a3a..c595b4e05a9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResource.g.cs index 36a6d9a958c..76011b5a9e9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs index 6caa4666a85..7db2b51467e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs index 856413d719a..decf720708b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs index fd186af8827..3f97f8856ed 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs index bcd324bd7ad..62d16b456f8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs index 43715d383ce..2a590b4362c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs index dc8bf383990..30ffa0a947a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRole.g.cs index 60e31adb1d8..0d0edce94ba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs index 8f6d738334d..18e6bb9cd49 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScope.g.cs index 714db192871..9bccb95c0cf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs index 72635f3134f..51c610bf769 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRole.g.cs index 2874b80cca8..23d9e7c8e5c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleResourceScope.g.cs index e7fc4e24140..f790bcdd942 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScope.g.cs index 19613f4117b..ec99747e0cb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScope.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRole.g.cs index 047bcda33e5..c30ba163869 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs index 10a85750aa0..989a8f6c885 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceScope.g.cs index c5274adbec5..41183fa0ab4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs index b43edd5c67e..051d8aeb9c3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs index b4bd05d6b0f..5c9cc2121f4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs index add6f1a8d5a..04084b4b635 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScope.g.cs index f4aa5ea904f..bb8d03613e2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScope.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScopeResourceRole.g.cs index ef3747a9f18..9abc9fe4826 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementResourceScopeResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementSubject.g.cs index 3ddbd44a276..a74ab737115 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgEntitlementManagementSubject.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinition.g.cs index 80ca2bb6b89..c4da6a426eb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinition.g.cs @@ -128,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs index 8dfe35e1e78..aa40d0398a5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs @@ -29,6 +29,9 @@ public class NewMgIdentityGovernanceAccessReviewDefinitionInstanceCommand : Grap [Parameter(Mandatory = false)] public string? Status { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } @@ -59,6 +62,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Status))) body.Status = Status; + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + if (this.IsParameterBound(nameof(FallbackReviewers))) body.FallbackReviewers = FallbackReviewers!.ToList(); @@ -81,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs index e244202c133..1e53c70f76f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index f05a99aaf10..44f669f983e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -28,6 +28,9 @@ public class NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionComman [Parameter(Mandatory = false)] public global::System.DateTimeOffset? AppliedDateTime { get; set; } + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + [Parameter(Mandatory = false)] public string? ApplyResult { get; set; } @@ -79,6 +82,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AppliedDateTime))) body.AppliedDateTime = AppliedDateTime; + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + if (this.IsParameterBound(nameof(ApplyResult))) body.ApplyResult = ApplyResult; @@ -125,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs index 1e99ab6e619..49186720146 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs index 8f4947229fa..e85b75e7515 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs index 4cba03779f4..1ad757529c1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs @@ -30,6 +30,9 @@ public class NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionC [Parameter(Mandatory = false)] public global::System.DateTimeOffset? AppliedDateTime { get; set; } + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + [Parameter(Mandatory = false)] public string? ApplyResult { get; set; } @@ -81,6 +84,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AppliedDateTime))) body.AppliedDateTime = AppliedDateTime; + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + if (this.IsParameterBound(nameof(ApplyResult))) body.ApplyResult = ApplyResult; @@ -127,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs index b62f8a1c4f1..61d3a6dd503 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs index 6fd641b6a69..ae90b0dcc9b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs index e042b60e9c9..2e1e0b324ad 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.g.cs index 3a73670f2bd..26210cae435 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewHistoryDefinitionInstanceDownloadUri.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs new file mode 100644 index 00000000000..0183dad48ed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs @@ -0,0 +1,140 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/decisions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDecisionCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs new file mode 100644 index 00000000000..97664dddb34 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs new file mode 100644 index 00000000000..b78b0ef0545 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs @@ -0,0 +1,140 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinition", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DescriptionForAdmins { get; set; } + + [Parameter(Mandatory = false)] + public string? DescriptionForReviewers { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewNotificationRecipientItem[]? AdditionalNotificationRecipients { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? CreatedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? InstanceEnumerationScope { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleSettings? Settings { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageSettings[]? StageSettings { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DescriptionForAdmins))) + body.DescriptionForAdmins = DescriptionForAdmins; + + if (this.IsParameterBound(nameof(DescriptionForReviewers))) + body.DescriptionForReviewers = DescriptionForReviewers; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(AdditionalNotificationRecipients))) + body.AdditionalNotificationRecipients = AdditionalNotificationRecipients!.ToList(); + + if (this.IsParameterBound(nameof(CreatedBy))) + body.CreatedBy = CreatedBy; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(InstanceEnumerationScope))) + body.InstanceEnumerationScope = InstanceEnumerationScope; + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + if (this.IsParameterBound(nameof(Settings))) + body.Settings = Settings; + + if (this.IsParameterBound(nameof(StageSettings))) + body.StageSettings = StageSettings!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs new file mode 100644 index 00000000000..d19ec029a34 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewScheduleDefinitionId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..bb0db652bbb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs @@ -0,0 +1,79 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? UserPrincipalName { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(UserPrincipalName))) + body.UserPrincipalName = UserPrincipalName; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs new file mode 100644 index 00000000000..ae2ae185f44 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs @@ -0,0 +1,143 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..5f925d79a1b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs new file mode 100644 index 00000000000..81b6788b85d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs @@ -0,0 +1,89 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs new file mode 100644 index 00000000000..ae7555751ea --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs @@ -0,0 +1,145 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..a60179965cc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs @@ -0,0 +1,71 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class NewMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs new file mode 100644 index 00000000000..6fc61642ff7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs @@ -0,0 +1,98 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..3c0cdeb5efb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? UserPrincipalName { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(UserPrincipalName))) + body.UserPrincipalName = UserPrincipalName; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs new file mode 100644 index 00000000000..75c79df9460 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..45f62569fc2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs new file mode 100644 index 00000000000..96b27800aad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs @@ -0,0 +1,87 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs new file mode 100644 index 00000000000..626a3b0df4a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs @@ -0,0 +1,143 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..afa900a8d26 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs @@ -0,0 +1,69 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class NewMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequest.g.cs index 2e6ce0daf90..bde8888933b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequest.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs index 7db5d4146f2..d2a937df2e6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs index b04a059ebd1..b08e6e10cf0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalog.g.cs new file mode 100644 index 00000000000..c829055682a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalog.g.cs @@ -0,0 +1,98 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalog", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog))] + public class NewMgIdentityGovernanceCatalogCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsExternallyVisible { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogType? CatalogType { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogState? State { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsExternallyVisible))) + body.IsExternallyVisible = IsExternallyVisible; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(CatalogType))) + body.CatalogType = CatalogType; + + if (this.IsParameterBound(nameof(State))) + body.State = State; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog? result; + try + { + result = client.IdentityGovernance.Catalogs.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs new file mode 100644 index 00000000000..192cbe7a2e9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs @@ -0,0 +1,87 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogCustomWorkflowExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension))] + public class NewMgIdentityGovernanceCatalogCustomWorkflowExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionAuthenticationConfiguration? AuthenticationConfiguration { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionClientConfiguration? ClientConfiguration { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionEndpointConfiguration? EndpointConfiguration { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageCatalogId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(AuthenticationConfiguration))) + body.AuthenticationConfiguration = AuthenticationConfiguration; + + if (this.IsParameterBound(nameof(ClientConfiguration))) + body.ClientConfiguration = ClientConfiguration; + + if (this.IsParameterBound(nameof(EndpointConfiguration))) + body.EndpointConfiguration = EndpointConfiguration; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResource.g.cs new file mode 100644 index 00000000000..878fa9e948f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResource.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResource", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource))] + public class NewMgIdentityGovernanceCatalogResourceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceAttribute[]? Attributes { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageCatalogId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Attributes))) + body.Attributes = Attributes!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs new file mode 100644 index 00000000000..fbdc40ee50f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs @@ -0,0 +1,89 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResourceRoleResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class NewMgIdentityGovernanceCatalogResourceRoleResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.RoleType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs new file mode 100644 index 00000000000..2639761f204 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class NewMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.RoleType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs new file mode 100644 index 00000000000..d2413e3589b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class NewMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRootScope { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRootScope))) + body.IsRootScope = IsRootScope; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs new file mode 100644 index 00000000000..8836825b16a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResourceScopeResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class NewMgIdentityGovernanceCatalogResourceScopeResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRootScope { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRootScope))) + body.IsRootScope = IsRootScope; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..6fb5d829650 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..9b68870d04c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..7177365a6dc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..625dc47e939 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8fa24770307 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..e625660e654 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..6023e107537 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs @@ -0,0 +1,104 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class NewMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public string? CreatedBy { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? ModifiedBy { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectionInfo? ConnectionInfo { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectorType? ConnectorType { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector(); + + if (this.IsParameterBound(nameof(CreatedBy))) + body.CreatedBy = CreatedBy; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(ModifiedBy))) + body.ModifiedBy = ModifiedBy; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(ConnectionInfo))) + body.ConnectionInfo = ConnectionInfo; + + if (this.IsParameterBound(nameof(ConnectorType))) + body.ConnectorType = ConnectorType; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..278eaaf3ea8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..c3a0da5228a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..d15cc0fe76a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,99 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..8e52eb6e661 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs new file mode 100644 index 00000000000..543819765f2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..b8f571193e0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..4edfa826290 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..4a291d0fc79 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..41670833b6b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..b5419da1a6e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs new file mode 100644 index 00000000000..82577a5f757 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRequestId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..2a313a0521e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..61a10c56eda --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..f1ac7f95891 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..d0131ca9d8c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..b9cf636880e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..74d5c4393f6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8e92f2cd598 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,97 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..2989aede9d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,95 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs new file mode 100644 index 00000000000..08367057701 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("POST", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions")] + [Cmdlet(VerbsCommon.New, "MgIdentityGovernanceEntitlementManagementResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class NewMgIdentityGovernanceEntitlementManagementResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflow.g.cs index a547e5341fa..4f826ed5f17 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflow.g.cs @@ -52,6 +52,9 @@ public class NewMgIdentityGovernanceLifecycleWorkflowCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowExecutionConditions? ExecutionConditions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectType? TargetSubjectType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.QuarantineDetails? QuarantineDetails { get; set; } @@ -103,6 +106,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ExecutionConditions))) body.ExecutionConditions = ExecutionConditions; + if (this.IsParameterBound(nameof(TargetSubjectType))) + body.TargetSubjectType = TargetSubjectType; + if (this.IsParameterBound(nameof(QuarantineDetails))) body.QuarantineDetails = QuarantineDetails; @@ -122,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs index 2e33bc63a98..366a2072465 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs @@ -43,6 +43,9 @@ public class NewMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCommand [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionCallbackConfiguration? CallbackConfiguration { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionReplyMode? ReplyMode { get; set; } + @@ -79,6 +82,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(CallbackConfiguration))) body.CallbackConfiguration = CallbackConfiguration; + if (this.IsParameterBound(nameof(ReplyMode))) + body.ReplyMode = ReplyMode; + var requestAdapter = GetRequestAdapter(); var client = new ApiClient(requestAdapter); @@ -92,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs index 24f311c0dfa..17b313f9529 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowTask.g.cs index 9d33edbce18..768377655d8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowTask.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs index eca566fbf9c..b08eeabc898 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs index 3a2364670ef..7f05fea4222 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs index 6cb7b1796ea..c14741fb017 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs index 416574a46de..346cba6ce25 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs index 562b1de4c13..949505d9d95 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs index 7b7ce4a2881..e1c35ef368d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs index 79dedec2ba5..24554cf0ea2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs index 7d05fad1f3e..1547a54ba2d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs index 60558e53d85..da1596e616d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreement.g.cs index 451a9f1c36a..894f8e17bca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreement.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs index 13986e09543..d9f004c3e90 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFile.g.cs index fa724cfec7d..0f3338a2a6f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFile.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs index 8af7a274555..2ad7192b99a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs index bb0160cd4f1..a2298dc2d19 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs index 972fa2b4efe..f34f4b11654 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespace.g.cs index b571dfefe22..3d5000424fb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespace.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs index f6ad9509319..72a9c72e266 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignment.g.cs index f1085c6c11a..3822b5b6676 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignment.g.cs @@ -31,6 +31,9 @@ public class NewMgRoleManagementDirectoryRoleAssignmentCommand : GraphClientCmdl [Parameter(Mandatory = false)] public string? PrincipalId { get; set; } + [Parameter(Mandatory = false)] + public string? PrincipalOrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? RoleDefinitionId { get; set; } @@ -59,6 +62,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(PrincipalId))) body.PrincipalId = PrincipalId; + if (this.IsParameterBound(nameof(PrincipalOrganizationId))) + body.PrincipalOrganizationId = PrincipalOrganizationId; + if (this.IsParameterBound(nameof(RoleDefinitionId))) body.RoleDefinitionId = RoleDefinitionId; @@ -76,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs index 41e6f2fe227..65b16d251ef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs index 9f1ba81dab4..998cf043b14 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs index 17f8b0032af..c043ee7fd31 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinition.g.cs index b37ebcf7c54..bc141fe71ce 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinition.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs index d285eec14aa..8fdfbcd9201 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs index e6eca72b90b..519d79ee5aa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs index 00ceee64521..fe0f6b6afe9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs index 9cd8d55ca8c..ce747767d6d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespace.g.cs index d2048977709..7b3d41638ee 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespace.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs index 00827bd0bb6..275bef2e5b4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignment.g.cs index cad63b8b36f..dcf9d786a98 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignment.g.cs @@ -31,6 +31,9 @@ public class NewMgRoleManagementEntitlementManagementRoleAssignmentCommand : Gra [Parameter(Mandatory = false)] public string? PrincipalId { get; set; } + [Parameter(Mandatory = false)] + public string? PrincipalOrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? RoleDefinitionId { get; set; } @@ -59,6 +62,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(PrincipalId))) body.PrincipalId = PrincipalId; + if (this.IsParameterBound(nameof(PrincipalOrganizationId))) + body.PrincipalOrganizationId = PrincipalOrganizationId; + if (this.IsParameterBound(nameof(RoleDefinitionId))) body.RoleDefinitionId = RoleDefinitionId; @@ -76,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs index db79af1cdad..f1ac1b30a70 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs index 0d0b9841bdd..c9d6cc74c14 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs index b58a921472e..e2f96e77c79 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinition.g.cs index 0a45b1ce08b..7a67d1ac64c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinition.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs index 8b4e55c8138..9c37926a93c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs index 780bc064c4e..0ab94acba88 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs index 3b5e9a86fb5..808b6c0986f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs index c90a1710664..a413abe9d39 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/NewMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreement.g.cs index 38a8da2dedc..a32be8aa6ae 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreement.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementAcceptance.g.cs index 2915721f1bb..6a4f55f85f9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementAcceptance.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFile.g.cs index d7ecdfaa9b4..a0d85b842f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFile.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalization.g.cs index b2e2fcae9c9..72975c7f35e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalization.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalizationVersion.g.cs index 1c24a19049d..218a998c001 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileLocalizationVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileVersion.g.cs index f93b3200069..1fbc282da79 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgAgreementFileVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackage.g.cs index 85e0b93e1e5..13dc48d8e23 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApproval.g.cs index 8aa4d7bba1d..994359189cd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApproval.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs index 4d31404e91a..4e343b81849 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs index 921ee0dc21e..be1f0ff5c6f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs index cb8d1ea0972..ffa6350cc5a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleAccessPackageByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs index e5bad36d1ab..6b97a4f8e7f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageIncompatibleGroupByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageResourceRoleScope.g.cs index 4e3d30a21bf..26144e8dcf3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageResourceRoleScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageSuggestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageSuggestion.g.cs index 3acc7b19676..577a225a89c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageSuggestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAccessPackageSuggestion.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSuggestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignment.g.cs index cbb1a876011..10b4a5d67dc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicy.g.cs index c7df00c09e2..4f2cf599fa6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs index 1e51e58f512..33e3e3a7558 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomExtensionStageSettingId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyQuestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyQuestion.g.cs index e39e78af1f7..dc73966062f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyQuestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentPolicyQuestion.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageQuestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentRequest.g.cs index bb1e1e573ee..efa11a58eb6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAssignmentRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAvailableAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAvailableAccessPackage.g.cs index 27b6bbcb29d..547fdd32b89 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAvailableAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementAvailableAccessPackage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalog.g.cs index 134a4ccdbc4..89d3df55fe5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalog.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs index 4aafed686ce..c75c27f7a6c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResource.g.cs index 80385227faa..ec1778223a9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRole.g.cs index 95041827323..a784c775fb9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResource.g.cs index 9cadfc30a07..6038d5ca1d9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs index 13d3fe0ebd3..ebba48d7c0d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs index 2464bd01632..5696f699b1d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs index e20e7b1652d..1e11c9ea54a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScope.g.cs index 43a692311bc..7c17d543063 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResource.g.cs index 8fc387a88fe..f7d4fe48410 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs index a47a0385df1..98f30d69b9c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs index c3bf15f5d2a..7cecf673a6f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs index 3996ca2f02f..80b686f4d9e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganization.g.cs index 86eb341bc4f..7631591e1ed 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationExternalSponsorDirectoryObjectByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationExternalSponsorDirectoryObjectByRef.g.cs index 065b2f9b5f3..af2ec400572 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationExternalSponsorDirectoryObjectByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationExternalSponsorDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationInternalSponsorDirectoryObjectByRef.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationInternalSponsorDirectoryObjectByRef.g.cs index b02c3c420f6..48fdcb6353e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationInternalSponsorDirectoryObjectByRef.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementConnectedOrganizationInternalSponsorDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementControlConfiguration.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementControlConfiguration.g.cs index 5c61a956169..46218f32b0a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementControlConfiguration.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementControlConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ControlConfigurationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResource.g.cs index 03b0c3ec42e..11c551cb51b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResource.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironment.g.cs index b180f465cd9..91017099c64 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResource.g.cs index 89606b4a66f..a48483f0673 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRole.g.cs index ecfffb90fa0..bf6d76853a1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRole.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs index ee97d258b92..6a91f54ff1e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs index 890e2fbacdc..c73cb49bdf2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs index c37b2ba7793..86a254c816b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScope.g.cs index a07ab108dbf..0e417c51eaf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs index 487b9b7ac83..7f569e64c3f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs index 35e62069652..52819bb849c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs index e4ced434675..7413bc62a3b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequest.g.cs index 06612b99450..62db30a5543 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalog.g.cs index 9b8d53aacd8..7652757ee9b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalog.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs index 455b636b345..887deb2078d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResource.g.cs index 001e04a3759..1a4e2c67566 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs index 89b7afc1554..10e301ab67a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs index cffb0154d1f..95809153fca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs index ed49776c221..1c08d09a52d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs index 70a4b2562b1..b80aac08c6b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs index bc9b076d3c1..8f67934a876 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs index 09adf0ddded..c7936868cf3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs index 39d5eab69fe..4ecc96549f9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs index dd0a16dd694..2d52dbc90a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs index 47dc787ab83..df52e4a7f30 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs index 60b23d3792b..d7fc091248b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResource.g.cs index 70398bef936..a4d14250add 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResource.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRole.g.cs index 8b99f69266a..351e328833b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResource.g.cs index e68f1f7fc9a..bab4dfcdc0e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs index 2192b21131b..d002cc64b6f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs index c31f858bab7..680f625de57 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScope.g.cs index 2448d50e8c0..848400d1392 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResource.g.cs index 81c94fc7f37..3db18b83598 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs index 04322d53e65..bbdc5998ec8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs index d6dd9c35599..947cd403af1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRole.g.cs index c237ce4f377..5b6a4ad009e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResource.g.cs index 7581053fe3d..e18e0abdd5b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScope.g.cs index 249788514a7..d19dc640630 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScopeResource.g.cs index fbba16f5770..c1e76b4fbe8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScope.g.cs index 2f4ffb9df4b..b68c12ed7ec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScope.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResource.g.cs index baa2c5a1186..a423f1fb7e1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResource.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRole.g.cs index ddc10fe9517..dacc07dd385 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs index 3922dcb5a01..cc5cd49682b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs index 550dc5a444a..d3fffece096 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceScope.g.cs index 405ce11d238..dd990ba8da3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRole.g.cs index 9d4ef530692..86d84d669b0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRole.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResource.g.cs index 3fc4a8f70de..f5ff40bbe69 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResource.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs index 7a035646971..1245ae61bc5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs index fc450f7748b..5c8ead12659 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs index 948614674a2..34a74f12acb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs index df63c08d514..5755a818aa7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScope.g.cs index a747a823649..e4360bd8150 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResource.g.cs index fd7a5cb5912..ec12586c058 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRole.g.cs index 9b0ae1ab043..84a96e82c1d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRole.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRoleResource.g.cs index 78ae70c2a19..ada217af344 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementResourceScopeResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementSubject.g.cs index 19dc946b157..fa7121abb4a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgEntitlementManagementSubject.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSubjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinition.g.cs index 82d2321bb33..0018204ad4d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs index 3cece54ab1a..74397e719e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs index b784fa60de2..ad9541d4fde 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewReviewerId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index 509063d05bf..130aa013d30 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs index 8d814bd42fb..c02794e5249 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs index 49cdf06e5cf..c0e12249c89 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs index e7d7e8fbc1f..3d23cdc3194 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs index 0b6e66416a3..c01b3ee5be3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs index c16202ab9b0..c1df812720a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs index 4023ca08f3f..a6fa4bee7f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnified.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnified.g.cs new file mode 100644 index 00000000000..038e5b877ff --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnified.g.cs @@ -0,0 +1,55 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnified", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedCommand : GraphClientCmdlet + { + + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs new file mode 100644 index 00000000000..bcc2225e9e7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs new file mode 100644 index 00000000000..56b65b8d113 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs new file mode 100644 index 00000000000..17355f92c80 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinition", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewScheduleDefinitionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs new file mode 100644 index 00000000000..9ad2b13919b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..b830a26d09c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewReviewerId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs new file mode 100644 index 00000000000..c6045256195 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..baeeabcb944 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs new file mode 100644 index 00000000000..e6b8096da31 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs new file mode 100644 index 00000000000..7f8f56e2bd7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..e59f32f7373 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs new file mode 100644 index 00000000000..48e083e1066 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..dd045e26acc --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewReviewerId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs new file mode 100644 index 00000000000..e684e293611 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..ac2a7bf407c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs new file mode 100644 index 00000000000..7c900da2a94 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs new file mode 100644 index 00000000000..fde8b4b65f1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..d6916aa5743 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequest.g.cs index 2e18e6d5b93..054fbb1b5b8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs index b2badcf8384..1bae384ece0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs index b177a3cac7b..153a32c9c22 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs index 7b375f3f283..fa8dbb77b17 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalog.g.cs new file mode 100644 index 00000000000..f39b97f0297 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalog.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalog", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageCatalogId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs new file mode 100644 index 00000000000..eb6db44a138 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions/{customCalloutExtension-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogCustomWorkflowExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogCustomWorkflowExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomCalloutExtensionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomCalloutExtensionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResource.g.cs new file mode 100644 index 00000000000..e8500d0742e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResource.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResource", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs new file mode 100644 index 00000000000..c3843507449 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceRoleResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceRoleResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId1, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs new file mode 100644 index 00000000000..b760e13b796 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId1, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs new file mode 100644 index 00000000000..d0dba21c0bd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId1, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs new file mode 100644 index 00000000000..58b20a42490 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceScopeResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceScopeResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId1, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..a7ffdadd9f1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..89be8a3bb29 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceCatalogResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8cc9562d6a5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..e334b3589ae --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..0cb571081bb --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..7c25beb65d4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..94692332d61 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..e7fe6a53d1f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..b5f71b45b60 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..8a24338d459 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..b4ec294b462 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..5ba53ca3f32 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..eb57be46a7e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnector-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string ExternalOriginResourceConnectorId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExternalOriginResourceConnectorId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExternalOriginResourceConnectorId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..0f65aec77ad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..5a052bd185a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..e581f273eb4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..bfd1f44f4ef --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..b1048200671 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..4259a24e9b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,66 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 5)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..e443a7f84dd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..ea19656e2d7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs new file mode 100644 index 00000000000..a91a8ad2f0e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..dfe99325029 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..6fed47743dd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..f4d81bb77af --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..c71f363d438 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..261940416b2 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..f24c450ebc0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..0e28e27d1ab --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..2fd1ae54c03 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..58ab2536c0b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..099e72a6dbd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..c37418f7361 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs new file mode 100644 index 00000000000..208d33bddf0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..e078785f6a5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..c0aa8c981d3 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..86679936832 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..37d332ac474 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..45621cdc18a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..5054b001da5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..6ece606f38d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..44838ba1648 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..80ec75d8018 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..9556a15600c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..fe18c6d8ee8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..46f44595888 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..ef8abf3b75b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..6086ed34637 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..dc2c6666902 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent.g.cs @@ -0,0 +1,64 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..f36f4ede470 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..a6784cb84bd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs new file mode 100644 index 00000000000..bc8c74acb94 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs new file mode 100644 index 00000000000..e04e853528c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("DELETE", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}/files/{customDataProvidedResourceFile-id}/$value")] + [Cmdlet(VerbsCommon.Remove, "MgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgIdentityGovernanceEntitlementManagementResourceUploadSessionFileContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceFileId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceFileId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].Files[CustomDataProvidedResourceFileId].Content.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceFileId); + return; + } + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflow.g.cs index c62c84ed237..07ca00c0aba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflow.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs index 1798fcfb1b7..09fa2ee02e3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs index aec5b9ecb18..d9059ab7641 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItem.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs index 946e5e46278..784950e029d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflow.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs index 4e338a6343c..14cbffda9a9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowInsight.g.cs index 20c69a6496f..376ad7b4f39 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowInsight.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowTask.g.cs index 837cced51b5..90897124321 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowTask.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs index aec8f955d0c..f4333cd74ef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccess.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccess.g.cs index c29eb1f41f4..0c7f2bbb50e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccess.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccess.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroup.g.cs index 5e661903fcf..44257b39059 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroup.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs index 41c05b183b6..b595c8103c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs index 4cabffa51eb..1c148bd04bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs index aa4fe60c609..fb60b448237 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs index 2e234615733..72ef7a5a089 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs index bdd10b94825..9dcd5a383b2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs index a781742851f..99114ce2856 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs index 2a1e3241c7c..1e4f71039c3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs index e9022ac93e6..3b5b7843151 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreement.g.cs index 89790f960d9..575dae23ac7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreement.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs index ef189a7d278..510e9b19c73 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFile.g.cs index 45ebeef1f3b..6fedb45c602 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFile.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs index e33b0f31a49..42ef9c60a18 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs index bb2f2bb4404..22ef5401f3c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs index 2213a80f9ed..71a0b166693 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectory.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectory.g.cs index b523728f638..4e75f139484 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectory.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectory.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespace.g.cs index ce3e998f4db..05e8566a5ca 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespace.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs index 86a71fcd301..f4793028cc6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignment.g.cs index 01ae089dcfe..5705192637b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs index 6314c659d1b..de1fd7b9c9a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs index 990bbf852e2..92320d05609 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs index 4feeec5840f..8a170c455fd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs index c2dbc45fe01..7149ab31420 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinition.g.cs index 4eda5e1dccc..859ec24e34f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs index 79c8d51dddb..544fd831667 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs index 9134db991c2..c927321d6a9 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs index d7cc17a4de3..e63801b5eb0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs index 95fe0dc8e5d..d538e7f5bd1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagement.g.cs index 9a605770a86..c93ff222b49 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagement.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespace.g.cs index 21afaf7e534..1d2b672bb09 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespace.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs index ade30755a8c..624ee252012 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignment.g.cs index 2d392889f37..d02668d18b1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs index e2a3aefb362..de7caaf0441 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs index d08e76bead3..637d67f9a19 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs index cae0f978f12..325dd1083b0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs index 482cac60d00..06d188ad3aa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinition.g.cs index ab2e56f413d..d02b2517cf5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinition.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs index 58989a8ecab..307b28a0a87 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs index 335959fae62..ebf2cfb4dd5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs index cece86d7a2e..28bf7b4e49e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs index 504f1910fde..0a8720c99a2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/RemoveMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index f426900de80..9be0c402540 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResetMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResumeMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResumeMgEntitlementManagementAssignmentRequest.g.cs index 4e7cf967999..8b890526763 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResumeMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/ResumeMgEntitlementManagementAssignmentRequest.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SendMgIdentityGovernanceAccessReviewDefinitionInstanceReminder.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SendMgIdentityGovernanceAccessReviewDefinitionInstanceReminder.g.cs index 93086cbc39a..829c963a9e8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SendMgIdentityGovernanceAccessReviewDefinitionInstanceReminder.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SendMgIdentityGovernanceAccessReviewDefinitionInstanceReminder.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementAssignmentPolicy.g.cs index 6c09ad733e9..d19e9926d11 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementAssignmentPolicy.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementControlConfiguration.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementControlConfiguration.g.cs index 1fe5ce85e2a..8508b89382d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementControlConfiguration.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgEntitlementManagementControlConfiguration.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ControlConfigurationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgIdentityGovernanceAccessReviewDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgIdentityGovernanceAccessReviewDefinition.g.cs index 158656eba4d..403c1e94617 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgIdentityGovernanceAccessReviewDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/SetMgIdentityGovernanceAccessReviewDefinition.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgEntitlementManagementAssignmentRequest.g.cs index 7b226a4ef40..b2871ce6b2a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgEntitlementManagementAssignmentRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinition.g.cs index 7b0bce83428..d31384887f8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinition.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs index a1d64b270b5..3c2bd61ae74 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs index 59a6a0822c6..8dda8ee2f6d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs index 52f8f64526c..e031da0feec 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs index 61e380984f1..a9fb8f3f912 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs index dd9a9496976..3d35cb2db83 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs index a2d84e623a9..05f30602106 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs index 77d2a86f08b..380c18d3a32 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs index ba2f04729c2..af2615a6d24 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/StopMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreement.g.cs index fa82d5acd92..eb7406030fc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreement.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementAcceptance.g.cs index 13ed0b00fca..f62ce73dc85 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementAcceptance.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; @@ -139,7 +139,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].Acceptances[AgreementAcceptanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFile.g.cs index 1b3413766c7..6b643bb41e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFile.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].File.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalization.g.cs index db9bb806672..86be917e305 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalization.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].File.Localizations[AgreementFileLocalizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalizationVersion.g.cs index 159b6b0f7a9..590ba151446 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileLocalizationVersion.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].File.Localizations[AgreementFileLocalizationId].Versions[AgreementFileVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileVersion.g.cs index d459a855b9c..9709bd71fed 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgAgreementFileVersion.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Agreements[AgreementId].Files[AgreementFileLocalizationId].Versions[AgreementFileVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackage.g.cs index 39111d1f7a1..434533494f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackage.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApproval.g.cs index 15231d39ece..6257c03ed29 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApproval.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentApprovals[ApprovalId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs index 9544663a0cd..f943b6b68f7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentApprovalStage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackageAssignmentApprovals[ApprovalId].Stages[ApprovalStageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs index 979307bd412..c3b8296421c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageAssignmentPolicy.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].AssignmentPolicies[AccessPackageAssignmentPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentPolicyId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageResourceRoleScope.g.cs index 1843db844e3..3ff8d8c8e5e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageResourceRoleScope.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageSuggestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageSuggestion.g.cs index 55a19d65cb2..abd91356952 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageSuggestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAccessPackageSuggestion.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSuggestionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AccessPackageSuggestions[AccessPackageSuggestionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSuggestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignment.g.cs index 7cc578dd638..c16981fccdd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs index db9ff64dcef..7640f99d206 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyCustomExtensionStageSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomExtensionStageSettingId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AssignmentPolicies[AccessPackageAssignmentPolicyId].CustomExtensionStageSettings[CustomExtensionStageSettingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomExtensionStageSettingId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyQuestion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyQuestion.g.cs index 5f95fa771cf..c1d5f8a2476 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyQuestion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentPolicyQuestion.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageQuestionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AssignmentPolicies[AccessPackageAssignmentPolicyId].Questions[AccessPackageQuestionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageQuestionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentRequest.g.cs index a67817ec28a..90462e0a8e8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAssignmentRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageAssignmentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAvailableAccessPackage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAvailableAccessPackage.g.cs index 8da02be736f..7be168637bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAvailableAccessPackage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementAvailableAccessPackage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.AvailableAccessPackages[AvailableAccessPackageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AvailableAccessPackageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalog.g.cs index 580fdf84b92..d958649a12f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalog.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageCatalogId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs index 02e3c78c3d3..37912e5016f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogCustomWorkflowExtension.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResource.g.cs index 2b82df6b780..a68f9a1355f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRole.g.cs index cd4c050b9f1..dfe05eec65f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResource.g.cs index a1e80dc65af..3601a10c46c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs index bdbb19c83af..735d1a204fe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs index 697fc144683..74079573f33 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs index 0d9423b6599..b7d6b5aeb38 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScope.g.cs index e56251252b6..c03408ac4b1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResource.g.cs index 0c34d5dde61..80ebe1324d6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs index 21b70654f7d..1dc81105bbf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs index e95c12059bd..7e2a1de4e95 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs index 67732ee4af1..1854d9fcb41 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementConnectedOrganization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementConnectedOrganization.g.cs index c92c7df1722..a638059d539 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementConnectedOrganization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementConnectedOrganization.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ConnectedOrganizations[ConnectedOrganizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectedOrganizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResource.g.cs index e6d7ad5f693..0ccefb3940f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironment.g.cs index 915972ad40c..c293f1e69fb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironment.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceEnvironmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResource.g.cs index d71023bdbc8..dffba82e104 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRole.g.cs index ece72a9205c..2ece0df7776 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs index e3533bc582a..fb61e6dc73d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs index 10f2306e117..960f019af49 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs index c3fe628cbef..0194d084c97 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScope.g.cs index 3b6402d6573..d311a7e9456 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs index 150d6c3b216..ffcf496d283 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs index 7080834b9cb..c50804fc26b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs index 9fc30a680a2..88dd0b080bf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequest.g.cs index 8c0b648b947..027ad9762dc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequest.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalog.g.cs index 71238f15a42..6ab305b1926 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalog.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalog.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs index 33aa13b1e45..aa929cc2fbb 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogCustomWorkflowExtension.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.CustomWorkflowExtensions[CustomCalloutExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResource.g.cs index d7b8f5905e5..081113b6e32 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs index ff09906e383..e27a9faf2dd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.ResourceRoles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs index 860c384d54d..cd270c16411 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs index 586afd9c491..76ff754ab23 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs index c4ee20ea6ae..2740e0076e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs index cb05e8a70a9..a49f1834cba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs index 9bfa69d9f65..df6de0fc7f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.ResourceScopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs index 9ffcf8c91fa..2ac9c1bee52 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs index a837e530ddc..691f433df37 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRole.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs index c40dc01416a..77c31c977d3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResource.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs index c854772f414..ed25a81559c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResource.g.cs index 3331647a6db..51d4d2bfcb1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRole.g.cs index b94616f1529..d7ecfbbc8be 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResource.g.cs index 94e99f1f8fe..ad0b788e43a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs index dc146439976..9465dd58d82 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs index 436d70b5c96..b8984b7b02c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceRoleResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScope.g.cs index d90ec23a832..e7722ce6785 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResource.g.cs index 492b2e31452..47091393aae 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs index 4493de11aa7..2e49ceb8120 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs index 4a990bd3f5e..6698cb0b220 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRequestResourceScopeResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRole.g.cs index 2d395e6ae04..bc6bba02637 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResource.g.cs index 6fc4ce12f8c..725416095ba 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScope.g.cs index bee46b38ffc..3c4031c1e17 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScopeResource.g.cs index 283cbdb4575..460ad8f54aa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleResourceScopeResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScope.g.cs index add770998ad..5fba41d8010 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScope.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResource.g.cs index f029482bed5..be2122f87b5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRole.g.cs index 2298f31606f..7d73e882c49 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs index 435675a1dc3..45c8cc76b09 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs index 46adc1063c2..8ace1414e8c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceRoleResourceScope.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceScope.g.cs index 5873114294f..692a570bd96 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRole.g.cs index be1b6b3214c..20bc4d4e435 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRole.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResource.g.cs index 9f8acda2152..653858508e2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs index 98ba27eee17..5f43dba15ee 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceRole.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs index a626e624944..965e2719681 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs index 8a95065f6f2..920e3eb9c1d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs index 1f7f8475370..24c1a41ad09 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceRoleScopeRoleResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScope.g.cs index ed4e17cf817..13bed5f1c38 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScope.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResource.g.cs index 092ac925d76..716551cdcfe 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRole.g.cs index b97d2834b2f..e58ea4b18a4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRole.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRole.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRoleResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRoleResource.g.cs index 1aa53bdb299..5331ba7aea6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRoleResource.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementResourceScopeResourceRoleResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSetting.g.cs index d13067fc34c..e126dc26380 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSetting.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -70,7 +70,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSubject.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSubject.g.cs index c7402222563..adbfd7effe7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSubject.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgEntitlementManagementSubject.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSubjectId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.EntitlementManagement.Subjects[AccessPackageSubjectId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessPackageSubjectId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs index 86cd327a7e7..281b9dbb72f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstance.g.cs @@ -31,6 +31,9 @@ public class UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceCommand : G [Parameter(Mandatory = false)] public string? Status { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } @@ -61,6 +64,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Status))) body.Status = Status; + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + if (this.IsParameterBound(nameof(FallbackReviewers))) body.FallbackReviewers = FallbackReviewers!.ToList(); @@ -83,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; @@ -97,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs index 8b5cb918ea2..b01fd83f75f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceContactedReviewer.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewReviewerId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewReviewerId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs index 5a569d00d68..ed6b171133d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecision.g.cs @@ -30,6 +30,9 @@ public class UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionCom [Parameter(Mandatory = false)] public global::System.DateTimeOffset? AppliedDateTime { get; set; } + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + [Parameter(Mandatory = false)] public string? ApplyResult { get; set; } @@ -81,6 +84,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AppliedDateTime))) body.AppliedDateTime = AppliedDateTime; + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + if (this.IsParameterBound(nameof(ApplyResult))) body.ApplyResult = ApplyResult; @@ -127,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; @@ -141,7 +147,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs index ff8666d73ef..d1fea9ef712 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceDecisionInsight.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs index 92840311c72..46b928dd43c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStage.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs index def59c6a3ea..58012910365 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecision.g.cs @@ -32,6 +32,9 @@ public class UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisi [Parameter(Mandatory = false)] public global::System.DateTimeOffset? AppliedDateTime { get; set; } + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + [Parameter(Mandatory = false)] public string? ApplyResult { get; set; } @@ -83,6 +86,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AppliedDateTime))) body.AppliedDateTime = AppliedDateTime; + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + if (this.IsParameterBound(nameof(ApplyResult))) body.ApplyResult = ApplyResult; @@ -129,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; @@ -143,7 +149,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs index bf92489b94f..6a4a20ff352 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewDefinitionInstanceStageDecisionInsight.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GovernanceInsightId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs index 1ec3e2816a9..ca8e1c7f4ce 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinition.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs index 1609799a115..0b6a36f8221 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewHistoryDefinitionInstance.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryInstanceId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AccessReviews.HistoryDefinitions[AccessReviewHistoryDefinitionId].Instances[AccessReviewHistoryInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AccessReviewHistoryInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnified.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnified.g.cs new file mode 100644 index 00000000000..002262c99a6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnified.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnified", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedCommand : GraphClientCmdlet + { + + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UnifiedRoot? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs new file mode 100644 index 00000000000..892992d917b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecision.g.cs @@ -0,0 +1,156 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs new file mode 100644 index 00000000000..a89810d0e1e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionInsight.g.cs @@ -0,0 +1,82 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string GovernanceInsightId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs new file mode 100644 index 00000000000..cccda03ee14 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinition.g.cs @@ -0,0 +1,156 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinition", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DescriptionForAdmins { get; set; } + + [Parameter(Mandatory = false)] + public string? DescriptionForReviewers { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewNotificationRecipientItem[]? AdditionalNotificationRecipients { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? CreatedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? InstanceEnumerationScope { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleSettings? Settings { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStageSettings[]? StageSettings { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewScheduleDefinitionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DescriptionForAdmins))) + body.DescriptionForAdmins = DescriptionForAdmins; + + if (this.IsParameterBound(nameof(DescriptionForReviewers))) + body.DescriptionForReviewers = DescriptionForReviewers; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(AdditionalNotificationRecipients))) + body.AdditionalNotificationRecipients = AdditionalNotificationRecipients!.ToList(); + + if (this.IsParameterBound(nameof(CreatedBy))) + body.CreatedBy = CreatedBy; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(InstanceEnumerationScope))) + body.InstanceEnumerationScope = InstanceEnumerationScope; + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + if (this.IsParameterBound(nameof(Settings))) + body.Settings = Settings; + + if (this.IsParameterBound(nameof(StageSettings))) + body.StageSettings = StageSettings!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScheduleDefinition? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewScheduleDefinitionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs new file mode 100644 index 00000000000..f5293bbc8b6 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstance.g.cs @@ -0,0 +1,116 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..e0585df697a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer.g.cs @@ -0,0 +1,96 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? UserPrincipalName { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewReviewerId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(UserPrincipalName))) + body.UserPrincipalName = UserPrincipalName; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs new file mode 100644 index 00000000000..31354738793 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision.g.cs @@ -0,0 +1,160 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..ab75a03fec8 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight.g.cs @@ -0,0 +1,86 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs new file mode 100644 index 00000000000..934a8f5d00c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage.g.cs @@ -0,0 +1,106 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs new file mode 100644 index 00000000000..47471ddc90a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision.g.cs @@ -0,0 +1,162 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..d9b3ea3ec11 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight.g.cs @@ -0,0 +1,88 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/definitions/{accessReviewScheduleDefinition-id}/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedDefinitionInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewScheduleDefinitionId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string GovernanceInsightId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Definitions[AccessReviewScheduleDefinitionId].Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs new file mode 100644 index 00000000000..652b6911b1a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstance.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewError[]? Errors { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewScope? Scope { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(Errors))) + body.Errors = Errors!.ToList(); + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + if (this.IsParameterBound(nameof(Scope))) + body.Scope = Scope; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstance? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs new file mode 100644 index 00000000000..a8aec958025 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer.g.cs @@ -0,0 +1,94 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/contactedReviewers/{accessReviewReviewer-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewer", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceContactedReviewerCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewReviewerId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? UserPrincipalName { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewReviewerId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(UserPrincipalName))) + body.UserPrincipalName = UserPrincipalName; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewer? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].ContactedReviewers[AccessReviewReviewerId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewReviewerId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs new file mode 100644 index 00000000000..842198f5e39 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecision.g.cs @@ -0,0 +1,158 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs new file mode 100644 index 00000000000..a60f365b6b1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight.g.cs @@ -0,0 +1,84 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string GovernanceInsightId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs new file mode 100644 index 00000000000..e1c797abf78 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStage.g.cs @@ -0,0 +1,104 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceStage", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? EndDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? StartDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Status { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? FallbackReviewers { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewReviewerScope[]? Reviewers { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewStageId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage(); + + if (this.IsParameterBound(nameof(EndDateTime))) + body.EndDateTime = EndDateTime; + + if (this.IsParameterBound(nameof(StartDateTime))) + body.StartDateTime = StartDateTime; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + if (this.IsParameterBound(nameof(FallbackReviewers))) + body.FallbackReviewers = FallbackReviewers!.ToList(); + + if (this.IsParameterBound(nameof(Reviewers))) + body.Reviewers = Reviewers!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewStage? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewStageId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs new file mode 100644 index 00000000000..5551db1c24d --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision.g.cs @@ -0,0 +1,160 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecision", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? AccessReviewId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? AppliedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyDescription { get; set; } + + [Parameter(Mandatory = false)] + public string? ApplyResult { get; set; } + + [Parameter(Mandatory = false)] + public string? Decision { get; set; } + + [Parameter(Mandatory = false)] + public string? Justification { get; set; } + + [Parameter(Mandatory = false)] + public string? PrincipalLink { get; set; } + + [Parameter(Mandatory = false)] + public string? Recommendation { get; set; } + + [Parameter(Mandatory = false)] + public string? ResourceLink { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ReviewedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? AppliedBy { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.Identity? Principal { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItemResource? Resource { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserIdentity? ReviewedBy { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessReviewInstanceDecisionItemId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem(); + + if (this.IsParameterBound(nameof(AccessReviewId))) + body.AccessReviewId = AccessReviewId; + + if (this.IsParameterBound(nameof(AppliedDateTime))) + body.AppliedDateTime = AppliedDateTime; + + if (this.IsParameterBound(nameof(ApplyDescription))) + body.ApplyDescription = ApplyDescription; + + if (this.IsParameterBound(nameof(ApplyResult))) + body.ApplyResult = ApplyResult; + + if (this.IsParameterBound(nameof(Decision))) + body.Decision = Decision; + + if (this.IsParameterBound(nameof(Justification))) + body.Justification = Justification; + + if (this.IsParameterBound(nameof(PrincipalLink))) + body.PrincipalLink = PrincipalLink; + + if (this.IsParameterBound(nameof(Recommendation))) + body.Recommendation = Recommendation; + + if (this.IsParameterBound(nameof(ResourceLink))) + body.ResourceLink = ResourceLink; + + if (this.IsParameterBound(nameof(ReviewedDateTime))) + body.ReviewedDateTime = ReviewedDateTime; + + if (this.IsParameterBound(nameof(AppliedBy))) + body.AppliedBy = AppliedBy; + + if (this.IsParameterBound(nameof(Principal))) + body.Principal = Principal; + + if (this.IsParameterBound(nameof(Resource))) + body.Resource = Resource; + + if (this.IsParameterBound(nameof(ReviewedBy))) + body.ReviewedBy = ReviewedBy; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessReviewInstanceDecisionItem? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessReviewInstanceDecisionItemId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs new file mode 100644 index 00000000000..8ab968e3f24 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight.g.cs @@ -0,0 +1,86 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/accessReviews/unified/instances/{accessReviewInstance-id}/stages/{accessReviewStage-id}/decisions/{accessReviewInstanceDecisionItem-id}/insights/{governanceInsight-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsight", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight))] + public class UpdateMgIdentityGovernanceAccessReviewUnifiedInstanceStageDecisionInsightCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessReviewInstanceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessReviewStageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessReviewInstanceDecisionItemId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string GovernanceInsightId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? InsightCreatedDateTime { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GovernanceInsightId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight(); + + if (this.IsParameterBound(nameof(InsightCreatedDateTime))) + body.InsightCreatedDateTime = InsightCreatedDateTime; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.GovernanceInsight? result; + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.AccessReviews.Unified.Instances[AccessReviewInstanceId].Stages[AccessReviewStageId].Decisions[AccessReviewInstanceDecisionItemId].Insights[GovernanceInsightId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GovernanceInsightId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequest.g.cs index 9534983fe6c..f932bc0a4f3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequest.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs index 482cc07b7ad..05a56f6035e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequest.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs index 28003c21465..df9df868caa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApproval.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserConsentRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs index b7712dc68bb..3dffd4421fa 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceAppConsentRequestUserConsentRequestApprovalStage.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.AppConsent.AppConsentRequests[AppConsentRequestId].UserConsentRequests[UserConsentRequestId].Approval.Stages[ApprovalStageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalog.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalog.g.cs new file mode 100644 index 00000000000..edefeca32a1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalog.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalog", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog))] + public class UpdateMgIdentityGovernanceCatalogCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsExternallyVisible { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogType? CatalogType { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalogState? State { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageCatalogId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsExternallyVisible))) + body.IsExternallyVisible = IsExternallyVisible; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(CatalogType))) + body.CatalogType = CatalogType; + + if (this.IsParameterBound(nameof(State))) + body.State = State; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageCatalog? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageCatalogId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs new file mode 100644 index 00000000000..54110b81506 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogCustomWorkflowExtension.g.cs @@ -0,0 +1,104 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/customWorkflowExtensions/{customCalloutExtension-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogCustomWorkflowExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension))] + public class UpdateMgIdentityGovernanceCatalogCustomWorkflowExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomCalloutExtensionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionAuthenticationConfiguration? AuthenticationConfiguration { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionClientConfiguration? ClientConfiguration { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionEndpointConfiguration? EndpointConfiguration { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomCalloutExtensionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(AuthenticationConfiguration))) + body.AuthenticationConfiguration = AuthenticationConfiguration; + + if (this.IsParameterBound(nameof(ClientConfiguration))) + body.ClientConfiguration = ClientConfiguration; + + if (this.IsParameterBound(nameof(EndpointConfiguration))) + body.EndpointConfiguration = EndpointConfiguration; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomCalloutExtension? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].CustomWorkflowExtensions[CustomCalloutExtensionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomCalloutExtensionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResource.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResource.g.cs new file mode 100644 index 00000000000..a086961986e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResource.g.cs @@ -0,0 +1,116 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResource", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource))] + public class UpdateMgIdentityGovernanceCatalogResourceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceAttribute[]? Attributes { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Attributes))) + body.Attributes = Attributes!.ToList(); + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResource? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs new file mode 100644 index 00000000000..fa751e1b7e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceRole.g.cs @@ -0,0 +1,106 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResourceRoleResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class UpdateMgIdentityGovernanceCatalogResourceRoleResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.RoleType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId1, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs new file mode 100644 index 00000000000..dddfff929e5 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole.g.cs @@ -0,0 +1,108 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceRoles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id1}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRole", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole))] + public class UpdateMgIdentityGovernanceCatalogResourceRoleResourceScopeResourceRoleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId1 { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.RoleType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceRoleId1, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceRole? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceRoles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId1].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceRoleId1); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs new file mode 100644 index 00000000000..497e845f736 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class UpdateMgIdentityGovernanceCatalogResourceScopeResourceRoleResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRootScope { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId1, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRootScope))) + body.IsRootScope = IsRootScope; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs new file mode 100644 index 00000000000..d6cc0d4dda7 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceScopeResourceScope.g.cs @@ -0,0 +1,108 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resourceScopes/{accessPackageResourceScope-id}/resource/scopes/{accessPackageResourceScope-id1}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResourceScopeResourceScope", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope))] + public class UpdateMgIdentityGovernanceCatalogResourceScopeResourceScopeCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId1 { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRootScope { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginId { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginSystem { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(AccessPackageResourceScopeId1, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope(); + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsRootScope))) + body.IsRootScope = IsRootScope; + + if (this.IsParameterBound(nameof(OriginId))) + body.OriginId = OriginId; + + if (this.IsParameterBound(nameof(OriginSystem))) + body.OriginSystem = OriginSystem; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AccessPackageResourceScope? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].ResourceScopes[AccessPackageResourceScopeId].Resource.Scopes[AccessPackageResourceScopeId1].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AccessPackageResourceScopeId1); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..4ab97a7f025 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceCatalogResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..b9ab8da42f0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..241e292a2be --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..f0ca6901da9 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..88bfa4be8ed --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/accessPackages/{accessPackage-id}/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementAccessPackageResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.AccessPackages[AccessPackageId].ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..86542aee1bd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageCatalogId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Catalogs[AccessPackageCatalogId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs new file mode 100644 index 00000000000..102f09cbc29 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector.g.cs @@ -0,0 +1,120 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/externalOriginResourceConnectors/{externalOriginResourceConnector-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementExternalOriginResourceConnector", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector))] + public class UpdateMgIdentityGovernanceEntitlementManagementExternalOriginResourceConnectorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string ExternalOriginResourceConnectorId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CreatedBy { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Description { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public string? ModifiedBy { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? ModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectionInfo? ConnectionInfo { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ConnectorType? ConnectorType { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExternalOriginResourceConnectorId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector(); + + if (this.IsParameterBound(nameof(CreatedBy))) + body.CreatedBy = CreatedBy; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(Description))) + body.Description = Description; + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(ModifiedBy))) + body.ModifiedBy = ModifiedBy; + + if (this.IsParameterBound(nameof(ModifiedDateTime))) + body.ModifiedDateTime = ModifiedDateTime; + + if (this.IsParameterBound(nameof(ConnectionInfo))) + body.ConnectionInfo = ConnectionInfo; + + if (this.IsParameterBound(nameof(ConnectorType))) + body.ConnectorType = ConnectorType; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.ExternalOriginResourceConnector? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExternalOriginResourceConnectorId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ExternalOriginResourceConnectors[ExternalOriginResourceConnectorId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExternalOriginResourceConnectorId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..ca66874fc3a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,116 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8e310745267 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..48b22473b84 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,116 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..588a930a8ad --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs new file mode 100644 index 00000000000..4bb84920fd4 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceEnvironments/{accessPackageResourceEnvironment-id}/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceEnvironmentResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceEnvironmentId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceEnvironments[AccessPackageResourceEnvironmentId].Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs new file mode 100644 index 00000000000..e7f7b347d10 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/catalog/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestCatalogResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Catalog.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..1bab7357cc1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..8217fb10a3c --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..6e7f36a78cd --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..f38b2390793 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs new file mode 100644 index 00000000000..251fde4a6d1 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRequests/{accessPackageResourceRequest-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRequestResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRequestId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRequests[AccessPackageResourceRequestId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..0b1f17e321a --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..26e480915ca --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..edbcf20ed27 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..3a7b223808f --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/scope/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Scope.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..23c50a08313 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..3cc06a8f050 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resourceRoleScopes/{accessPackageResourceRoleScope-id}/role/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceRoleScopeRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceRoleScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.ResourceRoleScopes[AccessPackageResourceRoleScopeId].Role.Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs new file mode 100644 index 00000000000..1513e8be2d0 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession.g.cs @@ -0,0 +1,114 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/roles/{accessPackageResourceRole-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceRoleResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AccessPackageResourceRoleId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.Roles[AccessPackageResourceRoleId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs new file mode 100644 index 00000000000..3b84aa09a18 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession.g.cs @@ -0,0 +1,112 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/scopes/{accessPackageResourceScope-id}/resource/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceScopeResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string AccessPackageResourceScopeId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].Scopes[AccessPackageResourceScopeId].Resource.UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs new file mode 100644 index 00000000000..537d90f1354 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceEntitlementManagementResourceUploadSession.g.cs @@ -0,0 +1,110 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/entitlementManagement/resources/{accessPackageResource-id}/uploadSessions/{customDataProvidedResourceUploadSession-id}")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceEntitlementManagementResourceUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession))] + public class UpdateMgIdentityGovernanceEntitlementManagementResourceUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AccessPackageResourceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CustomDataProvidedResourceUploadSessionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsUploadDone { get; set; } + + [Parameter(Mandatory = false)] + public string? ReferenceId { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourcePayloads.Data? Data { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStats? Stats { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadStatus? Status { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CustomDataProvidedResourceUploadSessionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession(); + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(IsUploadDone))) + body.IsUploadDone = IsUploadDone; + + if (this.IsParameterBound(nameof(ReferenceId))) + body.ReferenceId = ReferenceId; + + if (this.IsParameterBound(nameof(Data))) + body.Data = Data; + + if (this.IsParameterBound(nameof(Stats))) + body.Stats = Stats; + + if (this.IsParameterBound(nameof(Status))) + body.Status = Status; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomDataProvidedResourceUploadSession? result; + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.EntitlementManagement.Resources[AccessPackageResourceId].UploadSessions[CustomDataProvidedResourceUploadSessionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CustomDataProvidedResourceUploadSessionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflow.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflow.g.cs index 0f62d95344c..cb32c49c6cc 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflow.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflow.g.cs @@ -53,6 +53,9 @@ public class UpdateMgIdentityGovernanceLifecycleWorkflowCommand : GraphClientCmd [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.WorkflowExecutionConditions? ExecutionConditions { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.SubjectType? TargetSubjectType { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.QuarantineDetails? QuarantineDetails { get; set; } @@ -104,6 +107,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ExecutionConditions))) body.ExecutionConditions = ExecutionConditions; + if (this.IsParameterBound(nameof(TargetSubjectType))) + body.TargetSubjectType = TargetSubjectType; + if (this.IsParameterBound(nameof(QuarantineDetails))) body.QuarantineDetails = QuarantineDetails; @@ -123,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; @@ -137,7 +143,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs index 686322c14b3..2da4f755af7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCreatedByMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].CreatedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs index b87a1a0153f..e7c5600f48a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtension.g.cs @@ -44,6 +44,9 @@ public class UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionComma [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.CustomExtensionCallbackConfiguration? CallbackConfiguration { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.IdentityGovernance.CustomTaskExtensionReplyMode? ReplyMode { get; set; } + @@ -80,6 +83,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(CallbackConfiguration))) body.CallbackConfiguration = CallbackConfiguration; + if (this.IsParameterBound(nameof(ReplyMode))) + body.ReplyMode = ReplyMode; + var requestAdapter = GetRequestAdapter(); var client = new ApiClient(requestAdapter); @@ -93,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; @@ -107,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs index 81487628aca..69723cd445e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionCreatedByMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId].CreatedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs index 7f453d695ce..bc1ed619749 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowCustomTaskExtensionLastModifiedByMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.CustomTaskExtensions[CustomTaskExtensionId].LastModifiedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomTaskExtensionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..00090fa3d83 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,132 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ArchiveFolder { get; set; } + + [Parameter(Mandatory = false)] + public string? DateFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeZone { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AutomaticRepliesSetting? AutomaticRepliesSetting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DelegateMeetingMessageDeliveryOptions? DelegateMeetingMessageDeliveryOptions { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.LocaleInfo? Language { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserPurpose? UserPurpose { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.WorkingHours? WorkingHours { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings(); + + if (this.IsParameterBound(nameof(ArchiveFolder))) + body.ArchiveFolder = ArchiveFolder; + + if (this.IsParameterBound(nameof(DateFormat))) + body.DateFormat = DateFormat; + + if (this.IsParameterBound(nameof(TimeFormat))) + body.TimeFormat = TimeFormat; + + if (this.IsParameterBound(nameof(TimeZone))) + body.TimeZone = TimeZone; + + if (this.IsParameterBound(nameof(AutomaticRepliesSetting))) + body.AutomaticRepliesSetting = AutomaticRepliesSetting; + + if (this.IsParameterBound(nameof(DelegateMeetingMessageDeliveryOptions))) + body.DelegateMeetingMessageDeliveryOptions = DelegateMeetingMessageDeliveryOptions; + + if (this.IsParameterBound(nameof(Language))) + body.Language = Language; + + if (this.IsParameterBound(nameof(UserPurpose))) + body.UserPurpose = UserPurpose; + + if (this.IsParameterBound(nameof(WorkingHours))) + body.WorkingHours = WorkingHours; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..dc3e089ab9e --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,130 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/lifecycleWorkflows/deletedItems/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ArchiveFolder { get; set; } + + [Parameter(Mandatory = false)] + public string? DateFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeZone { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AutomaticRepliesSetting? AutomaticRepliesSetting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DelegateMeetingMessageDeliveryOptions? DelegateMeetingMessageDeliveryOptions { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.LocaleInfo? Language { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserPurpose? UserPurpose { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.WorkingHours? WorkingHours { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings(); + + if (this.IsParameterBound(nameof(ArchiveFolder))) + body.ArchiveFolder = ArchiveFolder; + + if (this.IsParameterBound(nameof(DateFormat))) + body.DateFormat = DateFormat; + + if (this.IsParameterBound(nameof(TimeFormat))) + body.TimeFormat = TimeFormat; + + if (this.IsParameterBound(nameof(TimeZone))) + body.TimeZone = TimeZone; + + if (this.IsParameterBound(nameof(AutomaticRepliesSetting))) + body.AutomaticRepliesSetting = AutomaticRepliesSetting; + + if (this.IsParameterBound(nameof(DelegateMeetingMessageDeliveryOptions))) + body.DelegateMeetingMessageDeliveryOptions = DelegateMeetingMessageDeliveryOptions; + + if (this.IsParameterBound(nameof(Language))) + body.Language = Language; + + if (this.IsParameterBound(nameof(UserPurpose))) + body.UserPurpose = UserPurpose; + + if (this.IsParameterBound(nameof(WorkingHours))) + body.WorkingHours = WorkingHours; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs index b3c2aca5672..5abdc7abce2 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowDeletedItemWorkflowTask.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.DeletedItems.Workflows[WorkflowId].Tasks[TaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowInsight.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowInsight.g.cs index 068ae4f315e..86c84efaaa7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowInsight.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowInsight.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Insights.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs index 1d394210f00..d27c3b24392 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowLastModifiedByMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].LastModifiedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..fc0cdae7d34 --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,132 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/runs/{run-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class UpdateMgIdentityGovernanceLifecycleWorkflowRunSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RunId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ArchiveFolder { get; set; } + + [Parameter(Mandatory = false)] + public string? DateFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeZone { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AutomaticRepliesSetting? AutomaticRepliesSetting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DelegateMeetingMessageDeliveryOptions? DelegateMeetingMessageDeliveryOptions { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.LocaleInfo? Language { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserPurpose? UserPurpose { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.WorkingHours? WorkingHours { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings(); + + if (this.IsParameterBound(nameof(ArchiveFolder))) + body.ArchiveFolder = ArchiveFolder; + + if (this.IsParameterBound(nameof(DateFormat))) + body.DateFormat = DateFormat; + + if (this.IsParameterBound(nameof(TimeFormat))) + body.TimeFormat = TimeFormat; + + if (this.IsParameterBound(nameof(TimeZone))) + body.TimeZone = TimeZone; + + if (this.IsParameterBound(nameof(AutomaticRepliesSetting))) + body.AutomaticRepliesSetting = AutomaticRepliesSetting; + + if (this.IsParameterBound(nameof(DelegateMeetingMessageDeliveryOptions))) + body.DelegateMeetingMessageDeliveryOptions = DelegateMeetingMessageDeliveryOptions; + + if (this.IsParameterBound(nameof(Language))) + body.Language = Language; + + if (this.IsParameterBound(nameof(UserPurpose))) + body.UserPurpose = UserPurpose; + + if (this.IsParameterBound(nameof(WorkingHours))) + body.WorkingHours = WorkingHours; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs index c1d4812cac3..773a639ba12 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunTaskProcessingResultSubjectMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs index de5e3a5a641..77423ad5282 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowRunUserProcessingResultSubjectMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Runs[RunId].UserProcessingResults[UserProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSetting.g.cs index 27927044fe4..836a49dbeb0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSetting.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -76,7 +76,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs new file mode 100644 index 00000000000..4baa0a6d45b --- /dev/null +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting.g.cs @@ -0,0 +1,130 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.Governance.Client; +using Microsoft.Graph.PowerShell.Identity.Governance.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.Governance +{ + [GraphRoute("PATCH", "/identityGovernance/lifecycleWorkflows/workflows/{workflow-id}/subjectProcessingResults/{subjectProcessingResult-id}/taskProcessingResults/{taskProcessingResult-id}/subject/mailboxSettings")] + [Cmdlet(VerbsData.Update, "MgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSetting", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings))] + public class UpdateMgIdentityGovernanceLifecycleWorkflowSubjectProcessingResultTaskProcessingResultSubjectMailboxSettingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string WorkflowId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string SubjectProcessingResultId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TaskProcessingResultId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ArchiveFolder { get; set; } + + [Parameter(Mandatory = false)] + public string? DateFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeFormat { get; set; } + + [Parameter(Mandatory = false)] + public string? TimeZone { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.AutomaticRepliesSetting? AutomaticRepliesSetting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.DelegateMeetingMessageDeliveryOptions? DelegateMeetingMessageDeliveryOptions { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.LocaleInfo? Language { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.UserPurpose? UserPurpose { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.WorkingHours? WorkingHours { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(TaskProcessingResultId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings(); + + if (this.IsParameterBound(nameof(ArchiveFolder))) + body.ArchiveFolder = ArchiveFolder; + + if (this.IsParameterBound(nameof(DateFormat))) + body.DateFormat = DateFormat; + + if (this.IsParameterBound(nameof(TimeFormat))) + body.TimeFormat = TimeFormat; + + if (this.IsParameterBound(nameof(TimeZone))) + body.TimeZone = TimeZone; + + if (this.IsParameterBound(nameof(AutomaticRepliesSetting))) + body.AutomaticRepliesSetting = AutomaticRepliesSetting; + + if (this.IsParameterBound(nameof(DelegateMeetingMessageDeliveryOptions))) + body.DelegateMeetingMessageDeliveryOptions = DelegateMeetingMessageDeliveryOptions; + + if (this.IsParameterBound(nameof(Language))) + body.Language = Language; + + if (this.IsParameterBound(nameof(UserPurpose))) + body.UserPurpose = UserPurpose; + + if (this.IsParameterBound(nameof(WorkingHours))) + body.WorkingHours = WorkingHours; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.Governance.Client.Models.MailboxSettings? result; + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].SubjectProcessingResults[SubjectProcessingResultId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, TaskProcessingResultId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTask.g.cs index 2e509eb28a7..2aac0347e85 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTask.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs index 0fcb1561207..d52eadf3f2f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskProcessingResultSubjectMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs index 241bf3800fd..9d8dca6c2e4 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTaskReportTaskProcessingResultSubjectMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].TaskReports[TaskReportId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs index 52c5b0a07b9..6c880f5f55a 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowTemplateTaskProcessingResultSubjectMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.WorkflowTemplates[WorkflowTemplateId].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs index 430ea479827..20547532fbd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowUserProcessingResultSubjectMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].UserProcessingResults[UserProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs index da3c9c8432b..da940c39c3e 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionCreatedByMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Versions[WorkflowVersionVersionNumber].CreatedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs index 41b987e1542..684f0697f24 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionLastModifiedByMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Versions[WorkflowVersionVersionNumber].LastModifiedBy.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkflowVersionVersionNumber); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs index 0d3c4ac5188..c244bb0ed70 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTask.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Versions[WorkflowVersionVersionNumber].Tasks[TaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs index c53f45da7ad..2ad9d8c7daf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceLifecycleWorkflowVersionTaskProcessingResultSubjectMailboxSetting.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.LifecycleWorkflows.Workflows[WorkflowId].Versions[WorkflowVersionVersionNumber].Tasks[TaskId].TaskProcessingResults[TaskProcessingResultId].Subject.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TaskProcessingResultId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccess.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccess.g.cs index 68cd7fdd9f2..e47589c5ae1 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccess.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccess.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroup.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroup.g.cs index b9df4432e3d..5d2213eaed7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroup.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs index 1882e5828f9..c65fcf020d7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApproval.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals[ApprovalId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs index e79225cf879..33f65e63733 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentApprovalStage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.AssignmentApprovals[ApprovalId].Stages[ApprovalStageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ApprovalStageId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs index 35b131c2470..2b3c70daff8 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentSchedule.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.AssignmentSchedules[PrivilegedAccessGroupAssignmentScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs index 08427c2919e..4d87e94d1e3 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleInstance.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleInstances[PrivilegedAccessGroupAssignmentScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs index ccaa85d26a8..d59ef063808 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupAssignmentScheduleRequest.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.AssignmentScheduleRequests[PrivilegedAccessGroupAssignmentScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs index 58cd5e58b69..6c77573a3f5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilitySchedule.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.EligibilitySchedules[PrivilegedAccessGroupEligibilityScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs index 17b74c6bd36..5e7e8e831fd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleInstance.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleInstances[PrivilegedAccessGroupEligibilityScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs index 6c68101c868..c1b5dbbc730 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernancePrivilegedAccessGroupEligibilityScheduleRequest.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.PrivilegedAccess.Group.EligibilityScheduleRequests[PrivilegedAccessGroupEligibilityScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrivilegedAccessGroupEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreement.g.cs index 33cfcf548d2..7e9cace1f20 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreement.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.Agreements[AgreementId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs index f5609507133..c15a0bc5872 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementAcceptance.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.AgreementAcceptances[AgreementAcceptanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementAcceptanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFile.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFile.g.cs index 8d51e84deb5..d63a11cb580 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFile.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFile.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.Agreements[AgreementId].File.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs index af595c7e661..168083ac346 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalization.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.Agreements[AgreementId].File.Localizations[AgreementFileLocalizationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileLocalizationId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs index 5b9dc66db64..81419961544 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileLocalizationVersion.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.Agreements[AgreementId].File.Localizations[AgreementFileLocalizationId].Versions[AgreementFileVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs index 6676c5656b1..bbbdffb63cf 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgIdentityGovernanceTermsOfUseAgreementFileVersion.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.IdentityGovernance.TermsOfUse.Agreements[AgreementId].Files[AgreementFileLocalizationId].Versions[AgreementFileVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AgreementFileVersionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectory.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectory.g.cs index 81ba27e9247..4f97a9e4627 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectory.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespace.g.cs index 0cd73b819c0..05f5844cda5 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespace.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.ResourceNamespaces[UnifiedRbacResourceNamespaceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs index 2939b37e353..27fc7283e72 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryResourceNamespaceResourceAction.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.ResourceNamespaces[UnifiedRbacResourceNamespaceId].ResourceActions[UnifiedRbacResourceActionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignment.g.cs index 6496014e814..d6e5c73f526 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignment.g.cs @@ -32,6 +32,9 @@ public class UpdateMgRoleManagementDirectoryRoleAssignmentCommand : GraphClientC [Parameter(Mandatory = false)] public string? PrincipalId { get; set; } + [Parameter(Mandatory = false)] + public string? PrincipalOrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? RoleDefinitionId { get; set; } @@ -60,6 +63,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(PrincipalId))) body.PrincipalId = PrincipalId; + if (this.IsParameterBound(nameof(PrincipalOrganizationId))) + body.PrincipalOrganizationId = PrincipalOrganizationId; + if (this.IsParameterBound(nameof(RoleDefinitionId))) body.RoleDefinitionId = RoleDefinitionId; @@ -77,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; @@ -91,7 +97,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleAssignments[UnifiedRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs index 01aa2a81ab9..aedc0119f44 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentAppScope.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleAssignments[UnifiedRoleAssignmentId].AppScope.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs index f403230fe2c..0ca134fc1c6 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentSchedule.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleAssignmentSchedules[UnifiedRoleAssignmentScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs index 34a5d7775dd..486ff1cf8f0 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleInstance.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleAssignmentScheduleInstances[UnifiedRoleAssignmentScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs index 8971b72b85c..a0a12541d2c 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleAssignmentScheduleRequest.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleAssignmentScheduleRequests[UnifiedRoleAssignmentScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinition.g.cs index f75e2390157..a2428fcffc7 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinition.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleDefinitions[UnifiedRoleDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs index 881cfe3f8e4..74b2bb96f29 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleDefinitionInheritPermissionFrom.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleDefinitions[UnifiedRoleDefinitionId].InheritsPermissionsFrom[UnifiedRoleDefinitionId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs index 2e788425eb9..6a93e1b9003 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilitySchedule.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleEligibilitySchedules[UnifiedRoleEligibilityScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs index 2fe7c7655db..3097c5dceef 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleInstance.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleEligibilityScheduleInstances[UnifiedRoleEligibilityScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs index bcabb15a466..f9a400dcede 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementDirectoryRoleEligibilityScheduleRequest.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.Directory.RoleEligibilityScheduleRequests[UnifiedRoleEligibilityScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagement.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagement.g.cs index 93af7c921a6..11cea7e2d91 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagement.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagement.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespace.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespace.g.cs index de79c3e21bb..c5016196062 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespace.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespace.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.ResourceNamespaces[UnifiedRbacResourceNamespaceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceNamespaceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs index b2df91596d6..c4527ebea1f 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementResourceNamespaceResourceAction.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.ResourceNamespaces[UnifiedRbacResourceNamespaceId].ResourceActions[UnifiedRbacResourceActionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRbacResourceActionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignment.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignment.g.cs index 0368088a70c..673957f638d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignment.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignment.g.cs @@ -32,6 +32,9 @@ public class UpdateMgRoleManagementEntitlementManagementRoleAssignmentCommand : [Parameter(Mandatory = false)] public string? PrincipalId { get; set; } + [Parameter(Mandatory = false)] + public string? PrincipalOrganizationId { get; set; } + [Parameter(Mandatory = false)] public string? RoleDefinitionId { get; set; } @@ -60,6 +63,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(PrincipalId))) body.PrincipalId = PrincipalId; + if (this.IsParameterBound(nameof(PrincipalOrganizationId))) + body.PrincipalOrganizationId = PrincipalOrganizationId; + if (this.IsParameterBound(nameof(RoleDefinitionId))) body.RoleDefinitionId = RoleDefinitionId; @@ -77,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; @@ -91,7 +97,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleAssignments[UnifiedRoleAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs index b2842c7579e..3b57ab50099 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentAppScope.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleAssignments[UnifiedRoleAssignmentId].AppScope.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs index f18b857e169..01c1f286188 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentSchedule.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleAssignmentSchedules[UnifiedRoleAssignmentScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs index 8246436a899..4a012e90510 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleInstance.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleAssignmentScheduleInstances[UnifiedRoleAssignmentScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs index 7f8fdc844ea..fcfe0e4b1fd 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleAssignmentScheduleRequest.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleAssignmentScheduleRequests[UnifiedRoleAssignmentScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleAssignmentScheduleRequestId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinition.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinition.g.cs index 1a2c3e53397..12746a6515b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinition.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinition.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleDefinitions[UnifiedRoleDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs index 3d15e25a7ef..8fde4bad39b 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleDefinitionInheritPermissionFrom.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleDefinitions[UnifiedRoleDefinitionId].InheritsPermissionsFrom[UnifiedRoleDefinitionId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleDefinitionId1); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs index 08263051a94..893bc8bee03 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilitySchedule.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleEligibilitySchedules[UnifiedRoleEligibilityScheduleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs index 6b59bccd529..c93ea3a4883 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleInstance.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleEligibilityScheduleInstances[UnifiedRoleEligibilityScheduleInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleInstanceId); return; diff --git a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs index 05cad001887..754759bff1d 100644 --- a/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs +++ b/src/Identity.Governance/wrapper/v1.0/Cmdlets/UpdateMgRoleManagementEntitlementManagementRoleEligibilityScheduleRequest.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.RoleManagement.EntitlementManagement.RoleEligibilityScheduleRequests[UnifiedRoleEligibilityScheduleRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleEligibilityScheduleRequestId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Client/kiota-lock.json b/src/Identity.Partner/wrapper/v1.0/Client/kiota-lock.json index b84ca3f2dec..ad4f7eeeafb 100644 --- a/src/Identity.Partner/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Identity.Partner/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B78B31C33BF661695F89D53C8101ED18E154D60261A4852DA23EAE40E7035A1F4906C4661266041F58339E94ABD428DCC0434A788662507547E412D17B301645", + "descriptionHash": "2741CFE20908CD46E4E506711C94FC534CB8D46B93907A0F45D2572647F79287227EDB1D13DE0D42050088C11369F40D2C43BE5E930CC07A92A1EA7BD46A544A", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Identity.Partner.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer.g.cs index cc9996de6ea..ff5eeb30a1d 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminCustomerId : null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerCount.g.cs index 4e7da784593..2c598adff16 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs index e7d02fb314b..286926f43e3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminServiceManagementDetailId : DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetailCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetailCount.g.cs index 4b758dadd49..04f6204dce7 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetailCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetailCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_Get.g.cs index c34a6ccae5e..b8b60a4f6ce 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminServiceManagementDetailId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_List.g.cs index 3342b0c02f5..284c17acc34 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_Get.g.cs index 067aa4cadda..3a32235159f 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_List.g.cs index 4b67542ae10..a91c7fbef4b 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminCustomer_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship.g.cs index 57f8d93db6e..9a709ae55b5 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminRelationshipId : null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs index 7a2022e0117..f28d2da7b6d 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminAccessAssignmentId : DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignmentCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignmentCount.g.cs index 62b686e18cd..a13e34948e3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignmentCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_Get.g.cs index 55172b43202..2b563113f59 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminAccessAssignmentId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_List.g.cs index 79ff3618892..20da165f63b 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipCount.g.cs index 8ab09239ccd..fe63d227e18 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs index 5279e8d5a28..0ff7769abe3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminRelationshipOperationId : DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperationCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperationCount.g.cs index cb47edbdfb9..30939dc0d28 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperationCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_Get.g.cs index 3aef66c1d08..5b57a7a7ab3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipOperationId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_List.g.cs index b15278c01b7..c2219381217 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs index 94b513a3a27..5e912f8fed4 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DelegatedAdminRelationshipRequestId : DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequestCount.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequestCount.g.cs index dd5c3182323..7f80354d51e 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequestCount.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_Get.g.cs index 20f6a44319e..739c44b1e21 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipRequestId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_List.g.cs index aecc9a80a4b..29a5d5513c5 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationshipRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_Get.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_Get.g.cs index fc71a51cb24..4865f868b34 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_Get.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_List.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_List.g.cs index 54625a7b3bf..f9a980ad8e2 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_List.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipDelegatedAdminRelationship_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomer.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomer.g.cs index b5c213ce5d0..0d571613fe8 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomer.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomer.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs index ed75e52c699..d08ef3fa48d 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationship.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationship.g.cs index 4221f687976..d2ba49c825e 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationship.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationship.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs index d7ff11abafe..e7c99c80985 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs index a0e206392c0..00124197b4a 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs index 3cb83694a53..19af1b12a45 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomer.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomer.g.cs index 018e40822a2..881643f8548 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomer.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomer.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs index 7dc268f71de..949788599a4 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminServiceManagementDetailId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationship.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationship.g.cs index 1dd1cdfb564..308be4a9846 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationship.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationship.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs index d62030c3661..3f34ae31fe3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminAccessAssignmentId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs index 71257eba08e..cb15f487b2d 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipOperationId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs index 20db6acbe50..96e5e710f7b 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipRequestId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomer.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomer.g.cs index 389e6287cfc..03231ef0399 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomer.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomer.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminCustomers[DelegatedAdminCustomerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminCustomerId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs index a466a65fdc3..8709cf90118 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminCustomerServiceManagementDetail.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminServiceManagementDetailId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminCustomers[DelegatedAdminCustomerId].ServiceManagementDetails[DelegatedAdminServiceManagementDetailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminServiceManagementDetailId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationship.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationship.g.cs index 63084f9cc36..d64b5d3c18a 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationship.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationship.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminRelationships[DelegatedAdminRelationshipId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs index 4d5324d8666..e74c4c29ca3 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipAccessAssignment.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminAccessAssignmentId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminRelationships[DelegatedAdminRelationshipId].AccessAssignments[DelegatedAdminAccessAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminAccessAssignmentId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs index bee5be2e04a..6bb52b4f385 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipOperation.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipOperationId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminRelationships[DelegatedAdminRelationshipId].Operations[DelegatedAdminRelationshipOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipOperationId); return; diff --git a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs index e2f34c59e7f..f62cbbfa5a1 100644 --- a/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs +++ b/src/Identity.Partner/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipDelegatedAdminRelationshipRequest.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipRequestId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.DelegatedAdminRelationships[DelegatedAdminRelationshipId].Requests[DelegatedAdminRelationshipRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DelegatedAdminRelationshipRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs index b49b758ca54..17d1d28b7ea 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScope.cs @@ -46,6 +46,16 @@ public partial class AccessReviewReviewerScope : IAdditionalDataHolder, IParsabl #else public string QueryType { get; set; } #endif + /// The identifier of the reviewer. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ReviewerId { get; set; } +#nullable restore +#else + public string ReviewerId { get; set; } +#endif + /// The scopeType property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.AccessReviewReviewerScopeType? ScopeType { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -75,6 +85,8 @@ public virtual IDictionary> GetFieldDeserializers() { "query", n => { Query = n.GetStringValue(); } }, { "queryRoot", n => { QueryRoot = n.GetStringValue(); } }, { "queryType", n => { QueryType = n.GetStringValue(); } }, + { "reviewerId", n => { ReviewerId = n.GetStringValue(); } }, + { "scopeType", n => { ScopeType = n.GetEnumValue(); } }, }; } /// @@ -88,6 +100,8 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteStringValue("query", Query); writer.WriteStringValue("queryRoot", QueryRoot); writer.WriteStringValue("queryType", QueryType); + writer.WriteStringValue("reviewerId", ReviewerId); + writer.WriteEnumValue("scopeType", ScopeType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs new file mode 100644 index 00000000000..bb9f0e3446c --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/AccessReviewReviewerScopeType.cs @@ -0,0 +1,44 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum AccessReviewReviewerScopeType + #pragma warning restore CS1591 + { + [EnumMember(Value = "user")] + #pragma warning disable CS1591 + User, + #pragma warning restore CS1591 + [EnumMember(Value = "group")] + #pragma warning disable CS1591 + Group, + #pragma warning restore CS1591 + [EnumMember(Value = "self")] + #pragma warning disable CS1591 + Self, + #pragma warning restore CS1591 + [EnumMember(Value = "manager")] + #pragma warning disable CS1591 + Manager, + #pragma warning restore CS1591 + [EnumMember(Value = "sponsor")] + #pragma warning disable CS1591 + Sponsor, + #pragma warning restore CS1591 + [EnumMember(Value = "resourceOwner")] + #pragma warning disable CS1591 + ResourceOwner, + #pragma warning restore CS1591 + [EnumMember(Value = "managerOrSponsor")] + #pragma warning disable CS1591 + ManagerOrSponsor, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Chat.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Chat.cs index 6df1e0e8b71..1e62feeb8c9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Identity.SignIns. #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..fd354062311 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..05f491937a5 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationDefault.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationDefault.cs index 30cb24f78e4..ddf4d7f3ee7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationDefault.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationDefault.cs @@ -78,6 +78,14 @@ public partial class CrossTenantAccessPolicyConfigurationDefault : global::Micro #endif /// If true, the default configuration is set to the system default configuration. If false, the default settings are customized. public bool? IsServiceDefault { get; set; } + /// Defines the default Microsoft 365 cross-tenant capabilities for inbound access from external organizations. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? M365Capabilities { get; set; } +#nullable restore +#else + public List M365Capabilities { get; set; } +#endif /// Defines your default configuration for inbound Microsoft 365 collaboration settings that determine which users from other organizations can collaborate with your organization using Microsoft 365 apps. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -129,6 +137,7 @@ public override IDictionary> GetFieldDeserializers() { "inboundTrust", n => { InboundTrust = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyInboundTrust.CreateFromDiscriminatorValue); } }, { "invitationRedemptionIdentityProviderConfiguration", n => { InvitationRedemptionIdentityProviderConfiguration = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.DefaultInvitationRedemptionIdentityProviderConfiguration.CreateFromDiscriminatorValue); } }, { "isServiceDefault", n => { IsServiceDefault = n.GetBoolValue(); } }, + { "m365Capabilities", n => { M365Capabilities = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue)?.AsList(); } }, { "m365CollaborationInbound", n => { M365CollaborationInbound = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyM365CollaborationInboundSetting.CreateFromDiscriminatorValue); } }, { "m365CollaborationOutbound", n => { M365CollaborationOutbound = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyM365CollaborationOutboundSetting.CreateFromDiscriminatorValue); } }, { "tenantRestrictions", n => { TenantRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyTenantRestrictions.CreateFromDiscriminatorValue); } }, @@ -151,6 +160,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("inboundTrust", InboundTrust); writer.WriteObjectValue("invitationRedemptionIdentityProviderConfiguration", InvitationRedemptionIdentityProviderConfiguration); writer.WriteBoolValue("isServiceDefault", IsServiceDefault); + writer.WriteCollectionOfObjectValues("m365Capabilities", M365Capabilities); writer.WriteObjectValue("m365CollaborationInbound", M365CollaborationInbound); writer.WriteObjectValue("m365CollaborationOutbound", M365CollaborationOutbound); writer.WriteObjectValue("tenantRestrictions", TenantRestrictions); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationPartner.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationPartner.cs index a3011136652..3de2edc75f0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationPartner.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/CrossTenantAccessPolicyConfigurationPartner.cs @@ -82,6 +82,14 @@ public partial class CrossTenantAccessPolicyConfigurationPartner : IAdditionalDa public bool? IsInMultiTenantOrganization { get; set; } /// Identifies whether the partner-specific configuration is a Cloud Service Provider for your organization. public bool? IsServiceProvider { get; set; } + /// Defines the partner-specific Microsoft 365 cross-tenant capabilities for inbound access from the partner organization. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? M365Capabilities { get; set; } +#nullable restore +#else + public List M365Capabilities { get; set; } +#endif /// Defines your partner-specific configuration for inbound Microsoft 365 collaboration settings that determine which users from the partner organization can collaborate with your organization using Microsoft 365 apps. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -105,6 +113,14 @@ public partial class CrossTenantAccessPolicyConfigurationPartner : IAdditionalDa #nullable restore #else public string OdataType { get; set; } +#endif + /// The serviceProviderConstraints property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints? ServiceProviderConstraints { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints ServiceProviderConstraints { get; set; } #endif /// The tenant identifier for the partner Microsoft Entra organization. Read-only. Key. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -157,9 +173,11 @@ public virtual IDictionary> GetFieldDeserializers() { "inboundTrust", n => { InboundTrust = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyInboundTrust.CreateFromDiscriminatorValue); } }, { "isInMultiTenantOrganization", n => { IsInMultiTenantOrganization = n.GetBoolValue(); } }, { "isServiceProvider", n => { IsServiceProvider = n.GetBoolValue(); } }, + { "m365Capabilities", n => { M365Capabilities = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue)?.AsList(); } }, { "m365CollaborationInbound", n => { M365CollaborationInbound = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyM365CollaborationInboundSetting.CreateFromDiscriminatorValue); } }, { "m365CollaborationOutbound", n => { M365CollaborationOutbound = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyM365CollaborationOutboundSetting.CreateFromDiscriminatorValue); } }, { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "serviceProviderConstraints", n => { ServiceProviderConstraints = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints.CreateFromDiscriminatorValue); } }, { "tenantId", n => { TenantId = n.GetStringValue(); } }, { "tenantRestrictions", n => { TenantRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CrossTenantAccessPolicyTenantRestrictions.CreateFromDiscriminatorValue); } }, }; @@ -181,9 +199,11 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteObjectValue("inboundTrust", InboundTrust); writer.WriteBoolValue("isInMultiTenantOrganization", IsInMultiTenantOrganization); writer.WriteBoolValue("isServiceProvider", IsServiceProvider); + writer.WriteCollectionOfObjectValues("m365Capabilities", M365Capabilities); writer.WriteObjectValue("m365CollaborationInbound", M365CollaborationInbound); writer.WriteObjectValue("m365CollaborationOutbound", M365CollaborationOutbound); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("serviceProviderConstraints", ServiceProviderConstraints); writer.WriteStringValue("tenantId", TenantId); writer.WriteObjectValue("tenantRestrictions", TenantRestrictions); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Entity.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Entity.cs index 7aa1daa97b5..241eca239a5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Entity.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Entity.cs @@ -171,6 +171,7 @@ public Entity() "#microsoft.graph.listItem" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ListItem(), "#microsoft.graph.listItemVersion" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ListItemVersion(), "#microsoft.graph.longRunningOperation" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.LongRunningOperation(), + "#microsoft.graph.m365CapabilityBase" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(), "#microsoft.graph.mailFolder" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.MailFolder(), "#microsoft.graph.managedAppOperation" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ManagedAppOperation(), "#microsoft.graph.managedAppPolicy" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ManagedAppPolicy(), @@ -255,6 +256,7 @@ public Entity() "#microsoft.graph.sectionGroup" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.SectionGroup(), "#microsoft.graph.sensitivityLabel" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.SensitivityLabel(), "#microsoft.graph.servicePrincipalRiskDetection" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServicePrincipalRiskDetection(), + "#microsoft.graph.serviceProviderConstraints" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints(), "#microsoft.graph.serviceStorageQuotaBreakdown" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceStorageQuotaBreakdown(), "#microsoft.graph.sharedInsight" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.SharedInsight(), "#microsoft.graph.sharedWithChannelTeamInfo" => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.SharedWithChannelTeamInfo(), diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Group.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Group.cs index 81d6c122c68..0d66e271170 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Identity.SignIns #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/List.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/List.cs index 9d7eea9bf1b..f2aca22cda7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/List.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Identity.SignIns. #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ListItem.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ListItem.cs index e91deef737a..0ef656312f4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Identity.Sign #else public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBase.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBase.cs new file mode 100644 index 00000000000..e6869d5bdca --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBase.cs @@ -0,0 +1,70 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class M365CapabilityBase : global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The inbound access settings for the capability. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess? InboundAccess { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess InboundAccess { get; set; } +#endif + /// The automatically updated last modified timestamp for the capability. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. + public DateTimeOffset? LastModifiedDateTime { get; set; } + /// The name or identifier of the capability. Key. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { get; set; } +#nullable restore +#else + public string Name { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "inboundAccess", n => { InboundAccess = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess.CreateFromDiscriminatorValue); } }, + { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("inboundAccess", InboundAccess); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteStringValue("name", Name); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBaseCollectionResponse.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBaseCollectionResponse.cs new file mode 100644 index 00000000000..90d684f7d56 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityBaseCollectionResponse.cs @@ -0,0 +1,56 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class M365CapabilityBaseCollectionResponse : global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.BaseCollectionPaginationCountResponse, IParsable + #pragma warning restore CS1591 + { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { get; set; } +#nullable restore +#else + public List Value { get; set; } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityInboundAccess.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityInboundAccess.cs new file mode 100644 index 00000000000..72b5d7ec093 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityInboundAccess.cs @@ -0,0 +1,79 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class M365CapabilityInboundAccess : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Indicates whether this capability should be allowed or blocked for inbound access. + public bool? IsAllowed { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// Specifies the included and excluded resource scopes for the capability. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScopes? ResourceScopes { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScopes ResourceScopes { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public M365CapabilityInboundAccess() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "isAllowed", n => { IsAllowed = n.GetBoolValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "resourceScopes", n => { ResourceScopes = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScopes.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteBoolValue("isAllowed", IsAllowed); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("resourceScopes", ResourceScopes); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScope.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScope.cs new file mode 100644 index 00000000000..842d256f8c5 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScope.cs @@ -0,0 +1,79 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class M365CapabilityResourceScope : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The ID of the resource to modify. The value is either All, to apply the capability to all resources of the type specified by resourceType (all users or all groups), or the GUID of a specific user or group. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceId { get; set; } +#nullable restore +#else + public string ResourceId { get; set; } +#endif + /// The resourceType property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365ResourceType? ResourceType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public M365CapabilityResourceScope() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScope CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScope(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + { "resourceType", n => { ResourceType = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("resourceId", ResourceId); + writer.WriteEnumValue("resourceType", ResourceType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScopes.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScopes.cs new file mode 100644 index 00000000000..e72a9bd789f --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365CapabilityResourceScopes.cs @@ -0,0 +1,85 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class M365CapabilityResourceScopes : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Resources to exclude from the scope. If a resource appears in both included and excluded, the excluded property takes precedence. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Excluded { get; set; } +#nullable restore +#else + public List Excluded { get; set; } +#endif + /// Resources to include in the scope. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Included { get; set; } +#nullable restore +#else + public List Included { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public M365CapabilityResourceScopes() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScopes CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScopes(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "excluded", n => { Excluded = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScope.CreateFromDiscriminatorValue)?.AsList(); } }, + { "included", n => { Included = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityResourceScope.CreateFromDiscriminatorValue)?.AsList(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteCollectionOfObjectValues("excluded", Excluded); + writer.WriteCollectionOfObjectValues("included", Included); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365ResourceType.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365ResourceType.cs new file mode 100644 index 00000000000..c4fd6b6a088 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/M365ResourceType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum M365ResourceType + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "group")] + #pragma warning disable CS1591 + Group, + #pragma warning restore CS1591 + [EnumMember(Value = "user")] + #pragma warning disable CS1591 + User, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 4853a1aa785..1078ed66227 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Iden #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..120fca6c0ff --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 9812e916de4..937bd55ff7b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/ServiceProviderConstraints.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ServiceProviderConstraints.cs new file mode 100644 index 00000000000..74dc282730b --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/ServiceProviderConstraints.cs @@ -0,0 +1,46 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ServiceProviderConstraints : global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index d7ad965a01d..4653205f62b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/User.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/User.cs index 629e4e179f7..9c63bfe8c0f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/User.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Identity.SignIns. #nullable restore #else public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Models/UserActivityType.cs index 09684a234c2..60bebfcb06d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs index cc3cfd00a68..17022e823f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/DefaultRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.ResetToSystemDefault; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; @@ -19,6 +20,11 @@ namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenan [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class DefaultRequestBuilder : BaseRequestBuilder { + /// The m365Capabilities property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.M365CapabilitiesRequestBuilder M365Capabilities + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.M365CapabilitiesRequestBuilder(PathParameters, RequestAdapter); + } /// The resetToSystemDefault property public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.ResetToSystemDefault.ResetToSystemDefaultRequestBuilder ResetToSystemDefault { diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Count/CountRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b4fe7e9cc22 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\default\m365Capabilities\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs new file mode 100644 index 00000000000..2366dd43bf4 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs @@ -0,0 +1,230 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\default\m365Capabilities\{m365CapabilityBase-name} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public M365CapabilityBaseNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities/{m365CapabilityBase%2Dname}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public M365CapabilityBaseNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities/{m365CapabilityBase%2Dname}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property m365Capabilities for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines the default Microsoft 365 cross-tenant capabilities for inbound access from external organizations. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update an existing Microsoft 365 cross-tenant capability for the default cross-tenant access policy. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property m365Capabilities for policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Defines the default Microsoft 365 cross-tenant capabilities for inbound access from external organizations. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update an existing Microsoft 365 cross-tenant capability for the default cross-tenant access policy. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Defines the default Microsoft 365 cross-tenant capabilities for inbound access from external organizations. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/M365CapabilitiesRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/M365CapabilitiesRequestBuilder.cs new file mode 100644 index 00000000000..93347db48ba --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Default/M365Capabilities/M365CapabilitiesRequestBuilder.cs @@ -0,0 +1,240 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\default\m365Capabilities + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.SignIns.Client.policies.crossTenantAccessPolicy.default.m365Capabilities.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("m365CapabilityBase%2Dname", position); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public M365CapabilitiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public M365CapabilitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/default/m365Capabilities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for the default cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new Microsoft 365 cross-tenant capability for the default cross-tenant access policy. The @odata.type property in the request body is required to specify which type of capability to create. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for the default cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create a new Microsoft 365 cross-tenant capability for the default cross-tenant access policy. The @odata.type property in the request body is required to specify which type of capability to create. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.M365CapabilitiesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.M365CapabilitiesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for the default cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs index 3cdf7a70dd4..018b40f70c4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/CrossTenantAccessPolicyConfigurationPartnerTenantItemRequestBuilder.cs @@ -3,6 +3,8 @@ using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.IdentitySynchronization; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -24,6 +26,16 @@ public partial class CrossTenantAccessPolicyConfigurationPartnerTenantItemReques { get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.IdentitySynchronization.IdentitySynchronizationRequestBuilder(PathParameters, RequestAdapter); } + /// The m365Capabilities property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.M365CapabilitiesRequestBuilder M365Capabilities + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.M365CapabilitiesRequestBuilder(PathParameters, RequestAdapter); + } + /// The serviceProviderConstraints property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints.ServiceProviderConstraintsRequestBuilder ServiceProviderConstraints + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints.ServiceProviderConstraintsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Count/CountRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7697a545873 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\partners\{crossTenantAccessPolicyConfigurationPartner-tenantId}\m365Capabilities\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs new file mode 100644 index 00000000000..4a05ad0e168 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/Item/M365CapabilityBaseNameItemRequestBuilder.cs @@ -0,0 +1,231 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\partners\{crossTenantAccessPolicyConfigurationPartner-tenantId}\m365Capabilities\{m365CapabilityBase-name} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public M365CapabilityBaseNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities/{m365CapabilityBase%2Dname}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public M365CapabilityBaseNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities/{m365CapabilityBase%2Dname}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete a Microsoft 365 cross-tenant capability from a partner organization in the cross-tenant access policy. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Defines the partner-specific Microsoft 365 cross-tenant capabilities for inbound access from the partner organization. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update an existing Microsoft 365 cross-tenant capability for a partner organization in the cross-tenant access policy. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a Microsoft 365 cross-tenant capability from a partner organization in the cross-tenant access policy. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Defines the partner-specific Microsoft 365 cross-tenant capabilities for inbound access from the partner organization. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update an existing Microsoft 365 cross-tenant capability for a partner organization in the cross-tenant access policy. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Defines the partner-specific Microsoft 365 cross-tenant capabilities for inbound access from the partner organization. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilityBaseNameItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/M365CapabilitiesRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/M365CapabilitiesRequestBuilder.cs new file mode 100644 index 00000000000..c4cf687b69f --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/M365Capabilities/M365CapabilitiesRequestBuilder.cs @@ -0,0 +1,240 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\partners\{crossTenantAccessPolicyConfigurationPartner-tenantId}\m365Capabilities + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Identity.SignIns.Client.policies.crossTenantAccessPolicy.partners.item.m365Capabilities.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("m365CapabilityBase%2Dname", position); + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.Item.M365CapabilityBaseNameItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public M365CapabilitiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public M365CapabilitiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/m365Capabilities{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for a partner organization in the cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new Microsoft 365 cross-tenant capability for a partner organization in the cross-tenant access policy. The @odata.type property in the request body is required to specify which type of capability to create. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for a partner organization in the cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create a new Microsoft 365 cross-tenant capability for a partner organization in the cross-tenant access policy. The @odata.type property in the request body is required to specify which type of capability to create. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.M365CapabilitiesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.M365Capabilities.M365CapabilitiesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of Microsoft 365 cross-tenant capabilities configured for a partner organization in the cross-tenant access policy. The returned collection is a heterogeneous collection of derived types of m365CapabilityBase, differentiated by their @odata.type property. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class M365CapabilitiesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/ServiceProviderConstraints/ServiceProviderConstraintsRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/ServiceProviderConstraints/ServiceProviderConstraintsRequestBuilder.cs new file mode 100644 index 00000000000..f4e9881c6fb --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Partners/Item/ServiceProviderConstraints/ServiceProviderConstraintsRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\partners\{crossTenantAccessPolicyConfigurationPartner-tenantId}\serviceProviderConstraints + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProviderConstraintsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ServiceProviderConstraintsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ServiceProviderConstraintsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner%2DtenantId}/serviceProviderConstraints{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property serviceProviderConstraints for policies + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToDeleteRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get serviceProviderConstraints from policies + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property serviceProviderConstraints in policies + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property serviceProviderConstraints for policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get serviceProviderConstraints from policies + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property serviceProviderConstraints in policies + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints body, Action> requestConfiguration = default) + { +#endif + if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints.ServiceProviderConstraintsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Partners.Item.ServiceProviderConstraints.ServiceProviderConstraintsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProviderConstraintsRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get serviceProviderConstraints from policies + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProviderConstraintsRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProviderConstraintsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ServiceProviderConstraintsRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs index f9aafc15c06..e908c97291c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/MultiTenantOrganizationIdentitySynchronizationRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -18,6 +19,11 @@ namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenan [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class MultiTenantOrganizationIdentitySynchronizationRequestBuilder : BaseRequestBuilder { + /// The resetToDefaultSettings property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder ResetToDefaultSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs new file mode 100644 index 00000000000..c8b0f4f99fd --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationIdentitySynchronization/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\templates\multiTenantOrganizationIdentitySynchronization\resetToDefaultSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetToDefaultSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResetToDefaultSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization/resetToDefaultSettings", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResetToDefaultSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization/resetToDefaultSettings", rawUrl) + { + } + /// + /// Reset the cross-tenant access policy template with user synchronization settings for a multitenant organization to the default values. In its reset state, the template has no impact on user synchronization settings, other than that unconfigured user synchronization settings are created if needed, for every multitenant organization tenant. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Reset the cross-tenant access policy template with user synchronization settings for a multitenant organization to the default values. In its reset state, the template has no impact on user synchronization settings, other than that unconfigured user synchronization settings are created if needed, for every multitenant organization tenant. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetToDefaultSettingsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs index 4c7e61447f3..5ed76624d45 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/MultiTenantOrganizationPartnerConfigurationRequestBuilder.cs @@ -2,6 +2,7 @@ #pragma warning disable CS0618 using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings; using Microsoft.Kiota.Abstractions.Extensions; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -18,6 +19,11 @@ namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenan [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class MultiTenantOrganizationPartnerConfigurationRequestBuilder : BaseRequestBuilder { + /// The resetToDefaultSettings property + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder ResetToDefaultSettings + { + get => new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs new file mode 100644 index 00000000000..15385a49bba --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Client/Policies/CrossTenantAccessPolicy/Templates/MultiTenantOrganizationPartnerConfiguration/ResetToDefaultSettings/ResetToDefaultSettingsRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings +{ + /// + /// Builds and executes requests for operations under \policies\crossTenantAccessPolicy\templates\multiTenantOrganizationPartnerConfiguration\resetToDefaultSettings + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetToDefaultSettingsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ResetToDefaultSettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration/resetToDefaultSettings", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ResetToDefaultSettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration/resetToDefaultSettings", rawUrl) + { + } + /// + /// Reset the cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization to the default values. In its reset state, the template has no impact on partner configuration settings, other than that an unconfigured partner configuration is created if needed, for every multitenant organization tenant. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToPostRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Reset the cross-tenant access policy template with inbound and outbound partner configuration settings for a multitenant organization to the default values. In its reset state, the template has no impact on partner configuration settings, other than that an unconfigured partner configuration is created if needed, for every multitenant organization tenant. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Identity.SignIns.Client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings.ResetToDefaultSettingsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ResetToDefaultSettingsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Identity.SignIns/wrapper/v1.0/Client/kiota-lock.json b/src/Identity.SignIns/wrapper/v1.0/Client/kiota-lock.json index d970c2b2b4a..c5699597c86 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Identity.SignIns/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "809047DEFE4F4D90ED6960FAC6960D62A3BA08691326C7B314B263A3DB4D0E21C480F3A942B7950D871CD845F6A2E4887680852FC2F2BD792C30CB8B2F6B47BE", + "descriptionHash": "E55DF812E11B376B7BDBD700131553EB89C8AFA50149B1122EAF9F4765598A4879B2141112784F95A099162276FBA6AACB899CF63369870396D9389D1E4CFFE2", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Identity.SignIns.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs index ac241d2faf4..3021ea441c9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyServicePrincipalCompromised.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyServicePrincipalCompromised.g.cs index fcbd45628bd..1b8fed8942e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyServicePrincipalCompromised.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyServicePrincipalCompromised.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserCompromised.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserCompromised.g.cs index 9407752a63c..9f5ed383038 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserCompromised.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserCompromised.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserSafe.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserSafe.g.cs index d6cd46a19c3..1f9573e7239 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserSafe.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ConfirmMgRiskyUserSafe.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/DisableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/DisableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs index a7b222e990d..aabe8404538 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/DisableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/DisableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/EnableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/EnableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs index dff49799dc2..5eb5ae0687b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/EnableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/EnableMgUserAuthenticationPhoneMethodSmsSignIn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation.g.cs index 3262be95ba1..ea225449569 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DataPolicyOperationId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperationCount.g.cs index 6791300ec9b..9a7720aa839 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_Get.g.cs index 68d27f7fbb1..b70a349ce2a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataPolicyOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_List.g.cs index b2e775db476..f5a9bede4ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgDataPolicyOperation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector.g.cs index a0f62ca8309..a7b961bdd04 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityApiConnectorId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnectorCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnectorCount.g.cs index f930df48bfd..b32b57de2b6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnectorCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnectorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_Get.g.cs index d7a07bbce39..eff2cabf77c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityApiConnectorId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_List.g.cs index 724fbfc08b2..d0f05884a40 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityApiConnector_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow.g.cs index fcb3f6e8c53..bd4a874e7e6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationEventsFlowId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow.g.cs index 9334b95bc36..6d25f139a42 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationEventsFlowId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowCondition.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowCondition.g.cs index 965629472c4..bb3f757e5c0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowCondition.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowCondition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs index 0adf440a45b..8aad2c52749 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationConditionApplicationAppId : AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplicationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplicationCount.g.cs index 28236a94d48..8f0da16bfcf 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplicationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplicationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_Get.g.cs index 2eddd17d9e6..4922787522a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_List.g.cs index 6990d867716..e1e91e45721 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollection.g.cs index a135933d24b..e7d07431c3f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollection.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUp.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUp.g.cs index addae75a52c..1813f09af0e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUp.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUp.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.g.cs index e3a566b579d..67c6d2cf051 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttribute.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs index b215cfd6db3..a87864e0750 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeCount.g.cs index 3e68c9e7466..aace9bfd6e9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStart.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStart.g.cs index d3591fa269a..e3644e779c9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStart.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUp.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUp.g.cs index 31f2195399c..dca2c7b0b9d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUp.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUp.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.g.cs index d1dddcac48d..530673af598 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProvider.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs index c042cf4031a..58e1cca350a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderCount.g.cs index a4b615dc7e4..2c412f272d0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_Get.g.cs index 178378676f4..474960d6771 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_List.g.cs index 2edbc2a1215..ad8d30c6547 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlow_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCondition.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCondition.g.cs index 2f8fc89ac83..bce84c3d732 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCondition.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCondition.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCount.g.cs index e7c1553c44c..97212a8fc52 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCountAsExternalUserSelfServiceSignUpEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCountAsExternalUserSelfServiceSignUpEventFlow.g.cs index 2fbff6627f9..561d49675a7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCountAsExternalUserSelfServiceSignUpEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowCountAsExternalUserSelfServiceSignUpEventFlow.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication.g.cs index c5d00899c3d..d725a996906 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationConditionApplicationAppId : AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplicationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplicationCount.g.cs index 83f4d90d9e0..eac015cf340 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplicationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplicationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_Get.g.cs index f781fcd6b3d..24ec33671d8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_List.g.cs index 8df7d83ce38..88348f7e379 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlowIncludeApplication_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_Get.g.cs index 97f51f7d0c7..0460a7df35e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_List.g.cs index 59817a5982c..edfc2955c71 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventFlow_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener.g.cs index c2554af9434..b899a260a89 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationEventListenerId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListenerCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListenerCount.g.cs index b99c5099e80..0c0fe0d3d29 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListenerCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListenerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_Get.g.cs index d25d87254a2..51dc85b6151 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventListenerId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_List.g.cs index 48d087269f6..b1e606f64e8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityAuthenticationEventListener_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowCount.g.cs index 809fa3a9a28..6642c9b268e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderByRef.g.cs index 3304320af26..7ef263d14af 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderCount.g.cs index 9747f0fb802..2ae8762bd84 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowIdentityProviderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageCount.g.cs index 445aca90d5d..9c2d3b9066a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs index 1dc4c26ccbe..25ba6756055 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageCount.g.cs index 0b7ae421966..9e2ac2a2de1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageDefaultPageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs index 9910ad50b05..2b5a639457e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageCount.g.cs index 235ada6e9b2..5f8395258db 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowLanguageOverridePageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollection.g.cs index 2c5ec9df879..eccbb52e405 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollection.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs index 190aca1e8a5..63dea739f04 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs @@ -40,7 +40,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignup.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignup.g.cs index b5cd0d039ee..5cae811e85c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignup.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs index 2e4badbd0db..a4ed0fe2e89 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs @@ -40,7 +40,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentCount.g.cs index bde95ee5fcf..682fbff093f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs index dc0eeb04932..775b97ba33c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow.g.cs index e21d984a717..c14d159f6f6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? B2xIdentityUserFlowId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowApiConnectorConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowApiConnectorConfiguration.g.cs index 691e595e952..52384ec95b8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowApiConnectorConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowApiConnectorConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider.g.cs index c60b5a6c552..5b452da7749 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityProviderId : B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_Get.g.cs index 3fea48fdf31..047004bb920 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_List.g.cs index 6acef14a3b1..292925feb66 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowIdentityProvider_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage.g.cs index b492484232e..c4877f72888 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserFlowLanguageConfigurationId : B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage.g.cs index 7812a6715ac..3df07eb7809 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserFlowLanguagePageId : UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_Get.g.cs index cb35a606917..5159d76f812 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_List.g.cs index 2543c78e314..5b853e6a827 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageDefaultPage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage.g.cs index f5cf39f728a..8a6763da1ee 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserFlowLanguagePageId : UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_Get.g.cs index fe0a354341e..7742525aabc 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_List.g.cs index c17ad04be3f..50efbb66f7a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguageOverridePage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_Get.g.cs index e0861b1ebea..3e06f884dd2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_List.g.cs index 5d896249249..2918d11f4c5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowLanguage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment.g.cs index 860428178b3..6e00a48af14 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityUserFlowAttributeAssignmentId : B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignmentUserAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignmentUserAttribute.g.cs index 4adaf00441f..3b5d4fbdc18 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignmentUserAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignmentUserAttribute.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_Get.g.cs index dc0615caf18..a6e3e221134 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_List.g.cs index b3f5f336309..e0887db7842 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlowUserAttributeAssignment_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_Get.g.cs index d2ac65b69c9..79a008851f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_List.g.cs index 8c0d6ba94c1..ff96f843d6a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityB2xUserFlow_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs index 180848468c1..2bf40acc1d1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationContextClassReferenceId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReferenceCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReferenceCount.g.cs index 1fb9bce2cca..95339983dbe 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReferenceCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReferenceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_Get.g.cs index e05e4e6135d..537be172192 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationContextClassReferenceId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_List.g.cs index 958bc2bc845..88174e91608 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessAuthenticationContextClassReference_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItem.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItem.g.cs index b26b5a25b63..7735f8bff9f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItem.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItem.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs index fce4bfd7899..4805f977047 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NamedLocationId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocationCount.g.cs index 98e54bf5dac..6fd1ecf683f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_Get.g.cs index 1f26c61f0a6..ac4e1ed78ef 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_List.g.cs index 8e0fd238f70..18b318f6871 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemNamedLocation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy.g.cs index 380b4c6af8c..11134ef770d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConditionalAccessPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicyCount.g.cs index d1b0b47dc32..993bd484a60 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_Get.g.cs index 500c072e20b..b2afed1a27b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_List.g.cs index 435019559a4..becc405c33c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessDeletedItemPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation.g.cs index 8128ddc85f7..ec36be4ab46 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NamedLocationId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocationCount.g.cs index 1447cb702bb..f0a601784f1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_Get.g.cs index ffa075d17f4..c74b7cec423 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_List.g.cs index 3396ced1e9b..fb0e3241fdf 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessNamedLocation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy.g.cs index f8f299f1a84..b00ee4965d3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConditionalAccessPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicyCount.g.cs index 4c2130c6883..df3e90e68d8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_Get.g.cs index 311e82e4317..8ff0c892815 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_List.g.cs index 1c0f58fd855..1bb24614061 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate.g.cs index 2545c9d2388..ea40c164bf2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConditionalAccessTemplateId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplateCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplateCount.g.cs index a2e11338ba1..68a363848f1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplateCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_Get.g.cs index 18a7eec4410..634797deb67 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessTemplateId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_List.g.cs index 3ed6c9ffb7a..8be4c20fa7c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityConditionalAccessTemplate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension.g.cs index 9aced29df9c..ed28ed84b2d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CustomAuthenticationExtensionId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtensionCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtensionCount.g.cs index 3f681f2e039..480d8b1fd94 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtensionCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtensionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_Get.g.cs index ce395cb073f..c481b8fd35f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomAuthenticationExtensionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_List.g.cs index 0e514de7fdf..7402d3ba4d5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityCustomAuthenticationExtension_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider.g.cs index c7a1f0b24b3..119ed34af2b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityProviderBaseId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProviderCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProviderCount.g.cs index 62378ea8015..930762927b0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProviderCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProviderCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_Get.g.cs index 10cacdbe169..da809ac2220 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_List.g.cs index be9312b9e0d..92286671545 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityProvider_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPrevention.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPrevention.g.cs index 12c970e94be..b2c6a0cbb78 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPrevention.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPrevention.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider.g.cs index f7212226eb7..c1b3ef73f9e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FraudProtectionProviderId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProviderCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProviderCount.g.cs index 9c95739d6c7..964e79dd497 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProviderCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProviderCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_Get.g.cs index 098cc518fbc..d33942393c1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FraudProtectionProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_List.g.cs index 2b385546ec1..8833fbe5317 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionFraudProtectionProvider_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs index 55eb34cd376..07a1479fa67 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebApplicationFirewallProviderId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProviderCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProviderCount.g.cs index d67278fd5b5..a383224cc0c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProviderCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProviderCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_Get.g.cs index 75b50226776..dcb54c51c93 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_List.g.cs index 323b2b9851e..2b780112f11 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallProvider_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs index 077d53ec6bf..059e3c1199b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebApplicationFirewallVerificationModelId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationCount.g.cs index 34452943c9d..6f1bef19d41 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationProvider.g.cs index fc86553256f..402d460f066 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerificationProvider.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallVerificationModelId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_Get.g.cs index 32cb4812585..2c2cc53efc3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallVerificationModelId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_List.g.cs index 7f6a9fdaf16..9ff244b5b3a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityRiskPreventionWebApplicationFirewallVerification_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute.g.cs index 9280b2f9229..9ca6a07cb9f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityUserFlowAttributeId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttributeCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttributeCount.g.cs index 51c69b1ec7b..3fd24d1c7c2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttributeCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttributeCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_Get.g.cs index 8c724f70553..fb982b2862a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_List.g.cs index 96634ba4d27..278f51d34ee 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityUserFlowAttribute_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedId.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedId.g.cs index 268a3114981..b1937bc1981 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedId.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedId.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile.g.cs index d787b3b3912..9c74fe7be9f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VerifiedIdProfileId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfileCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfileCount.g.cs index cf48507bd37..64736bd3d79 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfileCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfileCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_Get.g.cs index f6a0cc3505a..12d260c5f0d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VerifiedIdProfileId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_List.g.cs index b9478bafe48..2f060cfb151 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgIdentityVerifiedIdProfile_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtection.g.cs index 69b9f298864..1f5babec1ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlocker.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlocker.g.cs index 6b690e9eb33..f90a59c7eb6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlocker.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlocker.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey.g.cs index 2165220298f..95cb7629c0d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BitlockerRecoveryKeyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKeyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKeyCount.g.cs index 765e903d956..0c4e8477627 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKeyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKeyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_Get.g.cs index 4d136f634b7..2a0ea669c67 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BitlockerRecoveryKeyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_List.g.cs index 86c77c2f723..c8cf533f7ab 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionBitlockerRecoveryKey_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest.g.cs index d6b1206137b..c1cfd1e2195 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ThreatAssessmentRequestId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestCount.g.cs index 2bd3692b383..2a8a198dd0a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult.g.cs index 472d4c41ef9..827c113a52c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ThreatAssessmentResultId : ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResultCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResultCount.g.cs index 5140b555106..65395bd8cac 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResultCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResultCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_Get.g.cs index df228b9d521..be2bae400f5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentResultId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_List.g.cs index 530e63f6b41..7e712ffebf7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequestResult_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_Get.g.cs index 8aba3a60045..a799634a2b9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_List.g.cs index 1ffbf6e5e84..d32570f5349 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInformationProtectionThreatAssessmentRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitation.g.cs index d7b15284465..c81e4d00cc8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitation.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationCount.g.cs index 4eb5828e8be..b3f2f4974b2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserMailboxSetting.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserMailboxSetting.g.cs index e94118ea796..dca8bc27586 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserMailboxSetting.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserMailboxSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningError.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningError.g.cs index 5769b5a4723..71e91d7a6cd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningError.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningError.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningErrorCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningErrorCount.g.cs index f5aeaed70ce..cff1e9a184f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningErrorCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserServiceProvisioningErrorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor.g.cs index e166c8b75ac..764d0051db7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsorCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsorCount.g.cs index a33f1476127..f2c60841d0a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsorCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_Get.g.cs index d0caa576681..235a6c92da2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_List.g.cs index f70febcdfac..3d016480ae9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgInvitationInvitedUserSponsor_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant.g.cs index c89f6094930..bfb6d914b7e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OAuth2PermissionGrantId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantCount.g.cs index aee4042eae2..ae7b175177f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantDelta.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantDelta.g.cs index 71e81e8370f..5e3d5a05580 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantDelta.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrantDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_Get.g.cs index b5f97c0007c..764c2accc03 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_List.g.cs index 95eef747d0c..e7d6915eca9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOauth2PermissionGrant_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration.g.cs index 4636806adce..8d11f3dd70e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CertificateBasedAuthConfigurationId : OrganizationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfigurationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfigurationCount.g.cs index 834cabd3597..8a06daa3349 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfigurationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfigurationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_Get.g.cs index 293639e565b..24fabac3a0d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_List.g.cs index c1b9a074726..67eba56c07c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgOrganizationCertificateBasedAuthConfiguration_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OrganizationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy.g.cs index 19c64f8b1e1..67ffcad021c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ActivityBasedTimeoutPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo.g.cs index b5b157aff1c..07bcaba031f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyToCount.g.cs index 60efef9139b..88954c830c6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_Get.g.cs index 62e99024b64..964d73e6171 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_List.g.cs index c4fb3782456..ed5a318cd32 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyCount.g.cs index e5061e08e3d..340f584981f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_Get.g.cs index 49254c598de..cc0b40aee03 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_List.g.cs index 2acc1dd50ed..c8b3f36eeca 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyActivityBasedTimeoutPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAdminConsentRequestPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAdminConsentRequestPolicy.g.cs index 688d33bfa16..f42e74f5291 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAdminConsentRequestPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAdminConsentRequestPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy.g.cs index 7a58b0f720d..dc38801f7b1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AppManagementPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo.g.cs index d69d467516d..2f4b8bba4ba 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyToCount.g.cs index 978cd6e5cb6..524dffa517e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_Get.g.cs index a4368cbbb32..aa6a345d446 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_List.g.cs index 629ade88b8e..932a66f8a60 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyCount.g.cs index b5510d465ef..a2027b1a3de 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_Get.g.cs index bccc8f172bf..43f8fdc8b14 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_List.g.cs index f41c37cf0fc..c926de5d2d4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAppManagementPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationFlowPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationFlowPolicy.g.cs index 69faa95c980..32d909e846b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationFlowPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationFlowPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicy.g.cs index 645b325f6a6..ee869b4d9a2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs index 51f86fca9e6..7e085c52a5c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationMethodConfigurationId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfigurationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfigurationCount.g.cs index af50511da63..537b5aa8479 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfigurationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfigurationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_Get.g.cs index 0b00185478f..b3748817f7d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_List.g.cs index 0b361e0dd6b..cd65e83edee 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy.g.cs index 3bd947a0758..4726813220a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationStrengthPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs index 40d503621dd..3531f6df7eb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationCombinationConfigurationId : AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfigurationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfigurationCount.g.cs index 3815dffbe7e..87fe33c4bd5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfigurationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfigurationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_Get.g.cs index 127da515da2..cbf71932086 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationCombinationConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_List.g.cs index 8686e8a02c0..beef12e0cd2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCombinationConfiguration_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCount.g.cs index 099f2738947..a020d82c99c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_Get.g.cs index 78bbbc04552..70613491a76 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_List.g.cs index b8526765ae0..8d264716772 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthenticationStrengthPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthorizationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthorizationPolicy.g.cs index 971382d0f3e..1784b63fefe 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthorizationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyAuthorizationPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy.g.cs index 74a1f7d68e1..c60f1247027 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ClaimsMappingPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo.g.cs index 9694416fefa..a968fed9c01 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyToCount.g.cs index a48da383d3b..e794aaf4dd7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_Get.g.cs index fbd76ed4b5d..60415666d33 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_List.g.cs index c46860e9a50..2c26cee51c7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyCount.g.cs index 6ab8d8d88bb..ca53ea0dc21 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_Get.g.cs index e81aec5ec3c..62881823fb7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_List.g.cs index 962a92851cf..a8b17199b4e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyClaimMappingPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyConditionalAccessPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyConditionalAccessPolicyCount.g.cs index 8b983ad28ac..3797e572598 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyConditionalAccessPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyConditionalAccessPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicy.g.cs index a0134a04a61..fef8c916e3c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefault.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefault.g.cs index 5af4aa17b58..4d48e82c10a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefault.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefault.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs new file mode 100644 index 00000000000..6dc34ae4809 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs @@ -0,0 +1,91 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/default/m365Capabilities")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase), ParameterSetName = new[] { "Get" })] + public class GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get or Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get" : "Get-MgPolicyCrossTenantAccessPolicyDefaultM365Capability_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? M365CapabilityBaseName : null); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount.g.cs new file mode 100644 index 00000000000..088b5b0f077 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount.g.cs @@ -0,0 +1,61 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/default/m365Capabilities/$count")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCount")] + [OutputType(typeof(int))] + public class GetMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCountCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get.g.cs new file mode 100644 index 00000000000..b4de035ba97 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/default/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_List.g.cs new file mode 100644 index 00000000000..8e181dea698 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_List.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/default/m365Capabilities")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class GetMgPolicyCrossTenantAccessPolicyDefaultM365Capability_ListCommand : GraphClientCmdlet + { + + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner.g.cs index d768e9e8116..e5a4239bee3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CrossTenantAccessPolicyConfigurationPartnerTenantId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerCount.g.cs index 05039b799a7..c7e413d7258 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs index 37ba8e4e0c7..d1a72a7c0f4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs new file mode 100644 index 00000000000..88f215d7fc2 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase), ParameterSetName = new[] { "Get" })] + public class GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get or Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get" : "Get-MgPolicyCrossTenantAccessPolicyPartnerM365Capability_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? M365CapabilityBaseName : CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount.g.cs new file mode 100644 index 00000000000..886380352ed --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities/$count")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCount")] + [OutputType(typeof(int))] + public class GetMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get.g.cs new file mode 100644 index 00000000000..9e78ac672f2 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_List.g.cs new file mode 100644 index 00000000000..ecf1265befc --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class GetMgPolicyCrossTenantAccessPolicyPartnerM365Capability_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBaseCollectionResponse? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs new file mode 100644 index 00000000000..6627500f201 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs @@ -0,0 +1,65 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("GET", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/serviceProviderConstraints")] + [Cmdlet(VerbsCommon.Get, "MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints))] + public class GetMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_Get.g.cs index e2853bb22a1..9f213ee46eb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_List.g.cs index 78673008ea5..f0b92b0b713 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyPartner_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplate.g.cs index a9dc8243e55..731c974b0aa 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplate.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs index 909c7b1d61c..32cc9810dd2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs index 883067c7482..bee97322d12 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDefaultAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDefaultAppManagementPolicy.g.cs index 3bdfa5fa663..71ead454a76 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDefaultAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDefaultAppManagementPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDeviceRegistrationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDeviceRegistrationPolicy.g.cs index eb46c3e302c..1d685996820 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDeviceRegistrationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyDeviceRegistrationPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy.g.cs index 1e47baec579..7b6e89c5db8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FeatureRolloutPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyTo.g.cs index 8309ad2c241..6b32f1c14d4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyTo.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs index 414cf4cf221..52599719c2c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToCount.g.cs index ec4df285a79..6b25a1c74b6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyCount.g.cs index 08a4c62ae7d..7657f47f12d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_Get.g.cs index df15e5f27a2..199ca56d21f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_List.g.cs index dfc29a7f92f..038e76fac36 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFeatureRolloutPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFederatedTokenValidationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFederatedTokenValidationPolicy.g.cs index 8a152060fd5..6e4eb24fd3d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFederatedTokenValidationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyFederatedTokenValidationPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy.g.cs index 1c8bc2f252a..fbc90ba3961 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HomeRealmDiscoveryPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo.g.cs index fc02f0c401a..43a51312745 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyToCount.g.cs index c9f56f638a1..e7311401fe2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_Get.g.cs index b3c9a152ee7..266127dcfb1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_List.g.cs index 6f7b899fda5..3459a4d9437 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyCount.g.cs index 083aa12e68e..af0fe7a7548 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_Get.g.cs index db95f5fa221..3496f27161f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_List.g.cs index 6fc64f37e93..65d1cc11050 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyHomeRealmDiscoveryPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs index 37d0682f8ed..c1a3bfa2b8d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyOwnerlessGroupPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyOwnerlessGroupPolicy.g.cs index 68e3b3c76d8..172cd22c331 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyOwnerlessGroupPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyOwnerlessGroupPolicy.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy.g.cs index 0716cc9e1a7..662151e9863 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionGrantPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyCount.g.cs index a11b02d1f9b..2bd3ea1fa30 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude.g.cs index 9bc4d8f79d7..07a9ba7df19 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionGrantConditionSetId : PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExcludeCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExcludeCount.g.cs index a897d0cd39b..a6eff5e0b05 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExcludeCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExcludeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_Get.g.cs index f620ced0b73..280e1a29bcb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_List.g.cs index cc4b6ec9f00..9618ff1dea4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyExclude_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude.g.cs index c01d5aa80c7..0720c4b52b5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionGrantConditionSetId : PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyIncludeCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyIncludeCount.g.cs index 26753897cd8..6a46e613e60 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyIncludeCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyIncludeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_Get.g.cs index 66fc16c6d7e..5326a716423 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_List.g.cs index 39a6041054c..1db3790b0ce 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicyInclude_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_Get.g.cs index faf5364d826..7e0ace19b95 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_List.g.cs index 22c5d67aa28..30308627db0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyPermissionGrantPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy.g.cs index 37c28d98b4d..d095363fe42 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleManagementPolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment.g.cs index 1043a39e0f4..78eaac34c6a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleManagementPolicyAssignmentId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentCount.g.cs index c54da43f9c9..291b0232806 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentPolicy.g.cs index 8c157b9e21f..0b00939a6f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignmentPolicy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_Get.g.cs index 75a59d6b28d..0740bcd134d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_List.g.cs index 57f229e446b..292ab43809c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyAssignment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyCount.g.cs index b32c545d57f..5c7e90c8ce5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule.g.cs index ea50ff3689f..2d6462ca77a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleManagementPolicyRuleId : UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRuleCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRuleCount.g.cs index 34d6afe1be6..cec44079edb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRuleCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_Get.g.cs index eb00179d5ac..b9367234b73 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_List.g.cs index fb971391aa2..dba578af9ad 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyEffectiveRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule.g.cs index f609b4eba6c..199608d9371 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedRoleManagementPolicyRuleId : UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRuleCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRuleCount.g.cs index d3fd8db90ea..3d3a5e2e871 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRuleCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRuleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_Get.g.cs index 886d710785f..66501781239 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_List.g.cs index bd14bfdd08f..bae73ff652e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicyRule_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_Get.g.cs index 327bad23822..fac986e729a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_List.g.cs index 3f3c0d870d5..dba9099e527 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyRoleManagementPolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy.g.cs index 9b0c65abd98..4f4ed3ffda7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TokenIssuancePolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo.g.cs index 30b72810353..80815473a7a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyToCount.g.cs index 844f98b2697..662e2b3f52b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_Get.g.cs index 4b2738550cf..a6ae31beee7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_List.g.cs index 2d35a09c852..32a98c15902 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyCount.g.cs index b3c992398d5..fd7fb22dd95 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_Get.g.cs index 85de98ece72..8a01600a4a8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_List.g.cs index 3db7999f5c1..6f3111f3909 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenIssuancePolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy.g.cs index 29cd4c0f062..15d37109df2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TokenLifetimePolicyId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo.g.cs index 012ec07172a..e6831d4979d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyToCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyToCount.g.cs index 6ee7a9d10a3..0c9579b774b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyToCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyToCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_Get.g.cs index 7faf69defda..034198de81d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_List.g.cs index 37f44b6cc91..abe07a05c81 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyApplyTo_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyCount.g.cs index a365644a5fa..997c92b9923 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicyCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_Get.g.cs index 5bb712158ff..10f2049839d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_List.g.cs index 81997a8a7ff..1a6a229561d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgPolicyTokenLifetimePolicy_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection.g.cs index 6f6344353fe..0f1a3376a90 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RiskDetectionId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetectionCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetectionCount.g.cs index ca2431f666e..fd73eb358b6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetectionCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_Get.g.cs index befe241320e..52c9c07a450 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_List.g.cs index 5000c0b91a8..2c82956227e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskDetection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal.g.cs index 92271249a3a..0d025ae198f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RiskyServicePrincipalId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalCount.g.cs index 9b1e0db435a..06de0e5c739 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory.g.cs index 77ed579a0a3..437efdac8ca 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RiskyServicePrincipalHistoryItemId : RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistoryCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistoryCount.g.cs index fa8840c4729..3f2adce229e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistoryCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_Get.g.cs index 9a59299a633..db6bffaf719 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_List.g.cs index 991fbf6c807..f487243ee90 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipalHistory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_Get.g.cs index 35603f2d8e4..9fcb4663420 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_List.g.cs index 360679bb530..3e3aff144f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyServicePrincipal_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser.g.cs index 6213d8517e1..22708614f54 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RiskyUserId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserCount.g.cs index 7ffd7496480..67c3f0b3708 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory.g.cs index e2e8b20f90b..50183ea01af 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RiskyUserHistoryItemId : RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistoryCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistoryCount.g.cs index 1faf661833e..4ace5e03ce0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistoryCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_Get.g.cs index 1c9dda0ac8f..7123d748d0b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_List.g.cs index 9d9a0a8fa7b..7565ce215d7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUserHistory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_Get.g.cs index 31d697d4d7b..82f7ab9bbff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_List.g.cs index dff41ce8376..bc9e11c6ca6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgRiskyUser_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection.g.cs index 4078643d3e0..39d23b4379a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServicePrincipalRiskDetectionId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetectionCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetectionCount.g.cs index d7d7c926c6e..19a3f767ab9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetectionCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_Get.g.cs index 24f9e86abbc..782a5e5ef63 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalRiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_List.g.cs index 63a2c444a1f..412ac9d2670 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgServicePrincipalRiskDetection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganization.g.cs index d71f9d1bac3..44de42af788 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganization.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs index fed0b04c227..94f71bacfec 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant.g.cs index beb149ff771..2b6639c2fa6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MultiTenantOrganizationMemberId : null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenantCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenantCount.g.cs index 5fc75c8ce89..78a0a052716 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenantCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenantCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_Get.g.cs index 3581f9c7f25..a35afdda795 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MultiTenantOrganizationMemberId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_List.g.cs index 4417bca1dd5..15fd9a39fea 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgTenantRelationshipMultiTenantOrganizationTenant_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod.g.cs index e6066a6ae74..c8eefbc28b7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EmailAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethodCount.g.cs index 24833b1878b..db2171ca7f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_Get.g.cs index e7ca7b58349..682f43c4702 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EmailAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_List.g.cs index a4e497f5957..c1d9a7fc8e1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationEmailMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod.g.cs index 8b7715fa47e..d94826444d7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethodCount.g.cs index 48953e89a03..d511a1c8736 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_Get.g.cs index e22a98d45a3..a1c0bc0ccb8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_List.g.cs index ff5dbf446bb..637611abf35 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationExternalAuthenticationMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method.g.cs index 1a6b6381904..b6d753ea6e9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? Fido2AuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2MethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2MethodCount.g.cs index 48b496b824a..a39818158af 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2MethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2MethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_Get.g.cs index b490bb0ff1c..8b81f37516b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, Fido2AuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_List.g.cs index dd53a1a7856..082118953d3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationFido2Method_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod.g.cs index 063923de06c..7c1f5cec99f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethodCount.g.cs index 405213666f1..fb35e55a392 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_Get.g.cs index e65d1de8a9e..189867016e6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_List.g.cs index a43f8157f88..bfb84051613 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs index a189c1a1377..4bb85851bff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MicrosoftAuthenticatorAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodCount.g.cs index b12c5095172..612bc71dc73 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodDevice.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodDevice.g.cs index ce01b0f893f..ce244d523a4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodDevice.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethodDevice.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MicrosoftAuthenticatorAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_Get.g.cs index d7baf44abec..1b568f677dd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MicrosoftAuthenticatorAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_List.g.cs index 9cc68924390..43a58a6109c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationMicrosoftAuthenticatorMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation.g.cs index 0ba9a77b54f..8e366ae69f2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LongRunningOperationId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperationCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperationCount.g.cs index 86ba13eceda..742c6e0334a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperationCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_Get.g.cs index b91ca29e0ba..461b6ce47a0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LongRunningOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_List.g.cs index ed36c6b7ca1..49eec7b3588 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod.g.cs index 2f75265960d..4614c4ecb84 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PasswordAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethodCount.g.cs index 9fb0df3f24b..0fe5e971439 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_Get.g.cs index e042ac09d70..c65cc73034d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PasswordAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_List.g.cs index 6cd7d0efde8..eede3b6ca30 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPasswordMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod.g.cs index 0758b015d66..95701ae952c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PhoneAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethodCount.g.cs index d6785f5f0d6..473058d8faf 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_Get.g.cs index 60d3c2cb5f8..b9dc168a9de 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_List.g.cs index 1bbdf1a7b5f..10ba1dc7b01 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPhoneMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod.g.cs index 3444227c55b..61e659182bb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlatformCredentialAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodCount.g.cs index 1cd4e850cac..e2dc41073c8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodDevice.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodDevice.g.cs index 5a6c351d0d0..9476f0be244 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodDevice.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethodDevice.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlatformCredentialAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_Get.g.cs index 7534f99945b..80e99893377 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlatformCredentialAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_List.g.cs index b91d62a5bd5..b13bb3a0ae4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationPlatformCredentialMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod.g.cs index d70053654fe..1e87a961991 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SoftwareOathAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethodCount.g.cs index 9059cb78cdc..d209bc70876 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_Get.g.cs index 482370d42f3..4f6c20599ab 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SoftwareOathAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_List.g.cs index 82542e72eba..e74c89c3324 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationSoftwareOathMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod.g.cs index cf62bed5dba..44283f6bde4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TemporaryAccessPassAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethodCount.g.cs index a7c2c21a7b6..2242e15a2c7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_Get.g.cs index d9311a13623..6ac5138dc11 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TemporaryAccessPassAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_List.g.cs index 1168e5189ee..87950f0e740 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationTemporaryAccessPassMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs index 1047390ef5a..426710e740f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsHelloForBusinessAuthenticationMethodId : UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodCount.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodCount.g.cs index 8aa8c7e28ca..d02367e3311 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodCount.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodDevice.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodDevice.g.cs index 6f6f8df183e..66745e7f6d0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodDevice.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethodDevice.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsHelloForBusinessAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_Get.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_Get.g.cs index 8d4a6a6ce4d..62daeed6b61 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_Get.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsHelloForBusinessAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_List.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_List.g.cs index 669155578bb..525a156e1a8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_List.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/GetMgUserAuthenticationWindowsHelloForBusinessMethod_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgAvailableIdentityProviderType.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgAvailableIdentityProviderType.g.cs index ab6c298b330..066d6a07073 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgAvailableIdentityProviderType.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgAvailableIdentityProviderType.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgCreationUserAuthenticationFido2MethodOption.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgCreationUserAuthenticationFido2MethodOption.g.cs index 83672cddf4e..10470605530 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgCreationUserAuthenticationFido2MethodOption.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgCreationUserAuthenticationFido2MethodOption.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyServicePrincipal.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyServicePrincipal.g.cs index f56eb2f7bc3..13a7e0695ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyServicePrincipal.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyServicePrincipal.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyUser.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyUser.g.cs index e027d9e61aa..431d95f3467 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyUser.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgDismissRiskyUser.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings.g.cs new file mode 100644 index 00000000000..f26e2166b91 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("POST", "/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationIdentitySynchronization/resetToDefaultSettings")] + [Cmdlet(VerbsLifecycle.Invoke, "MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettings", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronizationResetToDefaultSettingsCommand : GraphClientCmdlet + { + + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.ResetToDefaultSettings.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings.g.cs new file mode 100644 index 00000000000..14818a81929 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("POST", "/policies/crossTenantAccessPolicy/templates/multiTenantOrganizationPartnerConfiguration/resetToDefaultSettings")] + [Cmdlet(VerbsLifecycle.Invoke, "MgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettings", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfigurationResetToDefaultSettingsCommand : GraphClientCmdlet + { + + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.ResetToDefaultSettings.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, null); + return; + } + + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityApiConnectorClientCertificate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityApiConnectorClientCertificate.g.cs index 188dc28f454..88f5ef4cc55 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityApiConnectorClientCertificate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityApiConnectorClientCertificate.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityApiConnectorId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate.g.cs index 3db55c31466..64402bdb8c5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostAttributeCollectionClientCertificate.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate.g.cs index e4cf6772338..20480cd3903 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUploadIdentityB2XUserFlowApiConnectorConfigurationPostFederationSignupClientCertificate.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsageIdentityConditionalAccessAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsageIdentityConditionalAccessAuthenticationStrengthPolicy.g.cs index ff63375b102..9a687cdb590 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsageIdentityConditionalAccessAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsageIdentityConditionalAccessAuthenticationStrengthPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsagePolicyAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsagePolicyAuthenticationStrengthPolicy.g.cs index f47c1a53e14..27a3178fee0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsagePolicyAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/InvokeMgUsagePolicyAuthenticationStrengthPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgDataPolicyOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgDataPolicyOperation.g.cs index c2c7d565ce1..958097c82df 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgDataPolicyOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgDataPolicyOperation.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityApiConnector.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityApiConnector.g.cs index d30c0025f51..5dca6025c0d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityApiConnector.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityApiConnector.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlow.g.cs index 53dd230a798..cf69d6ee798 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlow.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs index 6e2f99295b2..510eebba4e1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs index 388c532bd88..c2c28259638 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAttributeCollectionAsOnAttributeCollectionExternalUserSelfServiceSignUpAttributeByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs index be8a69c217d..2813f6559f3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowOnAuthenticationMethodLoadStartAsOnAuthenticationMethodLoadStartExternalUserSelfServiceSignUpIdentityProviderByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowIncludeApplication.g.cs index 6cbc571f7d6..021d98f21d6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventFlowIncludeApplication.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventListener.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventListener.g.cs index 0137496f94f..fb1a43a8740 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventListener.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityAuthenticationEventListener.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2XUserFlowIdentityProviderByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2XUserFlowIdentityProviderByRef.g.cs index 6c7fd679dba..0df859ea642 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2XUserFlowIdentityProviderByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2XUserFlowIdentityProviderByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlow.g.cs index c667d191b39..d0634ee7882 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlow.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguage.g.cs index cab5d29572f..536ed98e499 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageDefaultPage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageDefaultPage.g.cs index c504a09f7db..32a88b4f21a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageDefaultPage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageDefaultPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageOverridePage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageOverridePage.g.cs index 8fec1a37ac0..9ab22615bbd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageOverridePage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowLanguageOverridePage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowUserAttributeAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowUserAttributeAssignment.g.cs index 74eab59b77f..8f3b47dc8e1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowUserAttributeAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityB2xUserFlowUserAttributeAssignment.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs index bed38434833..b0ed4f4f167 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.g.cs index e5bc46da5a8..e8d16814d70 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessAuthenticationStrengthPolicyCombinationConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs index f153d6378d2..6c3e4c6e605 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemPolicy.g.cs index db1476c9073..71b3aa315ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessDeletedItemPolicy.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessNamedLocation.g.cs index 1a33ed1a8db..d92066c9fbb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessNamedLocation.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessPolicy.g.cs index 1cec8238e5f..7c54526a581 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityConditionalAccessPolicy.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityCustomAuthenticationExtension.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityCustomAuthenticationExtension.g.cs index 6f68898608e..ac205deb8de 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityCustomAuthenticationExtension.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityCustomAuthenticationExtension.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityProvider.g.cs index 573baea91be..05415a92f69 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityProvider.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionFraudProtectionProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionFraudProtectionProvider.g.cs index a84a82c81db..f34dc8c71cb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionFraudProtectionProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionFraudProtectionProvider.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs index 24ca90d156f..335e6b35aac 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs index 9c7e1e138a7..bc32413e2ab 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityUserFlowAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityUserFlowAttribute.g.cs index 3f4b68b750b..6ace6e2ec05 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityUserFlowAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityUserFlowAttribute.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityVerifiedIdProfile.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityVerifiedIdProfile.g.cs index 7f89f25014d..ce4b06a911e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityVerifiedIdProfile.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgIdentityVerifiedIdProfile.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequest.g.cs index 097beffaf3a..0b5558f636e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequest.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequestResult.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequestResult.g.cs index 5f8b3b97b91..e5f8e0ef468 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequestResult.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInformationProtectionThreatAssessmentRequestResult.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInvitation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInvitation.g.cs index fab491bb3de..ece38a7b074 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInvitation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgInvitation.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOauth2PermissionGrant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOauth2PermissionGrant.g.cs index 06cbd039c6a..b545e580aba 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOauth2PermissionGrant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOauth2PermissionGrant.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOrganizationCertificateBasedAuthConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOrganizationCertificateBasedAuthConfiguration.g.cs index 635b6c2a5b7..021d7f48387 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOrganizationCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgOrganizationCertificateBasedAuthConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyActivityBasedTimeoutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyActivityBasedTimeoutPolicy.g.cs index e332dc79d51..0226e95a6b2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyActivityBasedTimeoutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyActivityBasedTimeoutPolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAppManagementPolicy.g.cs index c9c96e1008f..a464d574417 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAppManagementPolicy.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs index c12d529cbe4..ca9378eb5c2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicy.g.cs index eb37b7f0ab1..7089d7b6510 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicy.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs index abebcf8040c..12aba5f39b8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyClaimMappingPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyClaimMappingPolicy.g.cs index 6bc9c945a22..3f865d5d3fa 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyClaimMappingPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyClaimMappingPolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs new file mode 100644 index 00000000000..9d4ce57f4d0 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs @@ -0,0 +1,74 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("POST", "/policies/crossTenantAccessPolicy/default/m365Capabilities")] + [Cmdlet(VerbsCommon.New, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class NewMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess? InboundAccess { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(); + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(InboundAccess))) + body.InboundAccess = InboundAccess; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartner.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartner.g.cs index 49c58c6bebc..a336cb8f64e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartner.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartner.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs new file mode 100644 index 00000000000..e46b835821b --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs @@ -0,0 +1,75 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("POST", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities")] + [Cmdlet(VerbsCommon.New, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class NewMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess? InboundAccess { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CrossTenantAccessPolicyConfigurationPartnerTenantId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(); + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(InboundAccess))) + body.InboundAccess = InboundAccess; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, body); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicy.g.cs index c876e93f450..c5bfe3c05ae 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicy.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyTo.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyTo.g.cs index 89d4c9424c9..16982565c74 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyTo.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyTo.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs index 74c64b95ff9..85ebde96712 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyFeatureRolloutPolicyApplyToByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyHomeRealmDiscoveryPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyHomeRealmDiscoveryPolicy.g.cs index 2982948c79e..e2c66696d72 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyHomeRealmDiscoveryPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyHomeRealmDiscoveryPolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicy.g.cs index b7b4dbbfdd1..5b736e07f00 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicy.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyExclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyExclude.g.cs index 4e1397e82a6..8f8357a867b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyExclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyExclude.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyInclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyInclude.g.cs index 84274457783..8df05cc5b38 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyInclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyPermissionGrantPolicyInclude.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicy.g.cs index 9fd82edf7a4..4cb39a98cf6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicy.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyAssignment.g.cs index e5a958432a7..b0f134218c3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyAssignment.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyEffectiveRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyEffectiveRule.g.cs index e35236defc6..bf499d955c6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyEffectiveRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyEffectiveRule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyRule.g.cs index 2359ec8a9d6..63561522e14 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyRoleManagementPolicyRule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenIssuancePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenIssuancePolicy.g.cs index 5f034008907..5be0815640c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenIssuancePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenIssuancePolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenLifetimePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenLifetimePolicy.g.cs index 48eaf9876f9..5f435065ef1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenLifetimePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgPolicyTokenLifetimePolicy.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskDetection.g.cs index 5e626d9fe7b..786726ae321 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskDetection.g.cs @@ -158,7 +158,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipal.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipal.g.cs index 7fc1b9a60a8..92835c8210c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipal.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipal.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipalHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipalHistory.g.cs index c9f6eff0ce4..656380282c9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipalHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyServicePrincipalHistory.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUser.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUser.g.cs index 5124ba06dcf..369045ef4ed 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUser.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUser.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUserHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUserHistory.g.cs index ea1e1a1ff81..55c155c39f9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUserHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgRiskyUserHistory.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRiskDetection.g.cs index 14a239a9bc7..b6ca250886d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgServicePrincipalRiskDetection.g.cs @@ -164,7 +164,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipMultiTenantOrganizationTenant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipMultiTenantOrganizationTenant.g.cs index 476e27aeb20..86aa2879dbd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipMultiTenantOrganizationTenant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgTenantRelationshipMultiTenantOrganizationTenant.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationEmailMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationEmailMethod.g.cs index 81db04d8260..1ff55c071a2 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationEmailMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationEmailMethod.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationExternalAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationExternalAuthenticationMethod.g.cs index 0e9842e2f44..7019059e11c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationExternalAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationExternalAuthenticationMethod.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationMethod.g.cs index 0d5b9515494..4e6fe828bb1 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationMethod.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationOperation.g.cs index 061b9615c17..c7ada23d3c5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationOperation.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationPhoneMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationPhoneMethod.g.cs index 87922711f33..9b2a2c80455 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationPhoneMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationPhoneMethod.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationTemporaryAccessPassMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationTemporaryAccessPassMethod.g.cs index 06bcbe27b97..8d6d460a6e3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationTemporaryAccessPassMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/NewMgUserAuthenticationTemporaryAccessPassMethod.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgDataPolicyOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgDataPolicyOperation.g.cs index f879c5a1f18..5571c5052cc 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgDataPolicyOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgDataPolicyOperation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataPolicyOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityApiConnector.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityApiConnector.g.cs index 1c2bf2695ab..81c351a7949 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityApiConnector.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityApiConnector.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityApiConnectorId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlow.g.cs index 78e4a3f40f5..fdc2cc5e761 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlow.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs index 3953af36d62..8b4822507af 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowIncludeApplication.g.cs index 34317e1c7c5..3dabce4f43f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventFlowIncludeApplication.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventListener.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventListener.g.cs index 687f29ceed7..70e0961e6cf 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventListener.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityAuthenticationEventListener.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventListenerId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowIdentityProviderBaseByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowIdentityProviderBaseByRef.g.cs index 0ba221fd85d..d7a18052af8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowIdentityProviderBaseByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowIdentityProviderBaseByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs index f28657d9818..ced58d3d186 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageDefaultPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs index 61d59dfc7cc..60a203ddf71 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowLanguageOverridePageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollection.g.cs index ce862ae7a20..a8a69bab6c4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs index 4b20c4a1dbf..f9c1cc74483 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignup.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignup.g.cs index 00d1247f161..d0b6aa0072f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignup.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignup.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs index c96bfbad2e9..26b7c37c688 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlow.g.cs index 82480357fff..3379d80a68c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlow.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguage.g.cs index b8723f65cdf..a48c3fa918c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageDefaultPage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageDefaultPage.g.cs index 75713618248..bc3599e5b2c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageDefaultPage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageDefaultPage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageOverridePage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageOverridePage.g.cs index a749552002d..f7444bc59a0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageOverridePage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowLanguageOverridePage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowUserAttributeAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowUserAttributeAssignment.g.cs index 74740732cb5..6df8f9aa1ea 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowUserAttributeAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityB2xUserFlowUserAttributeAssignment.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs index 9bf3fdbf863..f655d91c223 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationContextClassReferenceId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItem.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItem.g.cs index 3fa9954cd32..bb1fb6f0dab 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItem.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItem.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs index 8787b654b12..cc6a1656474 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemPolicy.g.cs index 23716095550..e9b962e191b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessDeletedItemPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessNamedLocation.g.cs index 2e8fb11b4b2..72ced2e4b42 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessNamedLocation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessPolicy.g.cs index b8265365554..6efc3c6bb02 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityConditionalAccessPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityCustomAuthenticationExtension.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityCustomAuthenticationExtension.g.cs index 7bbcd212aa7..005c2276400 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityCustomAuthenticationExtension.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityCustomAuthenticationExtension.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomAuthenticationExtensionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityProvider.g.cs index 477667992d0..1d56923da75 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityProvider.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPrevention.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPrevention.g.cs index 6b05b3dd44e..80eed3e822c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPrevention.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPrevention.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionFraudProtectionProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionFraudProtectionProvider.g.cs index 4da2c989056..d7208a3ecea 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionFraudProtectionProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionFraudProtectionProvider.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FraudProtectionProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs index c8fcc4e3eef..002dbfa5500 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs index 4a851925c7a..5e49968fb38 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallVerificationModelId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityUserFlowAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityUserFlowAttribute.g.cs index 68902313691..7a2ea182bab 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityUserFlowAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityUserFlowAttribute.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedId.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedId.g.cs index 75338e1091b..55322a2eca7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedId.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedId.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedIdProfile.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedIdProfile.g.cs index 1b700273226..ff070703a5a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedIdProfile.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgIdentityVerifiedIdProfile.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VerifiedIdProfileId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequest.g.cs index 9068e3f31a9..2efa2827a02 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequestResult.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequestResult.g.cs index f394bf292cc..ea1be2b170b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequestResult.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgInformationProtectionThreatAssessmentRequestResult.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentResultId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOauth2PermissionGrant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOauth2PermissionGrant.g.cs index 5b65778612c..705571d035f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOauth2PermissionGrant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOauth2PermissionGrant.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOrganizationCertificateBasedAuthConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOrganizationCertificateBasedAuthConfiguration.g.cs index cfe1e61a51d..e113adafc41 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOrganizationCertificateBasedAuthConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgOrganizationCertificateBasedAuthConfiguration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CertificateBasedAuthConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyActivityBasedTimeoutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyActivityBasedTimeoutPolicy.g.cs index 453f5854599..7c233d3a15b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyActivityBasedTimeoutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyActivityBasedTimeoutPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAdminConsentRequestPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAdminConsentRequestPolicy.g.cs index 03f6961758d..ca48efce317 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAdminConsentRequestPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAdminConsentRequestPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAppManagementPolicy.g.cs index d38f24d502e..cb002e565d5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAppManagementPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationFlowPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationFlowPolicy.g.cs index 4581f566f7c..3c97e885965 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationFlowPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationFlowPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicy.g.cs index 42668033265..14ff6aa833f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs index a52c33e2243..f601027db2a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicy.g.cs index f26e7960287..152058917e9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs index 4df63a2453f..4355b3d9484 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationCombinationConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthorizationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthorizationPolicy.g.cs index 5917a582e91..fa38162b326 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthorizationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyAuthorizationPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyClaimMappingPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyClaimMappingPolicy.g.cs index c57702ede94..a4fe9c2bc85 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyClaimMappingPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyClaimMappingPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicy.g.cs index df4de24c9ca..1150893fca7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefault.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefault.g.cs index 00e6770a362..15839c3309b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefault.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefault.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs new file mode 100644 index 00000000000..783c2e8ca19 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("DELETE", "/policies/crossTenantAccessPolicy/default/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsCommon.Remove, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(M365CapabilityBaseName, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartner.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartner.g.cs index aa25451dd6b..3627beb235d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartner.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartner.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs index 019d2d67978..992d903e69b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs new file mode 100644 index 00000000000..69868f258e2 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs @@ -0,0 +1,58 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("DELETE", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsCommon.Remove, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(M365CapabilityBaseName, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName].DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs new file mode 100644 index 00000000000..dc83cf7061a --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs @@ -0,0 +1,56 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("DELETE", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/serviceProviderConstraints")] + [Cmdlet(VerbsCommon.Remove, "MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false, + HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] + public string? IfMatch { get; set; } + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CrossTenantAccessPolicyConfigurationPartnerTenantId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints.DeleteAsync(requestConfiguration => + { + + if (this.IsParameterBound(nameof(IfMatch))) + requestConfiguration.Headers.Add("If-Match", IfMatch!); + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplate.g.cs index bc1da3f669d..6eda12798ad 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplate.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs index aab83a8c7c9..bca77140e3d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs index 770019100c8..6ed22c9c64b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyDefaultAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyDefaultAppManagementPolicy.g.cs index c76284c972a..9aeda4f437d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyDefaultAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyDefaultAppManagementPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicy.g.cs index c2e8e08a981..a72ab64f510 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.g.cs index eeb3b165317..afc40a773f6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFeatureRolloutPolicyApplyToDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFederatedTokenValidationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFederatedTokenValidationPolicy.g.cs index 554c6d09334..07442db1e3f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFederatedTokenValidationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyFederatedTokenValidationPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyHomeRealmDiscoveryPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyHomeRealmDiscoveryPolicy.g.cs index 0a50cf97472..bed8e0cafbd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyHomeRealmDiscoveryPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyHomeRealmDiscoveryPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs index c253a35d7e6..392a2988b45 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicy.g.cs index 49ae8896fd5..607df5ec223 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyExclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyExclude.g.cs index 35d7ed7db76..28e8bf0a66c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyExclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyExclude.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyInclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyInclude.g.cs index 4ce32935032..4e35aa1f865 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyInclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyPermissionGrantPolicyInclude.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicy.g.cs index d28c421db90..45f5d8d0efe 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyAssignment.g.cs index 7f2aed4a069..4b650e44e35 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyAssignment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyEffectiveRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyEffectiveRule.g.cs index ba63216cd92..bb7768de833 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyEffectiveRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyEffectiveRule.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyRule.g.cs index 414659fb696..bb4508fc7dc 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyRoleManagementPolicyRule.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenIssuancePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenIssuancePolicy.g.cs index 1af60552fe1..8ff3b97a892 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenIssuancePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenIssuancePolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenLifetimePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenLifetimePolicy.g.cs index c3c85730ba0..4245fc93e6e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenLifetimePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgPolicyTokenLifetimePolicy.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskDetection.g.cs index d9c26bbbfe1..403f8d244e9 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskDetection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipal.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipal.g.cs index 67b1fed9b25..4bac79a7fc3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipal.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipal.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipalHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipalHistory.g.cs index a732aaae550..ebd069dcf90 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipalHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyServicePrincipalHistory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUser.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUser.g.cs index f57c77333b6..3b7b619707c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUser.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUser.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUserHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUserHistory.g.cs index ec15694489e..860344b5d10 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUserHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgRiskyUserHistory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRiskDetection.g.cs index 6c2a6ee06d5..c54b248f9ef 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgServicePrincipalRiskDetection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalRiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipMultiTenantOrganizationTenant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipMultiTenantOrganizationTenant.g.cs index 76cc711084e..566b94d3be0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipMultiTenantOrganizationTenant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgTenantRelationshipMultiTenantOrganizationTenant.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MultiTenantOrganizationMemberId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationEmailMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationEmailMethod.g.cs index d05dfdccbf8..f1474c72537 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationEmailMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationEmailMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EmailAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationExternalAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationExternalAuthenticationMethod.g.cs index d892de43b1e..77196628f1f 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationExternalAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationExternalAuthenticationMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationFido2Method.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationFido2Method.g.cs index 7b669588152..ed3e192f145 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationFido2Method.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationFido2Method.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, Fido2AuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs index 0084984cd5e..209d3bfd324 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationMicrosoftAuthenticatorMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MicrosoftAuthenticatorAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationOperation.g.cs index bb6ad2f8516..5d5ce470bc7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LongRunningOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPhoneMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPhoneMethod.g.cs index 2cada4747e0..81ee42cde49 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPhoneMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPhoneMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPlatformCredentialMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPlatformCredentialMethod.g.cs index 904b27f2d27..6da153abe43 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPlatformCredentialMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationPlatformCredentialMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlatformCredentialAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationSoftwareOathMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationSoftwareOathMethod.g.cs index c9ff2c4108b..34482cc5900 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationSoftwareOathMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationSoftwareOathMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SoftwareOathAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationTemporaryAccessPassMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationTemporaryAccessPassMethod.g.cs index 7994b39e084..08ec8420f22 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationTemporaryAccessPassMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationTemporaryAccessPassMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TemporaryAccessPassAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs index d6d1289b4bd..db6af6695b6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RemoveMgUserAuthenticationWindowsHelloForBusinessMethod.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsHelloForBusinessAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.g.cs index 81a2ddaea80..c7253b78d86 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgPolicyCrossTenantAccessPolicyDefaultToSystemDefault.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgUserAuthenticationMethodPassword.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgUserAuthenticationMethodPassword.g.cs index 0695a8ef891..21c5fbe4746 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgUserAuthenticationMethodPassword.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/ResetMgUserAuthenticationMethodPassword.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs index 0f45adb5241..262aefb4a34 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemPolicy.g.cs index cc6f51afd77..aaa109a767d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessDeletedItemPolicy.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessNamedLocation.g.cs index 98dbe684630..c55339ee0fa 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessNamedLocation.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessPolicy.g.cs index 6e3aa1179fe..a8c0e1c7e1b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgIdentityConditionalAccessPolicy.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgPolicyConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgPolicyConditionalAccessPolicy.g.cs index acd6b9b722c..40380989608 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgPolicyConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/RestoreMgPolicyConditionalAccessPolicy.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs index 219fb2a31d7..16dd98638c7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostAttributeCollectionByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs index df974587b77..53c4dea18bd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowPostFederationSignupByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs index 344c5ea13a1..4449f38de2c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgIdentityB2XUserFlowUserAttributeAssignmentOrder.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs index fc356f7f3f5..95d8b947f90 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/SetMgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityConditionalAccess.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityConditionalAccess.g.cs index c70f9d62898..3e5fc36e5ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityConditionalAccess.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityConditionalAccess.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityCustomAuthenticationExtensionAuthenticationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityCustomAuthenticationExtensionAuthenticationConfiguration.g.cs index 8534be4fd50..037b89e88e8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityCustomAuthenticationExtensionAuthenticationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/TestMgIdentityCustomAuthenticationExtensionAuthenticationConfiguration.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomAuthenticationExtensionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgDataPolicyOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgDataPolicyOperation.g.cs index 1740b125c94..707f8a1048a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgDataPolicyOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgDataPolicyOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataPolicyOperationId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.DataPolicyOperations[DataPolicyOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataPolicyOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityApiConnector.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityApiConnector.g.cs index 00b372b28fa..12540d753f7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityApiConnector.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityApiConnector.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityApiConnectorId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.ApiConnectors[IdentityApiConnectorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityApiConnectorId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlow.g.cs index 5774c212bb6..3de2c4f5f37 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlow.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.AuthenticationEventsFlows[AuthenticationEventsFlowId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventsFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs index 49d0061177e..a8e1d488b2c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowAsExternalUserSelfServiceSignUpEventFlowConditionApplicationIncludeApplication.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Identity.AuthenticationEventsFlows[AuthenticationEventsFlowId].GraphExternalUsersSelfServiceSignUpEventsFlow.Conditions.Applications.IncludeApplications[AuthenticationConditionApplicationAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowIncludeApplication.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowIncludeApplication.g.cs index c9aa49d527e..c87d9929c2c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowIncludeApplication.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventFlowIncludeApplication.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Identity.AuthenticationEventsFlows[AuthenticationEventsFlowId].Conditions.Applications.IncludeApplications[AuthenticationConditionApplicationAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationConditionApplicationAppId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventListener.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventListener.g.cs index be8e240eb1d..1e04afdcf3b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventListener.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityAuthenticationEventListener.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventListenerId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.AuthenticationEventListeners[AuthenticationEventListenerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationEventListenerId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostAttributeCollection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostAttributeCollection.g.cs index b92dfa2f3bd..755918b7c76 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostAttributeCollection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostAttributeCollection.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].ApiConnectorConfiguration.PostAttributeCollection.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostFederationSignup.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostFederationSignup.g.cs index 8bc084727c2..e9080dd5b5c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostFederationSignup.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2XUserFlowPostFederationSignup.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].ApiConnectorConfiguration.PostFederationSignup.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlow.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlow.g.cs index c37b0723a2c..fa06b8f3eff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlow.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlow.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, B2xIdentityUserFlowId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguage.g.cs index 641835aec09..ebf16b78012 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguage.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].Languages[UserFlowLanguageConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguageConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageDefaultPage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageDefaultPage.g.cs index 3888a4003f8..c69f81425e6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageDefaultPage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageDefaultPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].Languages[UserFlowLanguageConfigurationId].DefaultPages[UserFlowLanguagePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageOverridePage.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageOverridePage.g.cs index 9d732c453ec..a3df4280a56 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageOverridePage.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowLanguageOverridePage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].Languages[UserFlowLanguageConfigurationId].OverridesPages[UserFlowLanguagePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserFlowLanguagePageId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowUserAttributeAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowUserAttributeAssignment.g.cs index dbc39f49c98..b5680777733 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowUserAttributeAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityB2xUserFlowUserAttributeAssignment.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeAssignmentId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Identity.B2xUserFlows[B2xIdentityUserFlowId].UserAttributeAssignments[IdentityUserFlowAttributeAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs index f2c0b950fab..815264faefd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessAuthenticationContextClassReference.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationContextClassReferenceId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.AuthenticationContextClassReferences[AuthenticationContextClassReferenceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationContextClassReferenceId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItem.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItem.g.cs index 69ee33fbafd..4d550df9269 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItem.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItem.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.DeletedItems.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs index dc066be170e..d5a4ae26154 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemNamedLocation.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.DeletedItems.NamedLocations[NamedLocationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemPolicy.g.cs index 05af406dc6d..4a5d65f03eb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessDeletedItemPolicy.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.DeletedItems.Policies[ConditionalAccessPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessNamedLocation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessNamedLocation.g.cs index 41fa083dc93..b13318f14c8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessNamedLocation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessNamedLocation.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.NamedLocations[NamedLocationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NamedLocationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessPolicy.g.cs index 1b8624dc1db..3ed723a7682 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityConditionalAccessPolicy.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Identity.ConditionalAccess.Policies[ConditionalAccessPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConditionalAccessPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityCustomAuthenticationExtension.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityCustomAuthenticationExtension.g.cs index b975915938f..a97a72e29a5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityCustomAuthenticationExtension.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityCustomAuthenticationExtension.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomAuthenticationExtensionId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Identity.CustomAuthenticationExtensions[CustomAuthenticationExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CustomAuthenticationExtensionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityProvider.g.cs index c6102c7691f..5160553c6d3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityProvider.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Identity.IdentityProviders[IdentityProviderBaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityProviderBaseId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPrevention.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPrevention.g.cs index 716e4bff9bf..89e4d2952e5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPrevention.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPrevention.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Identity.RiskPrevention.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionFraudProtectionProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionFraudProtectionProvider.g.cs index 10f2a4eebf4..71d27bd6832 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionFraudProtectionProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionFraudProtectionProvider.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FraudProtectionProviderId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Identity.RiskPrevention.FraudProtectionProviders[FraudProtectionProviderId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FraudProtectionProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs index 2faad9df775..02ce143d469 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallProvider.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallProviderId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Identity.RiskPrevention.WebApplicationFirewallProviders[WebApplicationFirewallProviderId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallProviderId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs index 89986e12238..b23ed3427ff 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityRiskPreventionWebApplicationFirewallVerification.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallVerificationModelId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Identity.RiskPrevention.WebApplicationFirewallVerifications[WebApplicationFirewallVerificationModelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebApplicationFirewallVerificationModelId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityUserFlowAttribute.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityUserFlowAttribute.g.cs index d1311fd310c..c462693288d 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityUserFlowAttribute.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityUserFlowAttribute.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Identity.UserFlowAttributes[IdentityUserFlowAttributeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityUserFlowAttributeId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedId.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedId.g.cs index c204846065f..20f33414345 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedId.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedId.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Identity.VerifiedId.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedIdProfile.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedIdProfile.g.cs index 4ed48fc4a58..8377046820a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedIdProfile.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgIdentityVerifiedIdProfile.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VerifiedIdProfileId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Identity.VerifiedId.Profiles[VerifiedIdProfileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VerifiedIdProfileId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtection.g.cs index 5ea4a27466b..6accf0bafc3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.InformationProtection.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequest.g.cs index 3d9c76d2115..bebfb2b8f77 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequest.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.InformationProtection.ThreatAssessmentRequests[ThreatAssessmentRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentRequestId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequestResult.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequestResult.g.cs index 36847016243..9a587cee2a4 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequestResult.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInformationProtectionThreatAssessmentRequestResult.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentResultId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.InformationProtection.ThreatAssessmentRequests[ThreatAssessmentRequestId].Results[ThreatAssessmentResultId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ThreatAssessmentResultId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInvitationInvitedUserMailboxSetting.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInvitationInvitedUserMailboxSetting.g.cs index 76806b3e98f..39d1521ddc7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInvitationInvitedUserMailboxSetting.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgInvitationInvitedUserMailboxSetting.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -112,7 +112,7 @@ protected override void ProcessRecord() { result = client.Invitations.InvitedUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgOauth2PermissionGrant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgOauth2PermissionGrant.g.cs index 55e5bb9def8..c76adf1ccc6 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgOauth2PermissionGrant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgOauth2PermissionGrant.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Oauth2PermissionGrants[OAuth2PermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyActivityBasedTimeoutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyActivityBasedTimeoutPolicy.g.cs index b39f37a8042..68a4b0164f7 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyActivityBasedTimeoutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyActivityBasedTimeoutPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Policies.ActivityBasedTimeoutPolicies[ActivityBasedTimeoutPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ActivityBasedTimeoutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAdminConsentRequestPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAdminConsentRequestPolicy.g.cs index 3fbd1675a41..bd83b0e13ef 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAdminConsentRequestPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAdminConsentRequestPolicy.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -94,7 +94,7 @@ protected override void ProcessRecord() { result = client.Policies.AdminConsentRequestPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAppManagementPolicy.g.cs index 5cd48e75055..2ce2f7810c3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAppManagementPolicy.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Policies.AppManagementPolicies[AppManagementPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AppManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationFlowPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationFlowPolicy.g.cs index cd6105c558f..317e180c739 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationFlowPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationFlowPolicy.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -76,7 +76,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthenticationFlowsPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicy.g.cs index 17e579bd3a6..ed1900ca993 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicy.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -100,7 +100,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthenticationMethodsPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs index b736735ee84..3b87c612710 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodConfigurationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthenticationMethodsPolicy.AuthenticationMethodConfigurations[AuthenticationMethodConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicy.g.cs index eba8827f47c..e0dfb9b2fc8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicy.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthenticationStrengthPolicies[AuthenticationStrengthPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyAllowedCombination.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyAllowedCombination.g.cs index f8e4edc78bf..a3bf2b42841 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyAllowedCombination.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyAllowedCombination.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationStrengthPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs index 9284b7002df..fe712d24ba0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthenticationStrengthPolicyCombinationConfiguration.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationCombinationConfigurationId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthenticationStrengthPolicies[AuthenticationStrengthPolicyId].CombinationConfigurations[AuthenticationCombinationConfigurationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationCombinationConfigurationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthorizationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthorizationPolicy.g.cs index 767ed6634cb..6690542c6cf 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthorizationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyAuthorizationPolicy.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -124,7 +124,7 @@ protected override void ProcessRecord() { result = client.Policies.AuthorizationPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyClaimMappingPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyClaimMappingPolicy.g.cs index 7be1ffe7efc..6e51ecf7d0a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyClaimMappingPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyClaimMappingPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Policies.ClaimsMappingPolicies[ClaimsMappingPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ClaimsMappingPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicy.g.cs index 1f7f5e8da57..54fa5b33a75 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicy.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -84,7 +84,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefault.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefault.g.cs index 3ead531c21f..6ba7eab2e20 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefault.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefault.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -130,7 +130,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.Default.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs new file mode 100644 index 00000000000..f9596a3cdb5 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyDefaultM365Capability.g.cs @@ -0,0 +1,90 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("PATCH", "/policies/crossTenantAccessPolicy/default/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsData.Update, "MgPolicyCrossTenantAccessPolicyDefaultM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class UpdateMgPolicyCrossTenantAccessPolicyDefaultM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess? InboundAccess { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(M365CapabilityBaseName, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(); + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(InboundAccess))) + body.InboundAccess = InboundAccess; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Policies.CrossTenantAccessPolicy.Default.M365Capabilities[M365CapabilityBaseName].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartner.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartner.g.cs index bb215b80370..5e0865eeee8 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartner.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartner.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs new file mode 100644 index 00000000000..78385ea35f5 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerM365Capability.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("PATCH", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/m365Capabilities/{m365CapabilityBase-name}")] + [Cmdlet(VerbsData.Update, "MgPolicyCrossTenantAccessPolicyPartnerM365Capability", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase))] + public class UpdateMgPolicyCrossTenantAccessPolicyPartnerM365CapabilityCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string M365CapabilityBaseName { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityInboundAccess? InboundAccess { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(M365CapabilityBaseName, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase(); + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(InboundAccess))) + body.InboundAccess = InboundAccess; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.M365CapabilityBase? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].M365Capabilities[M365CapabilityBaseName].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, M365CapabilityBaseName); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs new file mode 100644 index 00000000000..32fdf4ff376 --- /dev/null +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client; +using Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Identity.SignIns +{ + [GraphRoute("PATCH", "/policies/crossTenantAccessPolicy/partners/{crossTenantAccessPolicyConfigurationPartner-tenantId}/serviceProviderConstraints")] + [Cmdlet(VerbsData.Update, "MgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints))] + public class UpdateMgPolicyCrossTenantAccessPolicyPartnerServiceProviderConstraintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string CrossTenantAccessPolicyConfigurationPartnerTenantId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CrossTenantAccessPolicyConfigurationPartnerTenantId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Identity.SignIns.Client.Models.ServiceProviderConstraints? result; + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Policies.CrossTenantAccessPolicy.Partners[CrossTenantAccessPolicyConfigurationPartnerTenantId].ServiceProviderConstraints.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CrossTenantAccessPolicyConfigurationPartnerTenantId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplate.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplate.g.cs index dcefd89c631..0bd5144d1bd 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplate.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplate.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.Templates.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs index 4e574cf15e8..0c0c801b3ae 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationIdentitySynchronization.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationIdentitySynchronization.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs index 56d53326b80..3ef75987576 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyCrossTenantAccessPolicyTemplateMultiTenantOrganizationPartnerConfiguration.g.cs @@ -88,7 +88,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -102,7 +102,7 @@ protected override void ProcessRecord() { result = client.Policies.CrossTenantAccessPolicy.Templates.MultiTenantOrganizationPartnerConfiguration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyDefaultAppManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyDefaultAppManagementPolicy.g.cs index 3c5383e3867..cbb2a9a875c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyDefaultAppManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyDefaultAppManagementPolicy.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -94,7 +94,7 @@ protected override void ProcessRecord() { result = client.Policies.DefaultAppManagementPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFeatureRolloutPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFeatureRolloutPolicy.g.cs index 6e2729ae229..7a06783659c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFeatureRolloutPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFeatureRolloutPolicy.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Policies.FeatureRolloutPolicies[FeatureRolloutPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FeatureRolloutPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFederatedTokenValidationPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFederatedTokenValidationPolicy.g.cs index a6f6f0f5152..3a03b06ea22 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFederatedTokenValidationPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyFederatedTokenValidationPolicy.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -70,7 +70,7 @@ protected override void ProcessRecord() { result = client.Policies.FederatedTokenValidationPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyHomeRealmDiscoveryPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyHomeRealmDiscoveryPolicy.g.cs index 5d231fc17ff..bcc5c524e1b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyHomeRealmDiscoveryPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyHomeRealmDiscoveryPolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Policies.HomeRealmDiscoveryPolicies[HomeRealmDiscoveryPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HomeRealmDiscoveryPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs index 2a2ab73d795..002d047dc5a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyIdentitySecurityDefaultEnforcementPolicy.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -84,7 +84,7 @@ protected override void ProcessRecord() { result = client.Policies.IdentitySecurityDefaultsEnforcementPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyOwnerlessGroupPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyOwnerlessGroupPolicy.g.cs index ed14ac7c005..9efe8d575b3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyOwnerlessGroupPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyOwnerlessGroupPolicy.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -100,7 +100,7 @@ protected override void ProcessRecord() { result = client.Policies.OwnerlessGroupPolicy.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicy.g.cs index bdfd921ba48..83c5942a11e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicy.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Policies.PermissionGrantPolicies[PermissionGrantPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyExclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyExclude.g.cs index 91053a876bd..e97ff03b551 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyExclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyExclude.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Policies.PermissionGrantPolicies[PermissionGrantPolicyId].Excludes[PermissionGrantConditionSetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyInclude.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyInclude.g.cs index 32c94bef3ef..0403cda8abb 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyInclude.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyPermissionGrantPolicyInclude.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Policies.PermissionGrantPolicies[PermissionGrantPolicyId].Includes[PermissionGrantConditionSetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionGrantConditionSetId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicy.g.cs index 62bd8ae4d50..e00698c81b5 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicy.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Policies.RoleManagementPolicies[UnifiedRoleManagementPolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyAssignment.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyAssignment.g.cs index f464a3a5ec5..0bfa5e7ba33 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyAssignment.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyAssignment.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyAssignmentId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Policies.RoleManagementPolicyAssignments[UnifiedRoleManagementPolicyAssignmentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyAssignmentId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyEffectiveRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyEffectiveRule.g.cs index 228e0031ee1..997f7e7cc95 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyEffectiveRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyEffectiveRule.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Policies.RoleManagementPolicies[UnifiedRoleManagementPolicyId].EffectiveRules[UnifiedRoleManagementPolicyRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyRule.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyRule.g.cs index 1479dab3457..1c00dcaee75 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyRule.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyRoleManagementPolicyRule.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Policies.RoleManagementPolicies[UnifiedRoleManagementPolicyId].Rules[UnifiedRoleManagementPolicyRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedRoleManagementPolicyRuleId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenIssuancePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenIssuancePolicy.g.cs index 19ce8dfd20c..7ca5162c4e3 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenIssuancePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenIssuancePolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Policies.TokenIssuancePolicies[TokenIssuancePolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenIssuancePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenLifetimePolicy.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenLifetimePolicy.g.cs index 0194a026554..be0eb08f840 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenLifetimePolicy.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgPolicyTokenLifetimePolicy.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Policies.TokenLifetimePolicies[TokenLifetimePolicyId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TokenLifetimePolicyId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskDetection.g.cs index c0736196d0c..d6372741b48 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskDetection.g.cs @@ -159,7 +159,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskDetectionId); return; @@ -173,7 +173,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.RiskDetections[RiskDetectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipal.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipal.g.cs index d27e7a39c4d..25f012a5954 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipal.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipal.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.RiskyServicePrincipals[RiskyServicePrincipalId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipalHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipalHistory.g.cs index ce30df58c1b..6403bd8e301 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipalHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyServicePrincipalHistory.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalHistoryItemId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.RiskyServicePrincipals[RiskyServicePrincipalId].History[RiskyServicePrincipalHistoryItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyServicePrincipalHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUser.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUser.g.cs index 8fbc96435e0..a8ec8d02e68 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUser.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUser.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.RiskyUsers[RiskyUserId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUserHistory.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUserHistory.g.cs index 64d4dec7e3c..1602d260024 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUserHistory.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgRiskyUserHistory.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserHistoryItemId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.RiskyUsers[RiskyUserId].History[RiskyUserHistoryItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RiskyUserHistoryItemId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRiskDetection.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRiskDetection.g.cs index 5f8f881dc7f..a1335ff939b 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRiskDetection.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgServicePrincipalRiskDetection.g.cs @@ -165,7 +165,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalRiskDetectionId); return; @@ -179,7 +179,7 @@ protected override void ProcessRecord() { result = client.IdentityProtection.ServicePrincipalRiskDetections[ServicePrincipalRiskDetectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServicePrincipalRiskDetectionId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganization.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganization.g.cs index 43024317330..76d20068f51 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganization.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganization.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -82,7 +82,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.MultiTenantOrganization.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs index 7a93d9303c4..c89b39fcd0a 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationJoinRequest.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -82,7 +82,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.MultiTenantOrganization.JoinRequest.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationTenant.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationTenant.g.cs index d0e121ab433..95e88a4aa04 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationTenant.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgTenantRelationshipMultiTenantOrganizationTenant.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MultiTenantOrganizationMemberId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.TenantRelationships.MultiTenantOrganization.Tenants[MultiTenantOrganizationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MultiTenantOrganizationMemberId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationEmailMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationEmailMethod.g.cs index 45565def602..594ea07f29c 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationEmailMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationEmailMethod.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EmailAuthenticationMethodId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Authentication.EmailMethods[EmailAuthenticationMethodId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EmailAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationExternalAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationExternalAuthenticationMethod.g.cs index bb8675d81bb..462cec7ab6e 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationExternalAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationExternalAuthenticationMethod.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalAuthenticationMethodId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Authentication.ExternalAuthenticationMethods[ExternalAuthenticationMethodId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalAuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationMethod.g.cs index 62d1dc8ea9c..5c90d4d22b0 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationMethod.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Authentication.Methods[AuthenticationMethodId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthenticationMethodId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationOperation.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationOperation.g.cs index 292cfdc7705..42fa583a572 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationOperation.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationOperation.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LongRunningOperationId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Authentication.Operations[LongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LongRunningOperationId); return; diff --git a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationPhoneMethod.g.cs b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationPhoneMethod.g.cs index d6bee439899..2fa1dce6b35 100644 --- a/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationPhoneMethod.g.cs +++ b/src/Identity.SignIns/wrapper/v1.0/Cmdlets/UpdateMgUserAuthenticationPhoneMethod.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Authentication.PhoneMethods[PhoneAuthenticationMethodId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PhoneAuthenticationMethodId); return; diff --git a/src/Mail/wrapper/v1.0/Client/kiota-lock.json b/src/Mail/wrapper/v1.0/Client/kiota-lock.json index 8f3a4fabf2b..aa6cc3c9be6 100644 --- a/src/Mail/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Mail/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "266C7C2EA2C9DDBCA2B66FA0A281CF2E9E86393E79EF2133ABEFB1CF23CBC99195C99BE9D0AEA79F858492752749C52F2FB0B7DB9DB178A8ECC68345D1B9D4FA", + "descriptionHash": "C90901737FF749F830557B96048D12918F50DCCA41E31DBDC9C5344EAF3621E14CA1001772E49BCA76F8245EA897CADA026C8CD7683DAEFCD6F3B61C3042BDF8", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Mail.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolder.g.cs index 3036159d96c..18a59e439c7 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolder.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolder.g.cs index 3b6bafed65c..31cfeabedb2 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolder.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolderMessage.g.cs index afe161db0bd..f0a27f1dba3 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderChildFolderMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderMessage.g.cs index 2a684317dac..bd51b3db470 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMailFolderMessage.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMessage.g.cs index bfdfe31582a..e7e63641eae 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/CopyMgUserMessage.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassification.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassification.g.cs index fbbe0961e76..c8851b42417 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassification.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassification.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride.g.cs index 6fe7bfd0ddb..d59cb1f762c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? InferenceClassificationOverrideId : UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverrideCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverrideCount.g.cs index fa5085edab3..1187638fa3b 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverrideCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverrideCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_Get.g.cs index 45b5aeb5642..afc38f815fd 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InferenceClassificationOverrideId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_List.g.cs index 9841c19c250..7bfc9d32565 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserInferenceClassificationOverride_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder.g.cs index bf013d722a1..b3fc3ec020c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailFolderId : UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder.g.cs index 4634c3a2004..a7244e78b84 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MailFolderId1 : MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderCount.g.cs index f43737a22dc..64ff658e74f 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderDelta.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderDelta.g.cs index acdd41d4ee5..a647f66c820 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderDelta.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage.g.cs index 09cbba507d5..d812adae998 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MessageId : MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment.g.cs index c00a6d194de..c6ab8d8357f 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachmentCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachmentCount.g.cs index 7897b33674a..08a561ed82b 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachmentCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachmentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_Get.g.cs index 06b30bead92..8ce154be120 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_List.g.cs index 748be26e40d..214084ac823 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageAttachment_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageContent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageContent.g.cs index e62403d6840..795b53404d1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageContent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageCount.g.cs index bd449c0d520..0f0482e574b 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageDelta.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageDelta.g.cs index 4a6c0dfe88a..3312fc9fe22 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageDelta.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension.g.cs index e7bb2d73770..027ca5c3868 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtensionCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtensionCount.g.cs index c64c5c00c55..646a9340957 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtensionCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtensionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_Get.g.cs index 780e9eaf3a0..ce9f5e9abe2 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_List.g.cs index 371111b8903..cebfef3bf59 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageExtension_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule.g.cs index f7a6d6814c0..322f6369750 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MessageRuleId : MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRuleCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRuleCount.g.cs index 48be692b7b4..4c2c4bb9b55 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRuleCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRuleCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_Get.g.cs index 2f2f5227cb9..eecadb47fd9 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_List.g.cs index 6960e937b59..3ec48bad3da 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessageRule_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_Get.g.cs index f80445852cc..9d110301cd1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_List.g.cs index ba841bdc5e2..8d6cffcae34 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolderMessage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_Get.g.cs index ca9f7015083..03d0f1b7c7a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_List.g.cs index b5d01e096a8..1aba680e647 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderChildFolder_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderCount.g.cs index 4d1e6b6b7b0..e650369a7b9 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderDelta.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderDelta.g.cs index f638569354b..c65623f86ca 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderDelta.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage.g.cs index 3d5303c4ef8..f90a71e32dc 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MessageId : MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment.g.cs index 2a36814f650..5c9699713f3 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachmentCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachmentCount.g.cs index fb02e76de11..beafa109bc2 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachmentCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachmentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_Get.g.cs index c1c11ec4ea6..07488484fbe 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_List.g.cs index 7c1cbb385f4..b9101862540 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageAttachment_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageCount.g.cs index 6af60de371e..7097709b20e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageDelta.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageDelta.g.cs index c737e48336f..ee153498a55 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageDelta.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension.g.cs index f67c7d30e95..2ed5bfecce4 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtensionCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtensionCount.g.cs index 6be381de6a4..bdfcadffc04 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtensionCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtensionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_Get.g.cs index bcc32abcd1b..52a14fcd896 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_List.g.cs index 42e22c8d08c..decc275cdea 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageExtension_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule.g.cs index d8633338c65..e24636a1e6e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MessageRuleId : MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRuleCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRuleCount.g.cs index 6041d41bc66..51809baac14 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRuleCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRuleCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_Get.g.cs index 75f390e3c9e..3944297cd65 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_List.g.cs index 9420acf88f2..00d363e08d1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessageRule_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_Get.g.cs index 4b05c084309..1e6fe14f23e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_List.g.cs index d7434c87d28..46fd0dc1bc7 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolderMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_Get.g.cs index 67265f8c971..a0f6f67f269 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_List.g.cs index a3103554215..6a1d1dd7f7d 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMailFolder_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage.g.cs index ccaaaa55247..c977eebf088 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? MessageId : UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment.g.cs index 864673fbe3e..69f042412f6 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachmentCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachmentCount.g.cs index 78283f628f7..609d78f7ea2 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachmentCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachmentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_Get.g.cs index d34b31ef000..3d7f822252b 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_List.g.cs index 4216a0cd2d3..7c0b1c6319c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageAttachment_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageContent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageContent.g.cs index 319b0f78144..601d733558b 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageContent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageCount.g.cs index 36d65df7a48..ff28f53b940 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageDelta.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageDelta.g.cs index 14f0039174d..e0952c5feed 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageDelta.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension.g.cs index 960bb40a2e3..dc73e3419d0 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtensionCount.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtensionCount.g.cs index a39e32e55fd..ede25c856ed 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtensionCount.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtensionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_Get.g.cs index 644c46b0f71..ba31d96c839 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_List.g.cs index 6140d5e460c..59d7bf54d41 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessageExtension_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_Get.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_Get.g.cs index 8346b73ee45..8a4b187a037 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_Get.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_List.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_List.g.cs index 833186f6dde..8bd6d1a0308 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_List.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/GetMgUserMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderChildFolderMessage.g.cs index 69c8fc167fd..499f63fbdea 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderChildFolderMessage.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderMessage.g.cs index ed6eb16fb2f..70e09a0381f 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMailFolderMessage.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMessage.g.cs index 119e3ad13d9..5b26ce9726e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgForwardUserMessage.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderChildFolderMessage.g.cs index f45b380de3b..1cbb0af1020 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderChildFolderMessage.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderMessage.g.cs index db4a7da6d2f..dddca7de20a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMailFolderMessage.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMessage.g.cs index 5a37a79e186..bcc9db68962 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyAllUserMessage.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderChildFolderMessage.g.cs index 36a0e967329..3f50dff064d 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderChildFolderMessage.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderMessage.g.cs index a0a82454b81..32b326c3c0a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMailFolderMessage.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMessage.g.cs index f952754c264..fc9fe8a41a2 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/InvokeMgReplyUserMessage.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolder.g.cs index 24c08f0426b..a63555bc29e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolder.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolder.g.cs index 98168240cb0..ea34a760299 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolder.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolderMessage.g.cs index 057ff7bea7f..cfd1cf5acac 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderChildFolderMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderMessage.g.cs index ede1feda6ea..22931f0c48d 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMailFolderMessage.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMessage.g.cs index e0e07769420..3ca57e7733f 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/MoveMgUserMessage.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserInferenceClassificationOverride.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserInferenceClassificationOverride.g.cs index 014b00e0c8b..199530103f8 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserInferenceClassificationOverride.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserInferenceClassificationOverride.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolder.g.cs index dc1b59aabd6..1f22be38345 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolder.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolder.g.cs index f61b91a2031..512b00113d5 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolder.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessage.g.cs index 6bd6c926f41..9fd21d0c1eb 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessage.g.cs @@ -229,7 +229,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachment.g.cs index 8fbc4deb37b..72dd3b93241 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachment.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachmentUploadSession.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachmentUploadSession.g.cs index c12be86ab28..7feac294e4c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachmentUploadSession.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageAttachmentUploadSession.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageExtension.g.cs index 823f0874631..0bc50a89d40 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageForward.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageForward.g.cs index 37ea19dbd30..45aba0150dc 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageForward.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageForward.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReply.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReply.g.cs index cfbc8b74514..7e748ab1366 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReply.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReply.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReplyAll.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReplyAll.g.cs index 0259d6dc4d0..b93e1165bed 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReplyAll.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageReplyAll.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageRule.g.cs index 0ccae12ff76..ce7af7132ea 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderChildFolderMessageRule.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessage.g.cs index 9ce90435ae3..6c04501bab4 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessage.g.cs @@ -227,7 +227,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachment.g.cs index 14e5898a8f7..7ba9a5c6a0f 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachmentUploadSession.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachmentUploadSession.g.cs index 0d03c8d7d5f..f679eb673cf 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachmentUploadSession.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageAttachmentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageExtension.g.cs index fc6f4aef826..6e1a147ef1a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageForward.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageForward.g.cs index 973c56d6a17..86da84cb2e7 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageForward.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageForward.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReply.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReply.g.cs index 8f777b2706e..ac648ca4ae9 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReply.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReplyAll.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReplyAll.g.cs index 61661a8bbee..e3d07ff8511 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReplyAll.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageReplyAll.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageRule.g.cs index 0031c9be349..3c6e3f9be3a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMailFolderMessageRule.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessage.g.cs index 1ba69028a35..1a006e07354 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessage.g.cs @@ -225,7 +225,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachment.g.cs index 868f6ae8bb9..7ea9d8b0e49 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachment.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachmentUploadSession.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachmentUploadSession.g.cs index 68ad362524f..c2e1ced0b60 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachmentUploadSession.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageAttachmentUploadSession.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageExtension.g.cs index 90d84a31fad..fedecb68bae 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageForward.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageForward.g.cs index 4cd2a9bae1f..ac34eff0c91 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageForward.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageForward.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReply.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReply.g.cs index 176b6707bad..02098213c3c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReply.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReply.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReplyAll.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReplyAll.g.cs index b31334df926..ca73cad2a87 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReplyAll.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/NewMgUserMessageReplyAll.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserInferenceClassificationOverride.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserInferenceClassificationOverride.g.cs index 6404f2ab2dd..da7fc499f61 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserInferenceClassificationOverride.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserInferenceClassificationOverride.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InferenceClassificationOverrideId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolder.g.cs index 575fdface8c..2abfac413ae 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolder.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolder.g.cs index b3861ec405f..0713b5d531a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolder.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessage.g.cs index fc67837da72..b9d1b5fd263 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageAttachment.g.cs index e0250e393cf..a64dee858f8 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageAttachment.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageContent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageContent.g.cs index 8bfb1039ac7..e746435d3ed 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageContent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageExtension.g.cs index 58519f8ad65..50574b16577 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageExtension.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessagePermanent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessagePermanent.g.cs index 917a4a80b8f..672d24081e6 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessagePermanent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessagePermanent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageRule.g.cs index 749860d2927..1c84e9ea486 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderMessageRule.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderPermanent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderPermanent.g.cs index 00a98f8f507..bc2ce7278af 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderPermanent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderChildFolderPermanent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessage.g.cs index 3a3f26a849e..077c345745e 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageAttachment.g.cs index 5129591aa40..e25a1c7556c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageAttachment.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageContent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageContent.g.cs index 2e2908beaae..2dea8c91561 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageContent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageExtension.g.cs index adebd61e783..7e5f3bd5389 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageExtension.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessagePermanent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessagePermanent.g.cs index fecc42c5cde..9d17554f7df 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessagePermanent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessagePermanent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageRule.g.cs index 1bb2660416f..31ff90b2c02 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderMessageRule.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderPermanent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderPermanent.g.cs index 0c3df4408f9..d1f541600c1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderPermanent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMailFolderPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessage.g.cs index fa14d10b3a0..726e1e766ba 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageAttachment.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageAttachment.g.cs index 367f1944717..9121df774f1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageAttachment.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageAttachment.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageContent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageContent.g.cs index 3208b9185bf..a843342b3b5 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageContent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageExtension.g.cs index 98c4e27ae5b..f69f881c46c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessageExtension.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessagePermanent.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessagePermanent.g.cs index 9827ddbece5..6f57a90d10d 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessagePermanent.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/RemoveMgUserMessagePermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderChildFolderMessage.g.cs index ee7f8cef018..75939b0d4a1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderChildFolderMessage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderMessage.g.cs index 4a780dca36c..65bc8a75e89 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMailFolderMessage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMessage.g.cs index a649fe9b813..531a46afb5a 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/SendMgUserMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassification.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassification.g.cs index bc47f6eb438..8330f5c5452 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassification.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassification.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].InferenceClassification.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassificationOverride.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassificationOverride.g.cs index a7b253cb841..7ae532947fb 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassificationOverride.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserInferenceClassificationOverride.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InferenceClassificationOverrideId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].InferenceClassification.Overrides[InferenceClassificationOverrideId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, InferenceClassificationOverrideId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolder.g.cs index 036e98eed3a..aeaa1510606 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolder.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolder.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolder.g.cs index 32c082c1c95..91c876c4251 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolder.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolder.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].ChildFolders[MailFolderId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MailFolderId1); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessage.g.cs index e78265f3c58..df8d8be6cef 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessage.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; @@ -245,7 +245,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].ChildFolders[MailFolderId1].Messages[MessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageExtension.g.cs index 37b9f4aba6c..0cb46ee67c1 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageExtension.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].ChildFolders[MailFolderId1].Messages[MessageId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageRule.g.cs index 0387a1c006d..b477706c542 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderChildFolderMessageRule.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].ChildFolders[MailFolderId1].MessageRules[MessageRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessage.g.cs index 218f0241c0e..f0f1f96ba31 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessage.g.cs @@ -229,7 +229,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; @@ -243,7 +243,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].Messages[MessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageExtension.g.cs index 4a81ac6fa70..3772f86e331 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].Messages[MessageId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageRule.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageRule.g.cs index 7d05fa550c1..bbc082286d0 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageRule.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMailFolderMessageRule.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailFolders[MailFolderId].MessageRules[MessageRuleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageRuleId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessage.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessage.g.cs index 8ddbb04b874..4097c1c7341 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessage.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessage.g.cs @@ -227,7 +227,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; @@ -241,7 +241,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Messages[MessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, MessageId); return; diff --git a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessageExtension.g.cs b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessageExtension.g.cs index df76d1dde66..7499a311a8c 100644 --- a/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessageExtension.g.cs +++ b/src/Mail/wrapper/v1.0/Cmdlets/UpdateMgUserMessageExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Messages[MessageId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Notes/wrapper/v1.0/Client/kiota-lock.json b/src/Notes/wrapper/v1.0/Client/kiota-lock.json index c5a4bf639c4..c712fa79c1f 100644 --- a/src/Notes/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Notes/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "60A2FBA28BD0CE15930EA9A25B54F453201441506F6E7746465DE2C6CE1C4498B37D1EE99468AAD4A08A6F8547C672C43C2C9DCCF7BD0AB3B0D062DEEBE8B051", + "descriptionHash": "AC290AFB0DC87490424F09FD3C13761E8DB20BA19FD534E706587DD93045814D78648F31B1BDE8D606BAD6179FB3EDEDB74ECD2E4EB83A9B0F8564E743347B72", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Notes.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebook.g.cs index 213e18ca89c..f456fe9dea4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebook.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionPageToSection.g.cs index e0a390c6964..cbdce83503b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionPageToSection.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToNotebook.g.cs index b1a741649fc..57bb772518e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToNotebook.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs index f9dbc42d20c..c4fc6e5eec8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionPageToSection.g.cs index ef5c06d972e..ed448e0005d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToNotebook.g.cs index 26c15cc6327..92d3816c3d8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToSectionGroup.g.cs index 6388e256eb8..1aec899a890 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteNotebookSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenotePageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenotePageToSection.g.cs index 57912125302..7475acf399b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenotePageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenotePageToSection.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionPageToSection.g.cs index 49118b187b1..333923ef0f7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToNotebook.g.cs index cfbce1d2d51..f527a5862ba 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToSectionGroup.g.cs index 6d154e5375d..a7e8d950eb6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionGroupSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionPageToSection.g.cs index a68a83f6a86..17e5e37176f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionPageToSection.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToNotebook.g.cs index 86345c07691..7b129d410cc 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToNotebook.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToSectionGroup.g.cs index c16b45bf3b4..03b66491ffc 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgGroupOnenoteSectionToSectionGroup.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebook.g.cs index 85fc482fcce..72a96e16203 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebook.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs index fc6533d2d81..b1798535537 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs index e5245617078..0206965675a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs index 6116a23ac1c..777121b3df5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionPageToSection.g.cs index e3150c50b66..c76e6508185 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToNotebook.g.cs index 4be6f7c828b..d38401233a1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToSectionGroup.g.cs index ef3bda7b223..8b58d1207a3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteNotebookSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenotePageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenotePageToSection.g.cs index 472b09a34d2..a36f8d6af19 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenotePageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenotePageToSection.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionPageToSection.g.cs index f76217ec05d..0009f6cae40 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToNotebook.g.cs index 018e44dba16..e41f5565b40 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToSectionGroup.g.cs index 19c3014c02f..8a5a5d09047 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionGroupSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionPageToSection.g.cs index 2679cf17085..b97c5a7d0ea 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionPageToSection.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToNotebook.g.cs index 35cf8e4e384..a00bf2a155c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToNotebook.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToSectionGroup.g.cs index 33cd712229b..45f92806305 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgSiteOnenoteSectionToSectionGroup.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebook.g.cs index f602e70727a..9b4f782b7e9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebook.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionPageToSection.g.cs index 0815f20b3ac..c32493817bc 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionPageToSection.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToNotebook.g.cs index 7a56e4445e1..885cd37c239 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToNotebook.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs index d389e0a9965..30e301ecd57 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionPageToSection.g.cs index b1b6d54f2a5..638f8d98c9e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToNotebook.g.cs index 1b01e99d3e5..63b8f359b0e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToSectionGroup.g.cs index 237fbbd3ad4..829e86fa902 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteNotebookSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenotePageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenotePageToSection.g.cs index aa0d1925f31..cac5ef1ee27 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenotePageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenotePageToSection.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionPageToSection.g.cs index 344506ce848..264c7902233 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToNotebook.g.cs index 43763e9d253..3b6c81f86ed 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToSectionGroup.g.cs index 9527af975a8..ce91ac7c688 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionGroupSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionPageToSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionPageToSection.g.cs index 08930910568..22020c64f8b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionPageToSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionPageToSection.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToNotebook.g.cs index c24fcd45ab5..80a2e0dfaa2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToNotebook.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToSectionGroup.g.cs index bb72b282afa..8de6c5a3957 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/CopyMgUserOnenoteSectionToSectionGroup.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenote.g.cs index 8df1245d1ea..3dfbb1b86a9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenote.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook.g.cs index 0337c4a7fea..f61fc8863f3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NotebookId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookCount.g.cs index 81cf253e875..dee7b3ae54e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookFromWebUrl.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookFromWebUrl.g.cs index 82f5de0d4f9..02910c2801a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookFromWebUrl.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookFromWebUrl.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs index 30c11350e3a..ef5ebb2f982 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection.g.cs index 439bd6d1e3c..21b01076f3e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionCount.g.cs index c79beb14cc8..55bd47249eb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup.g.cs index 3e22cbd5261..6b15d6515bd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupCount.g.cs index a600434f599..632550bcafd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentNotebook.g.cs index 80f3028cedd..aec33a48c3b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentSectionGroup.g.cs index 314267457f6..c4f6b82d0c6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection.g.cs index 0e49497c42f..0671cbb104b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionCount.g.cs index b3cf73c5a9d..4a2226c2df2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs index 67929f8fae4..21044506c14 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs index e8f7f41a058..1587cbd5974 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageCount.g.cs index dcfd94fd20a..65cdcafa26d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs index 37b9e58b75e..0cc5aef9a99 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentSection.g.cs index 3b2272d428a..ade27e28cb8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPageParentSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_Get.g.cs index 1f9620d1ab1..69feba1ab34 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_List.g.cs index cb616d9363b..7f479f6ac41 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionPage_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentNotebook.g.cs index eeb5457a948..ac50aa2b9c8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs index e3b56e75a98..f404bbbfa5c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_Get.g.cs index 5accb0b2d64..88a29d18d18 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_List.g.cs index 04075211b35..55fbac7bbd3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroupSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_Get.g.cs index b3e6d3f92d7..1fdbbb18df9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_List.g.cs index b649e89c0d5..32385ba171b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionGroup_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage.g.cs index 9be3394eb53..bacea2f8217 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageContent.g.cs index 3d6a5d8e443..4a822ea7b64 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageCount.g.cs index 9a279c4cbbb..dff42e6b124 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentNotebook.g.cs index 3f3182af27c..8c0f889b72a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentSection.g.cs index 9dd4939fefc..5bf67a08085 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_Get.g.cs index 899a8a74588..727407975dd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_List.g.cs index f4ea772dcef..c35d4bc9a68 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentNotebook.g.cs index 188f7961648..6e5cb51409c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentSectionGroup.g.cs index f2e0863f2ab..f41bbd2d1ad 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_Get.g.cs index 450a4dcc64f..8f106252cf1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_List.g.cs index ac5e10f238f..154a42c3ef6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebookSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_Get.g.cs index bdbd1663260..60088b5624b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_List.g.cs index ef5b5deb693..943d22d4b16 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteNotebook_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation.g.cs index 0a63dda4438..d69961b428a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteOperationId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperationCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperationCount.g.cs index 9af1e5a7bea..9a92851ca2c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperationCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_Get.g.cs index 248ae47cb6f..b1d54a394ec 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_List.g.cs index 578f56d97d0..d1ca8706583 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage.g.cs index 5c541a19286..cd99cacc276 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageContent.g.cs index 73088715dee..27ecc78d74b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageCount.g.cs index 294e59e7e65..9e345587af6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentNotebook.g.cs index ad942970a48..598f0239b05 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentSection.g.cs index 34b59a9d94a..46a581b550b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePageParentSection.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_Get.g.cs index 4f6401f5f23..69ecf032e2a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_List.g.cs index 80ad67b2c5b..054f28a771a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenotePage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource.g.cs index 3713855e852..7497be37f52 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteResourceId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceContent.g.cs index bf931143f05..6681faf6c31 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceCount.g.cs index a848b149b19..0c0d35deb0c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_Get.g.cs index 49a48af5e27..9db810e6ebb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_List.g.cs index d6e5d0c09e9..93617e96d6b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection.g.cs index 764bfd2f654..3c33cdde938 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionCount.g.cs index 83c8c749747..8b0e3df910a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup.g.cs index 2733ca2ddbe..4e87502d8e4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupCount.g.cs index 2971355be9d..b4b05caf31a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentNotebook.g.cs index b5786a5b00e..67a103f7d7b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentSectionGroup.g.cs index 5bede5e565c..18f203d2dd9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection.g.cs index fd2b4e61bd2..ecffe604858 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionCount.g.cs index eddd5d10ef4..8c72b02470e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage.g.cs index 86c404a9956..308568a5af6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageContent.g.cs index 695b886f69a..cf3c5a05201 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageCount.g.cs index d71362500de..41a2f4ddaaa 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentNotebook.g.cs index deba04d23d8..58214ddc092 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentSection.g.cs index 7657550dff9..4ee098db1cf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_Get.g.cs index 7efb9f99fc0..ad5adf5b02e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_List.g.cs index 619ce5aad8a..a1627e67e66 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentNotebook.g.cs index ba7fcf262ad..c4298adcd73 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentSectionGroup.g.cs index c0b5d572892..ef21778b781 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_Get.g.cs index 2f90fac71ec..98642e337c6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_List.g.cs index 942da23895a..194b06e1a6a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroupSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_Get.g.cs index 6c0a600bc1c..36bca4039b3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_List.g.cs index 50c7a19172d..fae4e964e7d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage.g.cs index ab08ce07cd3..07f67f51527 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageContent.g.cs index e0cc6dbb807..e0b1e5c44f8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageCount.g.cs index 9a1aee767e5..c9731774ab4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentNotebook.g.cs index f46b08ddc63..c586a204531 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentSection.g.cs index 1adee98ccdf..0ad400aa358 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPageParentSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_Get.g.cs index 25556464fee..afa9bdaa774 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_List.g.cs index 9818328fa2e..75e363ecc88 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionPage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentNotebook.g.cs index 9a11bed2f86..adf97787b33 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentSectionGroup.g.cs index a6f0a742363..bced516053b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSectionParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_Get.g.cs index c498eca33a3..9a39fac9334 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_List.g.cs index 2fe010e6b4c..de1c5936bd0 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgGroupOnenoteSection_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenote.g.cs index 75d3fe43596..d943615363c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenote.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook.g.cs index d50f9c83a81..ef1d4f5f44a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NotebookId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookCount.g.cs index caf7812a32c..2ea1894b3e6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookFromWebUrl.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookFromWebUrl.g.cs index a6c26bef130..2760fd9d7cd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookFromWebUrl.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookFromWebUrl.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs index a7d460350c7..72f36a3c41b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection.g.cs index 7ec86fc9a29..dd8a626f4ef 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionCount.g.cs index 550d649eaea..ad3554e323b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup.g.cs index 2822b27b5cd..8912238a48a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupCount.g.cs index 35c23dd14d6..777ad6cc050 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentNotebook.g.cs index 07ce32c31d6..af23ede5b3b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs index 51246cdaf08..98a43fcf7d9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection.g.cs index d19a242a6ef..0ce0a2aeb5d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionCount.g.cs index 4e778d5e238..54da868a977 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs index 720bc3d57b0..55a8efc696a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index 4753b2dbe80..f5ad8832841 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs index 4e41f367a97..b66ff416854 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs index 438c8f1ae12..b65b47848d8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs index 7e7cf767a77..895e8494011 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs index a6ff1e1f1df..d4dfb06afb1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs index 85b2c0194f4..5d3498cf946 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs index 80bca196a79..a474a7f5dca 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs index 313d9d485f4..27d07a017b0 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_Get.g.cs index 6e6f488b01b..2c92fcdbe87 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_List.g.cs index be19edc783b..32467675213 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroupSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_Get.g.cs index e77364236d5..940bf90da8a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_List.g.cs index 980b48f3f1a..488f2b5c537 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionGroup_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage.g.cs index 513f8d03a25..e43f342403b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageContent.g.cs index 48b354d2cb3..075e1f7ec3b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageCount.g.cs index e60fbc39561..5ddbabe2fed 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentNotebook.g.cs index f1daeaa7720..5939c34a8e5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentSection.g.cs index a8a834ad3f8..39d7a63510f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_Get.g.cs index a0bda835c32..442e431a28c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_List.g.cs index 5424ce2e369..a6a1206227e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentNotebook.g.cs index dd8038cfd3d..52243b070f4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentSectionGroup.g.cs index ca7305516ff..2d4499a96a9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_Get.g.cs index 8f60ed6a203..f0e0d78e0a5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_List.g.cs index 042bf12dd6e..6754cbc7be3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebookSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_Get.g.cs index b7ffc9928e8..9d80a17b285 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_List.g.cs index eb5e5618fdc..e75c5c86e45 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteNotebook_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation.g.cs index 4b07a373ede..409229cbac2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteOperationId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperationCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperationCount.g.cs index b72296bb410..ffd97633e61 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperationCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_Get.g.cs index 77cc1c26cf5..0227e557f04 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_List.g.cs index 76b0c7a2256..6562f8903ee 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage.g.cs index 89c62867c55..cc943056800 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageContent.g.cs index f1bf3ed84d3..fc19fcfe3c8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageCount.g.cs index 8aa2c781f86..ba6b21715b0 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentNotebook.g.cs index 9edbb44d16c..32b358ce395 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentSection.g.cs index 26cb39d54c3..2e4b5cc9944 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePageParentSection.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_Get.g.cs index 06f4f7c2a7d..3db7e443f14 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_List.g.cs index 9e941e72ab9..947bbbb30f5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenotePage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource.g.cs index 56059a2fce6..88e3a687d6a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteResourceId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceContent.g.cs index f2afdd3fa5c..4b6ad6dce93 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceCount.g.cs index 5be0b5e1b3c..56f113dfa56 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_Get.g.cs index f57f9919336..272f318c5c6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_List.g.cs index 5c7a2740310..dd7a73dcc35 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection.g.cs index 6e9792e56ea..55509e6297f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionCount.g.cs index bba0bf66e71..65885397191 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup.g.cs index fd86b86e6b1..e91455c1ace 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupCount.g.cs index 5ae96b40a7f..14e4cb6a3a3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentNotebook.g.cs index d7aad5118f9..b5dd8fd3bc3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentSectionGroup.g.cs index 832cce99d46..13545d9dc4f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection.g.cs index e7cc064d21c..748374c5fd8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionCount.g.cs index faac80c4466..4ed7f9e8e3a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage.g.cs index 9a83b8a6c95..3c955370f34 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageContent.g.cs index 7707ad758e4..8313a4b91b1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageCount.g.cs index 5a471e5562b..a471aa31482 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs index a19085e8e02..2aca5786724 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentSection.g.cs index f68e19cc937..433bad64d46 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_Get.g.cs index 08ca09b282c..3ffb0af7178 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_List.g.cs index d9a631dc05d..02b1a7d7863 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentNotebook.g.cs index 2d07ec7491d..16b8ce57db3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs index f8d3e8c8f29..c32da2cfa20 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_Get.g.cs index 0bc87e3c6ef..a54db02c0e3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_List.g.cs index cfe4c2ce35e..7ea738c268b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroupSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_Get.g.cs index 94f6d93439a..b85dd887c96 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_List.g.cs index 2100e126c55..764105407d6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage.g.cs index 1a513a9f760..3f775baf085 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageContent.g.cs index 5503b0dff96..77d8cdca094 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageCount.g.cs index a38fec91c9f..f321303ada0 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentNotebook.g.cs index b7cc49ccbf3..2b1f42c604b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentSection.g.cs index 7f04e22c74f..20a9d0dd2b1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPageParentSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_Get.g.cs index 887a18460e2..2c2a850af96 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_List.g.cs index c125d8cfb36..82803f286a2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionPage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentNotebook.g.cs index 5bd08065d03..cca4374d5ac 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentSectionGroup.g.cs index cec547219d0..7a8600da50e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSectionParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_Get.g.cs index b7e49caf40f..7de15dc7e4f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_List.g.cs index 75c3ee89a12..e04e1c44206 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgSiteOnenoteSection_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenote.g.cs index 8658b4fbba0..6e8bb77a9ba 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenote.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook.g.cs index d297d542307..47dfc922c2a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NotebookId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookCount.g.cs index f84ee7bd261..b6ac2e241bf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookFromWebUrl.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookFromWebUrl.g.cs index cd6c31fc8f6..ecdf8de110e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookFromWebUrl.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookFromWebUrl.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs index 90167bdbb09..767e1039900 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection.g.cs index 38e38bc14e3..caafb306e9d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionCount.g.cs index 078f197b226..3065ad8a1f7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup.g.cs index edd5af17842..3cf1d471227 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupCount.g.cs index 4e65e1b4313..5e6870c3858 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentNotebook.g.cs index 9fc9a113959..c7f8caa9b21 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentSectionGroup.g.cs index 06d215e9b40..47766d7b5af 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection.g.cs index bbe6612724b..a7269bf79a5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionCount.g.cs index 4183fbf2aa6..9fb658a4a06 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage.g.cs index 596dfd7040c..0b75acd7c11 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs index 771f0afa105..7a95ba9b4f3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageCount.g.cs index d7b25c33708..0ce1372db92 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs index 113e9b56733..84bf40668a2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentSection.g.cs index 7ae970824a2..978271d3134 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPageParentSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_Get.g.cs index b80c2b1a226..109a7d494f8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_List.g.cs index 4daaab08002..93ad788f60d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionPage_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentNotebook.g.cs index 02ac2cf36ac..3732c404a49 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs index 86aa85d4961..a6cf70639ad 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_Get.g.cs index e59f2f05604..3481f5861b3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_List.g.cs index 1853126eb9d..e0305925e11 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroupSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_Get.g.cs index 8f706799be4..28d28af2015 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_List.g.cs index eef96d7ec37..3e2e9c06e79 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionGroup_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage.g.cs index 760b7d83b67..3df0c48b1bf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageContent.g.cs index 19466968c7f..acff384e750 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageCount.g.cs index 4052cd6b81a..e013c578201 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentNotebook.g.cs index 5b76a273861..56ba1fd38c4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentSection.g.cs index e61f5a7539d..1053cc2d362 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_Get.g.cs index 213f0f38f1a..60fcaf55a3c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_List.g.cs index 1ab96a85bca..c961cf4271b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentNotebook.g.cs index 67518051b87..3b57d966f88 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentSectionGroup.g.cs index c54647ff6f3..5b48705b9d8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_Get.g.cs index d922f690c81..52cfa0489c7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_List.g.cs index ee52f4e3490..1fbf0def483 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebookSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_Get.g.cs index 2edb71605d1..cbef267bffc 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_List.g.cs index ad26bd83265..ebde3194a52 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteNotebook_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation.g.cs index 33ee6dbc6cf..3de5a096602 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteOperationId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperationCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperationCount.g.cs index 8da7b2e954a..d6cd339e6ea 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperationCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_Get.g.cs index 1acf463b173..fe3d8ac24b2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_List.g.cs index 86111654339..66c43f401b8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage.g.cs index 538664f0d83..8cf02bcfcd4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageContent.g.cs index 08dba2170ce..d6bf4c7be65 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageCount.g.cs index 05c7e864024..1c702db050d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentNotebook.g.cs index 95012700781..a0f48236db2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentSection.g.cs index 6357f1604e6..96e4c140696 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePageParentSection.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_Get.g.cs index 896ab611276..68ff016fc18 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_List.g.cs index 9629d72d4eb..e7dadf3b5da 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenotePage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource.g.cs index f0895811789..8cdacdf0423 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteResourceId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceContent.g.cs index e4230f99d3a..945b3683af2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceCount.g.cs index 5ca381c5cf4..ac6509f24b8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_Get.g.cs index 07da14bd1fe..56db375e28c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_List.g.cs index df164c0de3e..235f7203347 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteResource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection.g.cs index b1b2f9c8371..196f7fc4b44 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionCount.g.cs index f9840a7f68d..8e8b6998026 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup.g.cs index 735b0c25335..5dcb9bd2981 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupCount.g.cs index e2d3b5147da..3fe567cd409 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentNotebook.g.cs index d72a543ba83..ed61284cec3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentSectionGroup.g.cs index 80738a60a74..5a17637545f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection.g.cs index b75d835f204..a2bcde8a317 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionCount.g.cs index 38800311e0d..31a481b85c9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage.g.cs index 2a6168755a7..a1bdde6b4ff 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageContent.g.cs index 06250aae439..de944bec3d9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageCount.g.cs index 1f456d2e4d6..3ee9f6eac3b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentNotebook.g.cs index 7d46712d99e..b54ca027643 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentSection.g.cs index 0eab36389b4..d5b34051e1a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_Get.g.cs index 978b731f825..927bee545cc 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_List.g.cs index c56983ee58b..d737554f752 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentNotebook.g.cs index ddda8df9e85..a8bda89e564 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentSectionGroup.g.cs index 51c81eba41f..4c2894aa254 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_Get.g.cs index 9078c0aca88..94ab356a634 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_List.g.cs index 85ef472a6b1..697a393a667 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroupSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_Get.g.cs index a3a53b94a64..05bd0e62c66 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_List.g.cs index 0afb6ca6bc2..45421108d42 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage.g.cs index 8352793d819..ad1c9fd61bf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageContent.g.cs index a01ba4e7c4a..2b50a066698 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageCount.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageCount.g.cs index b764505398e..f44b5cdea44 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageCount.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentNotebook.g.cs index 8be4e7fba64..17689aafc34 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentSection.g.cs index e07fb76db24..f58331f543d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPageParentSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_Get.g.cs index 07d5272a3ec..34660ce3182 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_List.g.cs index 48440ef81d5..74936c60ce9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionPage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentNotebook.g.cs index e4551dc1226..729a649a800 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentNotebook.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentSectionGroup.g.cs index 8b374e44acc..67bee584d8d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSectionParentSectionGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_Get.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_Get.g.cs index 77e5977c62e..4b7abc79004 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_Get.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_List.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_List.g.cs index 2767001085e..0cc4e7e68e7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_List.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/GetMgUserOnenoteSection_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionGroupSectionPage.g.cs index 1e2d4ee429d..08a00a69c63 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionGroupSectionPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionPage.g.cs index 9a7d88f0617..a4ced97a047 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteNotebookSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenotePage.g.cs index b43695937de..090eade675e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenotePage.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionGroupSectionPage.g.cs index 10c58437365..445ac4ad878 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionGroupSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionPage.g.cs index 433e95ae93a..ea46a0c1c39 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupOnenoteSectionPage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionGroupSectionPage.g.cs index 91b3de5cd31..6f3145a7459 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionPage.g.cs index ca4f016837b..a29bc832611 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteNotebookSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenotePage.g.cs index b3f78078210..26122c9fb30 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenotePage.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionGroupSectionPage.g.cs index ba1381e2bbf..cb1fa368647 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionGroupSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionPage.g.cs index d8b6f5b0c50..c86c4753685 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewSiteOnenoteSectionPage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionGroupSectionPage.g.cs index 4c5a9eef3fe..02b1fa6353f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionGroupSectionPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionPage.g.cs index 13c72fc0adf..c63002e8bc4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteNotebookSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenotePage.g.cs index af1d161609d..7244d7f0ad1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenotePage.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionGroupSectionPage.g.cs index a67ec89905f..e6dd254e8f8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionGroupSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionPage.g.cs index 59a3cd26079..7bea116607d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/InvokeMgPreviewUserOnenoteSectionPage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebook.g.cs index 14d6edfdfb2..03daae6e6b6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebook.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSection.g.cs index 7d8ce62cdd2..2726340ea5e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroup.g.cs index 7acec3917d7..d05ee5d6f75 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSection.g.cs index 5eccaddf028..571ee5682ac 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs index 99cda706fe7..a775ed864e6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionPage.g.cs index 907e94f9338..0b2ee95b89d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteNotebookSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteOperation.g.cs index b790ca77ca4..2b04da6f6f5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteOperation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenotePage.g.cs index 02fea33c7d3..1e761495edf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenotePage.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteResource.g.cs index cadeec8e808..75bccb72114 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSection.g.cs index 4bdb14f8ad8..eccb7dba6f6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSection.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroup.g.cs index f273a2d6e04..9b10a68edf3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroup.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSection.g.cs index 35bc8fa92e4..56faecdb1f6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSectionPage.g.cs index cd920925aeb..de42bce2b3c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionGroupSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionPage.g.cs index b032e1bb884..ca5d0c19023 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgGroupOnenoteSectionPage.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebook.g.cs index 4df9dd0032e..d73a816328d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebook.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSection.g.cs index a658adea1cc..a8a69dcaa27 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroup.g.cs index adb4b61332a..85782236c0a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSection.g.cs index c2843c998ab..f0a00535c23 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs index ac877a8114b..cf6b4ba8f77 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionPage.g.cs index dbe66fd87bc..4a6def6f5aa 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteNotebookSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteOperation.g.cs index d1470301008..2402d56979e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteOperation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenotePage.g.cs index eb78ee91cf3..fc3585a9e56 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenotePage.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteResource.g.cs index f6bcc10cdcd..337ec51cde5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSection.g.cs index bf58cb7e4d8..7877236b623 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSection.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroup.g.cs index 81baf521af5..af81c81bf98 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroup.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSection.g.cs index 1240a6b4b2f..2f2135e8cda 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSectionPage.g.cs index ad1dba9cffc..f50cde78d1b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionGroupSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionPage.g.cs index 1f97c472380..133df44c3f7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgSiteOnenoteSectionPage.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebook.g.cs index 0c1a8566f13..c2e0c2a096c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebook.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSection.g.cs index 86394e4e13c..d3ef0558625 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroup.g.cs index 92b449fa9dd..9d830065ef5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSection.g.cs index 03211e7e43b..e9a1b99903f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSectionPage.g.cs index 9f9d997c5b0..4a27150f73c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionGroupSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionPage.g.cs index ef7a368bd38..3f68c284582 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteNotebookSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteOperation.g.cs index 5965ee332cf..3d1a9633079 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteOperation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenotePage.g.cs index aa806cd7a92..3cfe3777d68 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenotePage.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteResource.g.cs index edab73b1de0..e295e18d276 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteResource.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSection.g.cs index db67204e330..77cfe09b329 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSection.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroup.g.cs index 1049588d9ca..5482dab8d53 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroup.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSection.g.cs index 605481fd1b1..884797ff0c2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSectionPage.g.cs index 1ef16026a96..cf47e9d3569 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionGroupSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionPage.g.cs index 90a0f193b75..dac19219da7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/NewMgUserOnenoteSectionPage.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenote.g.cs index d6d64c95ed8..b6c17883480 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenote.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebook.g.cs index 485ae449018..9cbb3d9f8d4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebook.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSection.g.cs index e58091395f9..113c229a384 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroup.g.cs index 85e1f8ef9f6..b5e1f78f3ce 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSection.g.cs index 7331200264e..632fb4a777c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs index a9fc89dbc47..ab9aec0d156 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs index 8ae606f064c..9a4f30698ff 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPage.g.cs index e7e91c1f76e..ce16d8fb3f5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPageContent.g.cs index 5691e1ffd54..23173866ef1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteNotebookSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteOperation.g.cs index bb2b6516c06..0b496ed4584 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePage.g.cs index cc7be8d2233..a5e45559b72 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePageContent.g.cs index 33bc91bc976..0821538c18b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenotePageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResource.g.cs index 213a0fba9e3..df7184948bb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResourceContent.g.cs index 63ee52ae8b5..e949f772577 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteResourceContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSection.g.cs index 5d54c671d2f..3b8e1e3b2b9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroup.g.cs index 23a4096a619..e3419a033cf 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSection.g.cs index fa9960bee5b..431c1d2ae3d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPage.g.cs index 8e10a3ae283..ce0e0b9dade 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPageContent.g.cs index 3a53c4de20a..a3f898a80da 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionGroupSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPage.g.cs index 2ed62e13606..ded6dac9c4b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPageContent.g.cs index 024618ca6da..3d4cc8cd3a1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgGroupOnenoteSectionPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenote.g.cs index 9a8619ae600..9c8733bf1a5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenote.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebook.g.cs index 36162071849..944aa9a216b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebook.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSection.g.cs index c59af44a7bf..359c0079b59 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroup.g.cs index 81a1e583f53..48155246e2e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSection.g.cs index b31d3a5e74c..7f2e77eb1be 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs index bcadbf4a715..f59e09c12fe 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionPage.g.cs index b816dc8560b..5a65d6f8acb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteNotebookSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteOperation.g.cs index a25333914a2..d8d51c35144 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenotePage.g.cs index ab4991e5f52..7765125e663 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenotePage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteResource.g.cs index b3a807ed11f..db630bb3b26 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSection.g.cs index 13505b82c49..972f01c7e73 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroup.g.cs index 269e7cbe627..77206c968cd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSection.g.cs index 8bd16c637fe..5400b321b41 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSectionPage.g.cs index e83190b5eeb..1b5592a1c90 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionGroupSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionPage.g.cs index bb274e7772c..c798b123909 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgSiteOnenoteSectionPage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenote.g.cs index 6b41c811975..9a3fed381a7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenote.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebook.g.cs index 428324914db..36326e4ee14 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebook.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSection.g.cs index b62463029af..239b5714890 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroup.g.cs index 96ae15c3b92..47eed1d0541 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSection.g.cs index ae5d1fdfdbd..1035c22de54 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPage.g.cs index 1d77de9366d..39cc0d6f767 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs index dad8a9f93ef..dddc4b7c824 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPage.g.cs index f1cb36ae189..130ce09bd5e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPageContent.g.cs index c9e3e1f775c..e4b6ca24ad6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteNotebookSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteOperation.g.cs index 8f4bf8a39de..9a74d93f9e1 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePage.g.cs index d36ecd906b3..2d461defd69 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePageContent.g.cs index f938114f80e..70b52df8beb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenotePageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResource.g.cs index fddf7abb083..929c64604c6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResourceContent.g.cs index e3ef7367ecb..bfbaf1b4d58 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteResourceContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSection.g.cs index 8790efc8ac6..276931c3fa9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroup.g.cs index f347a708d0b..7ec15b6b374 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSection.g.cs index 354cddac3f7..db3f293614a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPage.g.cs index cce388a7bec..44c01847146 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPageContent.g.cs index 3a981d56abd..53a01feb58e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionGroupSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPage.g.cs index 50329809dec..3b5d030b264 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPageContent.g.cs index c01dee2b562..1569b9f5a3b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/RemoveMgUserOnenoteSectionPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs index 25be93ecba2..d7e8ca92fd5 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionPageContent.g.cs index d968f72ce82..51f0888a82b 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteNotebookSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenotePageContent.g.cs index d3a8f47c0c8..02849430a97 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenotePageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteResourceContent.g.cs index 3b6154eb863..0129ebe40ea 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteResourceContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionGroupSectionPageContent.g.cs index e8d99c32a52..74dc10ba7d9 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionGroupSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionPageContent.g.cs index daa16439ae1..6c472424fab 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgGroupOnenoteSectionPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index 15c18dfd8d4..c8d5ea03627 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionPageContent.g.cs index 48c3071f967..69fb05b508f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteNotebookSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenotePageContent.g.cs index 66891efed44..7ba0c754e9e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenotePageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteResourceContent.g.cs index 5c7b5474af6..bb85a1eb50f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteResourceContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionGroupSectionPageContent.g.cs index 0dcf3b2e954..41e8520c4e6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionPageContent.g.cs index fcfc4067b87..5aaf0fe179c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgSiteOnenoteSectionPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs index a6fbf806bd0..dc6a36913cd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionPageContent.g.cs index 6fefd10a557..5b92498d23a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteNotebookSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenotePageContent.g.cs index 7ebdca81bc3..bbb06fbb896 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenotePageContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteResourceContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteResourceContent.g.cs index fb5923a7403..5d94cacadd6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteResourceContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteResourceContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionGroupSectionPageContent.g.cs index aa7ff42c3d7..f7d5fc5b172 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionGroupSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionPageContent.g.cs index f9ae73f9456..c593fbe62bb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/SetMgUserOnenoteSectionPageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenote.g.cs index 0ac611809a3..daba14e4507 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenote.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebook.g.cs index 9171a0c6bc3..53ca6fafd90 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebook.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Notebooks[NotebookId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSection.g.cs index 06480c12521..cc25afa53ca 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Notebooks[NotebookId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroup.g.cs index 4fea22f3593..7d5d73335f3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroup.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSection.g.cs index 81bcc2901aa..8aa1c6c7bcd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs index 129a4c08272..08b891bd944 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionPageContent.g.cs index 396a2d3748d..e88435ea406 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteNotebookSectionPageContent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteOperation.g.cs index 6572d817928..a5f8f1dfcbe 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteOperation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Operations[OnenoteOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenotePageContent.g.cs index 7c79814d31d..c3dbee63667 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenotePageContent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteResource.g.cs index 6fb3b16d31a..7841f84c415 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteResource.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Resources[OnenoteResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSection.g.cs index 866b18cee78..5542349d49f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroup.g.cs index bc352f56392..219f154893f 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSection.g.cs index f216d1ae416..ef9c8c65448 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Onenote.SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSectionPageContent.g.cs index 377295479ff..25bf5fa86c4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionGroupSectionPageContent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionPageContent.g.cs index 1d4f98d3277..c9035c29efd 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgGroupOnenoteSectionPageContent.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenote.g.cs index 2694307d50f..0b78ee1ab62 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenote.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebook.g.cs index 697bc32ae78..33f6a4db7d4 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebook.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Notebooks[NotebookId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSection.g.cs index 10679722a92..f1372954d32 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Notebooks[NotebookId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroup.g.cs index 8635e2fd781..5abb221caed 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroup.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSection.g.cs index 392d06cbd02..f473d32b7b7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index 7a1564ff245..439f5f0b37e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionPageContent.g.cs index 74aa171d11e..43cee1de818 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteNotebookSectionPageContent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteOperation.g.cs index 9bafa312e05..6e7f20e0d5c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteOperation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Operations[OnenoteOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenotePageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenotePageContent.g.cs index cc134809338..d6924afc75a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenotePageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenotePageContent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteResource.g.cs index 0fd9f4277eb..855bcbe63d8 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteResource.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Resources[OnenoteResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSection.g.cs index 4b44b566e93..bede557711a 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroup.g.cs index 2244465a2da..633506a0785 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSection.g.cs index 8c17e5f6377..a56946403a6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Onenote.SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSectionPageContent.g.cs index 96adb2fc787..a521e1c5637 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionPageContent.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionPageContent.g.cs index 8cdd032cbac..cd97e32b0eb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionPageContent.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgSiteOnenoteSectionPageContent.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenote.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenote.g.cs index 3be993da4bc..f4a4c7eb8b3 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenote.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenote.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebook.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebook.g.cs index 80650f7fa90..8d4472f39a7 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebook.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebook.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Notebooks[NotebookId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSection.g.cs index 690f83b4bd3..dea23f4e19e 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Notebooks[NotebookId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroup.g.cs index 57e1e9ad695..46fadb72beb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroup.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSection.g.cs index 974aa81c5dc..ba55f5aa147 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSectionPage.g.cs index b7dfe01ae55..225cfc04753 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionGroupSectionPage.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionPage.g.cs index 9aff580c8f0..994cae37d55 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteNotebookSectionPage.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteOperation.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteOperation.g.cs index 1dddffed28a..21ae905ba1c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteOperation.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteOperation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Operations[OnenoteOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenotePage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenotePage.g.cs index 845126ee027..61f873447b2 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenotePage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenotePage.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteResource.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteResource.g.cs index c8bb79ce2ad..c6a80a46e9c 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteResource.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteResource.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Resources[OnenoteResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSection.g.cs index 23c06de199c..78239a1a6c6 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroup.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroup.g.cs index 692bc82da00..b10054ea735 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroup.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSection.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSection.g.cs index b0919fa0f1c..1081e1d3279 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSection.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Onenote.SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSectionPage.g.cs index ae087365898..ede7ef02adb 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionGroupSectionPage.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionPage.g.cs b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionPage.g.cs index 5fe10d6e501..6528ddf999d 100644 --- a/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionPage.g.cs +++ b/src/Notes/wrapper/v1.0/Cmdlets/UpdateMgUserOnenoteSectionPage.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/People/wrapper/v1.0/Client/kiota-lock.json b/src/People/wrapper/v1.0/Client/kiota-lock.json index 2f6a19340e4..058fc1896ca 100644 --- a/src/People/wrapper/v1.0/Client/kiota-lock.json +++ b/src/People/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "B8B812EDE9F2D383F7552BEE890E5F897089D8E80BB32E11D869514E21C026B4B26F3CD0C437C8025834B660641632F99741DE73DA95B646F1ED7E2FEB1DD924", + "descriptionHash": "8B5487C1102A5E3CE36527EC1113A6099498F7402A45CB6C5CB042D5E98976FD4AC5C5828A2D92B95F7A7BB78E6E404810C1C7B5E632B9F3DFA0274F2D59BF04", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/People.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson.g.cs b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson.g.cs index 34834b0a8e6..9b1ff000fc4 100644 --- a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson.g.cs +++ b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PersonId : UserId); return; diff --git a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPersonCount.g.cs b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPersonCount.g.cs index 297846de00d..b8ec7f81337 100644 --- a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPersonCount.g.cs +++ b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPersonCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_Get.g.cs b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_Get.g.cs index 9ea5c6da3a7..a4b15a45a67 100644 --- a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_Get.g.cs +++ b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PersonId); return; diff --git a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_List.g.cs b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_List.g.cs index 0a1d4bd15ff..ede8f5471a6 100644 --- a/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_List.g.cs +++ b/src/People/wrapper/v1.0/Cmdlets/GetMgUserPerson_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Client/kiota-lock.json b/src/PersonalContacts/wrapper/v1.0/Client/kiota-lock.json index f4bd44d8b9b..b4d4028e014 100644 --- a/src/PersonalContacts/wrapper/v1.0/Client/kiota-lock.json +++ b/src/PersonalContacts/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "177C49DDB83B19EA3A8BC17EC0AA995ECB8A3CD24510A4F8EEAE76E29C803408DA19320AF0B8189D87D8C6B084B613D0503458CE8AC92308B0684F55D3669BF2", + "descriptionHash": "C970823594F0918AEA4919215ACB23F94C78B6DAE8A9974D9C325668699CD374A44B189895301B540A3320884A947DA6E41DCED499B8C839AE73305B67EFF475", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/PersonalContacts.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact.g.cs index 4aceb0c350d..e06cbde1c56 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContactId : UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactCount.g.cs index 633fd9ce496..faa5107f29a 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactDelta.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactDelta.g.cs index cf03eca524b..96be8f59e49 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactDelta.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension.g.cs index 23125bd071b..49e7e2904b6 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtensionCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtensionCount.g.cs index ba9babcb75e..7634ba855c2 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtensionCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtensionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_Get.g.cs index 2e007c97016..76d9d9aa917 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_List.g.cs index f8bcf7d2ea0..75d48365acf 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactExtension_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder.g.cs index dae3678e5ee..b45e6b0bd69 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContactFolderId : UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder.g.cs index 49e0ad8663f..e8964c10a08 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContactFolderId1 : ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact.g.cs index 2a087a446d5..7e89b03a32d 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContactId : ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactCount.g.cs index df10e0c1ad9..30ecec1b188 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactDelta.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactDelta.g.cs index 27c631d570b..c76a44cb3a4 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactDelta.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension.g.cs index c6f8e4b803a..2db12736c93 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtensionCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtensionCount.g.cs index 8df224d81dd..e0d83536d00 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtensionCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtensionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_Get.g.cs index a2d5535adba..d77c1873ea0 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_List.g.cs index fdf4d1b136e..d33451467c4 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactExtension_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhoto.g.cs index 1074ba3df80..0414cedc471 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhoto.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhotoContent.g.cs index 055786c16ea..4f2d734bd10 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContactPhotoContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_Get.g.cs index 4e7c1bb5593..676ec2fcf9c 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_List.g.cs index e2c89e44290..7fd305e9f37 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderContact_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderCount.g.cs index ce302a570b2..f79cb6328d6 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderDelta.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderDelta.g.cs index 93384d2c9af..2f58770d07e 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderDelta.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolderDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_Get.g.cs index 39d9b9bf638..4a868c3d9b0 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_List.g.cs index 7806abd4631..95654e51f1a 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderChildFolder_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact.g.cs index b72f2cc0e6d..1d6f66f29be 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContactId : ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactCount.g.cs index 89384986917..5aaf4ae932a 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactDelta.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactDelta.g.cs index b25e253e0df..be6c3faadff 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactDelta.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension.g.cs index ef8495f75c1..4a1d009add6 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtensionCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtensionCount.g.cs index c451a6f0f75..bfe8918299e 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtensionCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtensionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_Get.g.cs index fb1ea42fd32..45905f66103 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_List.g.cs index 61348b24186..e5f1596b521 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactExtension_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhoto.g.cs index 3f59c120ad1..7d4ed46b191 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhoto.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhotoContent.g.cs index 37cd785a34d..6892b9e17cd 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContactPhotoContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_Get.g.cs index e262c0aae13..4c478a0e9a9 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_List.g.cs index 2e64c1af5bd..fda68941e80 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderContact_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderCount.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderCount.g.cs index 6b50fa2a098..b2c3512c5e8 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderCount.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderDelta.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderDelta.g.cs index 9601a6e7757..7d69513b139 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderDelta.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolderDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_Get.g.cs index 56f23d71908..dd9c85636f9 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_List.g.cs index 8822e5900e8..602633bea5e 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactFolder_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhoto.g.cs index 95faa540844..904ec211060 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhoto.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhotoContent.g.cs index 1a68ef4c741..1354812c598 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContactPhotoContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_Get.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_Get.g.cs index 83b956c6545..302a3f3342a 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_Get.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_List.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_List.g.cs index e4ec342ed18..4cee165c2c3 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_List.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/GetMgUserContact_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContact.g.cs index e01031328da..d3bbe57f2dc 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContact.g.cs @@ -285,7 +285,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactExtension.g.cs index 99214c29821..9d4b0f52a2a 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolder.g.cs index 1f8dfc838af..12332f1ba0b 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolder.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolder.g.cs index 19f4b5abe1e..3d7d2179ce6 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolder.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContact.g.cs index 5f3e23d84c7..d26ba46c925 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContact.g.cs @@ -289,7 +289,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContactExtension.g.cs index 814285ee10a..ba5a661b10e 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderChildFolderContactExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContact.g.cs index b387b550913..ce8249f6ae9 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContact.g.cs @@ -287,7 +287,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContactExtension.g.cs index 87d0108ee27..4963d087de8 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/NewMgUserContactFolderContactExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContact.g.cs index c6eca149686..6c7286668df 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContact.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactExtension.g.cs index beec4a8d0c7..d4e70b314e2 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactExtension.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolder.g.cs index 55f08796e68..b186ba1476d 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolder.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolder.g.cs index c48c9d29f8b..b667c61bb55 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolder.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContact.g.cs index 47bea250cf6..d61ece49c82 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContact.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactExtension.g.cs index 1751c37eae5..b49cd4de300 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactExtension.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPermanent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPermanent.g.cs index 87c29be8f9f..53fb2884242 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPermanent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPermanent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPhotoContent.g.cs index 429c3604c2c..d4ad7d1ef29 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderContactPhotoContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderPermanent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderPermanent.g.cs index 91c3e34545e..faad2424b03 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderPermanent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderChildFolderPermanent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContact.g.cs index 878cf61d254..a969afc1fa7 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContact.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactExtension.g.cs index edee6c81390..6254935f3c7 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactExtension.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPermanent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPermanent.g.cs index 89466497494..666f5fabe72 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPermanent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPermanent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPhotoContent.g.cs index 1fa59a92b40..e270a869373 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderContactPhotoContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderPermanent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderPermanent.g.cs index e053b42bb5c..393addc10c3 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderPermanent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactFolderPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPermanent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPermanent.g.cs index bf592ba4f04..6173ecd91a4 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPermanent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPermanent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPhotoContent.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPhotoContent.g.cs index 4117ae192fc..c573370b8c8 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPhotoContent.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/RemoveMgUserContactPhotoContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContact.g.cs index 8148991de86..f0079b5a4f2 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContact.g.cs @@ -287,7 +287,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -301,7 +301,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Contacts[ContactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactExtension.g.cs index 346079ecb68..28de638bdb9 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Contacts[ContactId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolder.g.cs index 041d82cdad4..e3670a9eb07 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolder.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolder.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolder.g.cs index df64596c80e..05e8680cff6 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolder.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolder.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].ChildFolders[ContactFolderId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactFolderId1); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContact.g.cs index 7d195048b5c..4e1eb6b8d30 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContact.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -305,7 +305,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].ChildFolders[ContactFolderId1].Contacts[ContactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactExtension.g.cs index 0ce52d03c93..050e583d2c3 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactExtension.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].ChildFolders[ContactFolderId1].Contacts[ContactId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactPhoto.g.cs index 79e152c9e69..0360f20770b 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderChildFolderContactPhoto.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].ChildFolders[ContactFolderId1].Contacts[ContactId].Photo.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContact.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContact.g.cs index e56228f4792..8823b958a25 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContact.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContact.g.cs @@ -289,7 +289,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -303,7 +303,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].Contacts[ContactId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactExtension.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactExtension.g.cs index 9992bf1c35b..4dcbeb1dda9 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactExtension.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].Contacts[ContactId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactPhoto.g.cs index 79014db58bc..44e33aa96f5 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactFolderContactPhoto.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].ContactFolders[ContactFolderId].Contacts[ContactId].Photo.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactPhoto.g.cs b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactPhoto.g.cs index 77680ab3f06..cbeeb298a69 100644 --- a/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactPhoto.g.cs +++ b/src/PersonalContacts/wrapper/v1.0/Cmdlets/UpdateMgUserContactPhoto.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Contacts[ContactId].Photo.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContactId); return; diff --git a/src/Planner/wrapper/v1.0/Client/kiota-lock.json b/src/Planner/wrapper/v1.0/Client/kiota-lock.json index 39c16b796b3..7973eb0d8c4 100644 --- a/src/Planner/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Planner/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "01B52197117BB43B20A3BC5577EE84FAD98A875C4F799376452D5F95B88FFCDBCDEC873A41746796187F5A9DE78922260129455BC199AF928DF40426D83F7C86", + "descriptionHash": "ADE0F5305AFDB45C1974E4D9030EA7304EF95B0931D533E84685CBD9C1E1C976DBDF71BE2CF47177FE8155C1A6A0FFC8E692271F2B8AFE44FF9B1452D061D629", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Planner.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlanner.g.cs index e6673dbc392..b8da8b66b0d 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlanner.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan.g.cs index f1eab7542f2..66100bd9bb5 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerPlanId : GroupId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket.g.cs index 0227f9ce271..0383bed201e 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerBucketId : PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_Get.g.cs index c955f7d8054..3dba8ab9adc 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_List.g.cs index 79b0e6e3603..2f9a8b1571f 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanBucket_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanCount.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanCount.g.cs index 58b71616c85..3216753028a 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanCount.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanDetail.g.cs index f2c0af79e53..a6c3f3c7b73 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanDetail.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask.g.cs index abe32ee73ae..6d2964d3402 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerTaskId : PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_Get.g.cs index 67e458d39e8..c2a352d4d2e 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_List.g.cs index d60c31177fc..fd999f9d5df 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlanTask_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_Get.g.cs index 9affe2d0a12..fb4e5df8f36 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_List.g.cs index 2983171aa73..10e0b9a5e8c 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgGroupPlannerPlan_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlanner.g.cs index 535fe04fed1..4858a19508b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlanner.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket.g.cs index df68558eff0..32763c81c52 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerBucketId : null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketCount.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketCount.g.cs index 64470aacf9a..842048efef3 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketCount.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask.g.cs index 5a11905acaf..ac62a5b6573 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerTaskId : PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_Get.g.cs index 93515711584..11709a34314 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_List.g.cs index aa383a857d9..eed1c3ca119 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucketTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_Get.g.cs index 8f9a3a070be..c9ab205b06b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_List.g.cs index 8cf81a957b0..8d5da02460e 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerBucket_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan.g.cs index be136d8ae9f..6ef21d3aa7b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerPlanId : null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket.g.cs index 2245747db55..4a6eb170875 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerBucketId : PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_Get.g.cs index e8bc7793bd5..be18c616563 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_List.g.cs index b82fbf83e0a..b3f73b4c4ec 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanBucket_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanCount.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanCount.g.cs index d0b4841f265..71ac19a0a32 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanCount.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanDetail.g.cs index dfcc5249cff..2f025daaa58 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanDetail.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask.g.cs index 2b530f16231..0a9ae2b06d6 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerTaskId : PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_Get.g.cs index 05e59fffc17..7c6215193b9 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_List.g.cs index 03a053961c8..7904f0697a7 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlanTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_Get.g.cs index 41834d97a44..2324990709d 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_List.g.cs index c4d39aee5b7..7188e6915a8 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerPlan_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask.g.cs index 0e8a56c42c7..fc219edab74 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerTaskId : null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskAssignedToTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskAssignedToTaskBoardFormat.g.cs index 6362a7063c7..3d7dd04d4eb 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskAssignedToTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskAssignedToTaskBoardFormat.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskBucketTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskBucketTaskBoardFormat.g.cs index 69202790a8d..dccab2fe0f4 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskBucketTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskBucketTaskBoardFormat.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskCount.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskCount.g.cs index 4e4f5afea9e..1557696d315 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskCount.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskDetail.g.cs index 9c79de135c8..41518f9bb0b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskDetail.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskProgressTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskProgressTaskBoardFormat.g.cs index 7b34b612449..fcce288af6c 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskProgressTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTaskProgressTaskBoardFormat.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_Get.g.cs index afa3ce6e0c5..07c19a763bf 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_List.g.cs index bbde35654d7..e4e8c88283e 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgPlannerTask_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlanner.g.cs index 9a33acb0aa9..2336ba242ae 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlanner.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan.g.cs index c007af63245..76987f46256 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerPlanId : UserId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_Get.g.cs index 11e8bc1f1e9..5d1280e3943 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_List.g.cs index f7fbc2e853d..138d4e20d15 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerPlan_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask.g.cs index a40cdca9480..776e5972674 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PlannerTaskId : UserId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_Get.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_Get.g.cs index 3d08912612c..404f2552572 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_Get.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_List.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_List.g.cs index 8d170c42eba..771c83eb1dc 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_List.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/GetMgUserPlannerTask_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerBucket.g.cs index 8bc63f3af4a..e4f344701ca 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerBucket.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerPlan.g.cs index 6fe853182a3..ab31b755c7b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerPlan.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerTask.g.cs index 7dfeea566fb..5edd66fe350 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/NewMgPlannerTask.g.cs @@ -170,7 +170,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgGroupPlannerPlanDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgGroupPlannerPlanDetail.g.cs index 277e7168ebe..1171a939410 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgGroupPlannerPlanDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgGroupPlannerPlanDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerBucket.g.cs index a0f1912952d..231d828355b 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerBucket.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerPlan.g.cs index 84236164f6e..7334052213f 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerPlan.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTask.g.cs index 357bec6b0dc..d55718ca215 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTask.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskAssignedToTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskAssignedToTaskBoardFormat.g.cs index 7086876d783..cf5a42c7d20 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskAssignedToTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskAssignedToTaskBoardFormat.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskBucketTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskBucketTaskBoardFormat.g.cs index ecf33894757..04d9d1d1ef5 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskBucketTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskBucketTaskBoardFormat.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskProgressTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskProgressTaskBoardFormat.g.cs index 6154f04e3b5..ab2e676e815 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskProgressTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/RemoveMgPlannerTaskProgressTaskBoardFormat.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlanner.g.cs index 2b39e31b127..8d865df7f8d 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlanner.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -70,7 +70,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Planner.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlannerPlanDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlannerPlanDetail.g.cs index b05f3590921..d374c90f733 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlannerPlanDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgGroupPlannerPlanDetail.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; @@ -82,7 +82,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Planner.Plans[PlannerPlanId].Details.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlanner.g.cs index 1cd6f438655..9a62e4d5ceb 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlanner.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Planner.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerBucket.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerBucket.g.cs index 4c4a7026b69..b9efbfc567e 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerBucket.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerBucket.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; @@ -86,7 +86,7 @@ protected override void ProcessRecord() { result = client.Planner.Buckets[PlannerBucketId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerBucketId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlan.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlan.g.cs index 105cf26e468..54290bda095 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlan.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlan.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Planner.Plans[PlannerPlanId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlanDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlanDetail.g.cs index 9f783d3d92b..38fd2ce1e07 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlanDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerPlanDetail.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; @@ -80,7 +80,7 @@ protected override void ProcessRecord() { result = client.Planner.Plans[PlannerPlanId].Details.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerPlanId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTask.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTask.g.cs index 27b018664b6..f7aa85c260d 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTask.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTask.g.cs @@ -178,7 +178,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; @@ -192,7 +192,7 @@ protected override void ProcessRecord() { result = client.Planner.Tasks[PlannerTaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskAssignedToTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskAssignedToTaskBoardFormat.g.cs index 89592e92956..329d0402243 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskAssignedToTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskAssignedToTaskBoardFormat.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; @@ -78,7 +78,7 @@ protected override void ProcessRecord() { result = client.Planner.Tasks[PlannerTaskId].AssignedToTaskBoardFormat.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskBucketTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskBucketTaskBoardFormat.g.cs index a88d317ae6d..e51a07fdaf3 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskBucketTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskBucketTaskBoardFormat.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; @@ -74,7 +74,7 @@ protected override void ProcessRecord() { result = client.Planner.Tasks[PlannerTaskId].BucketTaskBoardFormat.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskDetail.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskDetail.g.cs index 9086448c4e2..24f51608523 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskDetail.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskDetail.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; @@ -90,7 +90,7 @@ protected override void ProcessRecord() { result = client.Planner.Tasks[PlannerTaskId].Details.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskProgressTaskBoardFormat.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskProgressTaskBoardFormat.g.cs index 894f87b1c0d..344f399f554 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskProgressTaskBoardFormat.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgPlannerTaskProgressTaskBoardFormat.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; @@ -74,7 +74,7 @@ protected override void ProcessRecord() { result = client.Planner.Tasks[PlannerTaskId].ProgressTaskBoardFormat.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PlannerTaskId); return; diff --git a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgUserPlanner.g.cs b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgUserPlanner.g.cs index 52a7dfdb2c4..10203c996f4 100644 --- a/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgUserPlanner.g.cs +++ b/src/Planner/wrapper/v1.0/Cmdlets/UpdateMgUserPlanner.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -70,7 +70,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Planner.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Reports/wrapper/v1.0/Client/Models/AuthenticationAppDeviceDetails.cs b/src/Reports/wrapper/v1.0/Client/Models/AuthenticationAppDeviceDetails.cs new file mode 100644 index 00000000000..9d1aef394b7 --- /dev/null +++ b/src/Reports/wrapper/v1.0/Client/Models/AuthenticationAppDeviceDetails.cs @@ -0,0 +1,105 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Reports.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AuthenticationAppDeviceDetails : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The appVersion property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AppVersion { get; set; } +#nullable restore +#else + public string AppVersion { get; set; } +#endif + /// The clientApp property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClientApp { get; set; } +#nullable restore +#else + public string ClientApp { get; set; } +#endif + /// The deviceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DeviceId { get; set; } +#nullable restore +#else + public string DeviceId { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The operatingSystem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OperatingSystem { get; set; } +#nullable restore +#else + public string OperatingSystem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public AuthenticationAppDeviceDetails() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Reports.Client.Models.AuthenticationAppDeviceDetails CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Reports.Client.Models.AuthenticationAppDeviceDetails(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "appVersion", n => { AppVersion = n.GetStringValue(); } }, + { "clientApp", n => { ClientApp = n.GetStringValue(); } }, + { "deviceId", n => { DeviceId = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "operatingSystem", n => { OperatingSystem = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("appVersion", AppVersion); + writer.WriteStringValue("clientApp", ClientApp); + writer.WriteStringValue("deviceId", DeviceId); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("operatingSystem", OperatingSystem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Reports/wrapper/v1.0/Client/Models/SignIn.cs b/src/Reports/wrapper/v1.0/Client/Models/SignIn.cs index 27553f25dbd..cafd98d0fba 100644 --- a/src/Reports/wrapper/v1.0/Client/Models/SignIn.cs +++ b/src/Reports/wrapper/v1.0/Client/Models/SignIn.cs @@ -35,6 +35,14 @@ public partial class SignIn : global::Microsoft.Graph.PowerShell.Reports.Client. #nullable restore #else public List AppliedConditionalAccessPolicies { get; set; } +#endif + /// The authenticationAppDeviceDetails property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Reports.Client.Models.AuthenticationAppDeviceDetails? AuthenticationAppDeviceDetails { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Reports.Client.Models.AuthenticationAppDeviceDetails AuthenticationAppDeviceDetails { get; set; } #endif /// Identifies the client used for the sign-in activity. Modern authentication clients include Browser, modern clients. Legacy authentication clients include Exchange ActiveSync, IMAP, MAPI, SMTP, POP, and other clients. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -63,6 +71,14 @@ public partial class SignIn : global::Microsoft.Graph.PowerShell.Reports.Client. #nullable restore #else public global::Microsoft.Graph.PowerShell.Reports.Client.Models.DeviceDetail DeviceDetail { get; set; } +#endif + /// The homeTenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? HomeTenantId { get; set; } +#nullable restore +#else + public string HomeTenantId { get; set; } #endif /// IP address of the client used to sign in. Supports $filter (eq, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -97,6 +113,14 @@ public partial class SignIn : global::Microsoft.Graph.PowerShell.Reports.Client. #nullable restore #else public string ResourceId { get; set; } +#endif + /// The resourceTenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResourceTenantId { get; set; } +#nullable restore +#else + public string ResourceTenantId { get; set; } #endif /// The reason behind a specific state of a risky user, sign-in, or a risk event. The value none means that Microsoft Entra risk detection did not flag the user or the sign-in as a risky event so far. Supports $filter (eq). Note: Details for this property are only available for Microsoft Entra ID P2 customers. All other customers are returned hidden. public global::Microsoft.Graph.PowerShell.Reports.Client.Models.RiskDetail? RiskDetail { get; set; } @@ -122,6 +146,22 @@ public partial class SignIn : global::Microsoft.Graph.PowerShell.Reports.Client. public global::Microsoft.Graph.PowerShell.Reports.Client.Models.RiskLevel? RiskLevelDuringSignIn { get; set; } /// Reports status of the risky user, sign-in, or a risk event. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. Supports $filter (eq). public global::Microsoft.Graph.PowerShell.Reports.Client.Models.RiskState? RiskState { get; set; } + /// The servicePrincipalId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServicePrincipalId { get; set; } +#nullable restore +#else + public string ServicePrincipalId { get; set; } +#endif + /// The servicePrincipalName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServicePrincipalName { get; set; } +#nullable restore +#else + public string ServicePrincipalName { get; set; } +#endif /// Sign-in status. Includes the error code and description of the error (if a sign-in failure occurs). Supports $filter (eq) on errorCode property. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -129,6 +169,14 @@ public partial class SignIn : global::Microsoft.Graph.PowerShell.Reports.Client. #nullable restore #else public global::Microsoft.Graph.PowerShell.Reports.Client.Models.SignInStatus Status { get; set; } +#endif + /// The userAgent property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserAgent { get; set; } +#nullable restore +#else + public string UserAgent { get; set; } #endif /// Display name of the user that initiated the sign-in. Supports $filter (eq, startsWith). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -175,23 +223,29 @@ public override IDictionary> GetFieldDeserializers() { "appDisplayName", n => { AppDisplayName = n.GetStringValue(); } }, { "appId", n => { AppId = n.GetStringValue(); } }, { "appliedConditionalAccessPolicies", n => { AppliedConditionalAccessPolicies = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Reports.Client.Models.AppliedConditionalAccessPolicy.CreateFromDiscriminatorValue)?.AsList(); } }, + { "authenticationAppDeviceDetails", n => { AuthenticationAppDeviceDetails = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Reports.Client.Models.AuthenticationAppDeviceDetails.CreateFromDiscriminatorValue); } }, { "clientAppUsed", n => { ClientAppUsed = n.GetStringValue(); } }, { "conditionalAccessStatus", n => { ConditionalAccessStatus = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "deviceDetail", n => { DeviceDetail = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Reports.Client.Models.DeviceDetail.CreateFromDiscriminatorValue); } }, + { "homeTenantId", n => { HomeTenantId = n.GetStringValue(); } }, { "ipAddress", n => { IpAddress = n.GetStringValue(); } }, { "isInteractive", n => { IsInteractive = n.GetBoolValue(); } }, { "location", n => { Location = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Reports.Client.Models.SignInLocation.CreateFromDiscriminatorValue); } }, { "resourceDisplayName", n => { ResourceDisplayName = n.GetStringValue(); } }, { "resourceId", n => { ResourceId = n.GetStringValue(); } }, + { "resourceTenantId", n => { ResourceTenantId = n.GetStringValue(); } }, { "riskDetail", n => { RiskDetail = n.GetEnumValue(); } }, { "riskEventTypes", n => { RiskEventTypes = n.GetCollectionOfEnumValues()?.AsList(); } }, { "riskEventTypes_v2", n => { RiskEventTypesV2 = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "riskLevelAggregated", n => { RiskLevelAggregated = n.GetEnumValue(); } }, { "riskLevelDuringSignIn", n => { RiskLevelDuringSignIn = n.GetEnumValue(); } }, { "riskState", n => { RiskState = n.GetEnumValue(); } }, + { "servicePrincipalId", n => { ServicePrincipalId = n.GetStringValue(); } }, + { "servicePrincipalName", n => { ServicePrincipalName = n.GetStringValue(); } }, { "status", n => { Status = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Reports.Client.Models.SignInStatus.CreateFromDiscriminatorValue); } }, + { "userAgent", n => { UserAgent = n.GetStringValue(); } }, { "userDisplayName", n => { UserDisplayName = n.GetStringValue(); } }, { "userId", n => { UserId = n.GetStringValue(); } }, { "userPrincipalName", n => { UserPrincipalName = n.GetStringValue(); } }, @@ -208,23 +262,29 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("appDisplayName", AppDisplayName); writer.WriteStringValue("appId", AppId); writer.WriteCollectionOfObjectValues("appliedConditionalAccessPolicies", AppliedConditionalAccessPolicies); + writer.WriteObjectValue("authenticationAppDeviceDetails", AuthenticationAppDeviceDetails); writer.WriteStringValue("clientAppUsed", ClientAppUsed); writer.WriteEnumValue("conditionalAccessStatus", ConditionalAccessStatus); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteObjectValue("deviceDetail", DeviceDetail); + writer.WriteStringValue("homeTenantId", HomeTenantId); writer.WriteStringValue("ipAddress", IpAddress); writer.WriteBoolValue("isInteractive", IsInteractive); writer.WriteObjectValue("location", Location); writer.WriteStringValue("resourceDisplayName", ResourceDisplayName); writer.WriteStringValue("resourceId", ResourceId); + writer.WriteStringValue("resourceTenantId", ResourceTenantId); writer.WriteEnumValue("riskDetail", RiskDetail); writer.WriteCollectionOfEnumValues("riskEventTypes", RiskEventTypes); writer.WriteCollectionOfPrimitiveValues("riskEventTypes_v2", RiskEventTypesV2); writer.WriteEnumValue("riskLevelAggregated", RiskLevelAggregated); writer.WriteEnumValue("riskLevelDuringSignIn", RiskLevelDuringSignIn); writer.WriteEnumValue("riskState", RiskState); + writer.WriteStringValue("servicePrincipalId", ServicePrincipalId); + writer.WriteStringValue("servicePrincipalName", ServicePrincipalName); writer.WriteObjectValue("status", Status); + writer.WriteStringValue("userAgent", UserAgent); writer.WriteStringValue("userDisplayName", UserDisplayName); writer.WriteStringValue("userId", UserId); writer.WriteStringValue("userPrincipalName", UserPrincipalName); diff --git a/src/Reports/wrapper/v1.0/Client/kiota-lock.json b/src/Reports/wrapper/v1.0/Client/kiota-lock.json index 5e0ab8229a6..42bbf6cf41f 100644 --- a/src/Reports/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Reports/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "DB9065FB999254560BFD7BFD15A8A00D9B3D6EA2263D9FE65263527C0E2606EC00E3FA59D1339B257082BB185F87F5E37DD86BFA25616E8E982A956B3354DB76", + "descriptionHash": "1D3D7EB442868A72602CDDD99700926C5C343D5C113EF02A4DA0615810CA1A80C103ABB8AB7460263F76BC4D8439717B31A8CAB0E337666A9CAA825297F2A1FE", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Reports.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInCompromised.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInCompromised.g.cs index 157fa571507..86b25df2e56 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInCompromised.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInCompromised.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInSafe.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInSafe.g.cs index 83c7502e5fe..c4e5868907f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInSafe.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/ConfirmMgAuditLogSignInSafe.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAdminReportSetting.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAdminReportSetting.g.cs index 16c976bae5a..c6485b90c1d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAdminReportSetting.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAdminReportSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit.g.cs index 91be4a67651..b6a1689fdc9 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryAuditId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAuditCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAuditCount.g.cs index 1a4497acd3b..0f39bfd6387 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAuditCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAuditCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_Get.g.cs index 6eb482a4693..1063baeb63f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryAuditId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_List.g.cs index 2841341bc01..0be00559454 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogDirectoryAudit_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning.g.cs index d79c8dba7cc..a086386c8db 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ProvisioningObjectSummaryId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioningCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioningCount.g.cs index 7e69670ed44..c4e9352387a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioningCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioningCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_Get.g.cs index abce508b7ed..5f2d88cb55b 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ProvisioningObjectSummaryId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_List.g.cs index 4c8bdf094a0..f2899b43925 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogProvisioning_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn.g.cs index a050d327a20..47200bf5196 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SignInId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignInCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignInCount.g.cs index ae0c2a6f23e..f63afd00b59 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignInCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignInCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_Get.g.cs index e12b45a4838..5a7be954322 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SignInId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_List.g.cs index c7a0698703e..672ef05ce8e 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgAuditLogSignIn_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReport.g.cs index 6ca2f6af305..7fe268fdc87 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReport.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCachedReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCachedReport.g.cs index 567a7e38326..01a7960a522 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCachedReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCachedReport.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceReport.g.cs index 7451fa6646b..cf8a6857d01 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.g.cs index bceafa73725..c378a441c66 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportCompliancePolicyNonComplianceSummaryReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportComplianceSettingNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportComplianceSettingNonComplianceReport.g.cs index 45289efaa3e..3927eb41ec2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportComplianceSettingNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportComplianceSettingNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceReport.g.cs index 60453926467..b895a44cae9 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.g.cs index 95b1d50b74e..fa0810c7165 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationPolicyNonComplianceSummaryReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationSettingNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationSettingNonComplianceReport.g.cs index 041a2489546..91d28b61c22 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationSettingNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportConfigurationSettingNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceAppInstallationStatusReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceAppInstallationStatusReport.g.cs index b8f2bbae162..14e15b64f3f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceAppInstallationStatusReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceAppInstallationStatusReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.g.cs index 2a46c59b769..e369348d9c6 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentPerSettingContributingProfile.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentSettingReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentSettingReport.g.cs index 730e1c288ec..fd2ce69a8d2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentSettingReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceManagementIntentSettingReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceNonComplianceReport.g.cs index dbdf65a174b..5207cae31b0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceWithoutCompliancePolicyReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceWithoutCompliancePolicyReport.g.cs index 6fa862565f7..76c0879482d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceWithoutCompliancePolicyReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportDeviceWithoutCompliancePolicyReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob.g.cs index 6c313d3af48..2257913862f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeviceManagementExportJobId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJobCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJobCount.g.cs index 889cfcfc9a4..4d9be6a36df 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJobCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJobCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_Get.g.cs index 4dd7356cb86..e373092261d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeviceManagementExportJobId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_List.g.cs index 5cd7fb285c5..fbcad2dace5 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportExportJob_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportFilter.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportFilter.g.cs index a3d211753d8..7c42949d560 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportFilter.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportFilter.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportHistoricalReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportHistoricalReport.g.cs index b61d82c7c4a..c670343634f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportHistoricalReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportHistoricalReport.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportNoncompliantDeviceAndSettingReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportNoncompliantDeviceAndSettingReport.g.cs index eb3a24614a0..99bf7ded368 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportNoncompliantDeviceAndSettingReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportNoncompliantDeviceAndSettingReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceMetadata.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceMetadata.g.cs index 3f18d9d58e4..9b406839f86 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceMetadata.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceMetadata.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceReport.g.cs index e79abf46313..0db475e54d0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceSummaryReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceSummaryReport.g.cs index 17e233ae0b5..42e2b08f948 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceSummaryReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportPolicyNonComplianceSummaryReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportSettingNonComplianceReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportSettingNonComplianceReport.g.cs index 9cd38afe432..6cbd8e9481f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportSettingNonComplianceReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgDeviceManagementReportSettingNonComplianceReport.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethod.g.cs index a51c8f8d101..7ef938982d1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethod.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail.g.cs index 93a748b0888..ac838a9be93 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserRegistrationDetailsId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetailCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetailCount.g.cs index 79cc96b7493..fdeaa4e1548 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetailCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetailCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_Get.g.cs index d60fa826933..f67b4d48e46 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserRegistrationDetailsId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_List.g.cs index c3bcf5843aa..48da73b5b0c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUserRegistrationDetail_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles.g.cs index a00a63891dd..c34ea3a15e6 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByFeatureWithIncludedUserTypesWithIncludedUserRoles.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles.g.cs index 03739ce1a1a..e0afa133f8b 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportAuthenticationMethodUsersRegisteredByMethodWithIncludedUserTypesWithIncludedUserRoles.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter.g.cs index 1afe78f51f4..7e9809d164a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintUsageByPrinterId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinterCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinterCount.g.cs index 6763e3fa988..1cbb2466905 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinterCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinterCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_Get.g.cs index 051966327bb..475a369a7c2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintUsageByPrinterId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_List.g.cs index ac81cd147b8..7ff40f39a69 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByPrinter_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser.g.cs index dc65c84617e..7af7f11338a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintUsageByUserId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUserCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUserCount.g.cs index 27d255d200b..dc11100aec6 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUserCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUserCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_Get.g.cs index fa29aabaab6..3f7c2abc0da 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintUsageByUserId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_List.g.cs index 2f24b7eecb7..b34175795dc 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDailyPrintUsageByUser_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationDeviceActivity.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationDeviceActivity.g.cs index ec407da07e2..5dc797171a4 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationDeviceActivity.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationDeviceActivity.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationUserActivity.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationUserActivity.g.cs index 209fd206836..24c40a240c5 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationUserActivity.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportDeviceConfigurationUserActivity.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityCountsWithPeriod.g.cs index 2866db686bb..bde98e20a4d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserCountsWithPeriod.g.cs index 6b8c47489ce..b248b3e6764 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithDate.g.cs index 98465c87b2f..64d4c2b159f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithPeriod.g.cs index e89429bcbf3..ebcf013080c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageAppsUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageAppsUserCountsWithPeriod.g.cs index 9e8997209be..84cc31abefe 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageAppsUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageAppsUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserCountsWithPeriod.g.cs index aff1ecb1b64..b28beddf164 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithDate.g.cs index 9539bd24130..469a2d7ba09 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithPeriod.g.cs index 2b1551a32d3..529c0dd3b94 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageVersionsUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageVersionsUserCountsWithPeriod.g.cs index 152750e1aec..6c98cfc3428 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageVersionsUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetEmailAppUsageVersionsUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime.g.cs index a5c78c87dc9..c4b8b2442a5 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetGroupArchivedPrintJobsWithGroupIdWithStartDateTimeWithEndDateTime.g.cs @@ -90,7 +90,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppPlatformUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppPlatformUserCountsWithPeriod.g.cs index bcd2be8abd8..a5d6f5f295a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppPlatformUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppPlatformUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserCountsWithPeriod.g.cs index d9d484de953..06d3a68d808 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithDate.g.cs index d2aef1b01b9..66587e9d706 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithPeriod.g.cs index 979dbbaa3d8..023f007cc7b 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetM365AppUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageDetailWithPeriod.g.cs index 0146f1ec2dc..7ade64abbc2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageMailboxCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageMailboxCountsWithPeriod.g.cs index f9b284b1dcd..7906b17c837 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageMailboxCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageMailboxCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageQuotaStatusMailboxCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageQuotaStatusMailboxCountsWithPeriod.g.cs index 072bd8455f5..cf14843b45a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageQuotaStatusMailboxCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageQuotaStatusMailboxCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageStorageWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageStorageWithPeriod.g.cs index 233c12c5ade..2d7302f16ba 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageStorageWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetMailboxUsageStorageWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserCountsWithPeriod.g.cs index 54531d003f0..cd7afdb0bb7 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithDate.g.cs index b0c73ae9b0a..de8054d268a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithPeriod.g.cs index b9dbb1b4b23..82fcfc8a4cf 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ActiveUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityCountsWithPeriod.g.cs index 59842d01bb4..248885969ca 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithDate.g.cs index e415880c487..21c0a72d589 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithPeriod.g.cs index 5d068d7c07e..45b5d62ad93 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityFileCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityFileCountsWithPeriod.g.cs index e0960101393..61b8b3adf3e 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityFileCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityFileCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityGroupCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityGroupCountsWithPeriod.g.cs index c41bee4db41..d10bc7d8053 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityGroupCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityGroupCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityStorageWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityStorageWithPeriod.g.cs index 3b447531055..0d5a1294c6a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityStorageWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365GroupsActivityStorageWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ServicesUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ServicesUserCountsWithPeriod.g.cs index 67df761460c..67f59ea6ede 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ServicesUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOffice365ServicesUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityFileCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityFileCountsWithPeriod.g.cs index 9d264737354..b49d187c4f2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityFileCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityFileCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserCountsWithPeriod.g.cs index 62ad119c472..20da104f6ea 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithDate.g.cs index bfebe72aa62..8422a97eb4d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithPeriod.g.cs index 5e0e34eb5f6..a6dd5ed3eb1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountCountsWithPeriod.g.cs index d98c4aaf902..92f6746ff9d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithDate.g.cs index 32484f68eaa..a4d37346935 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithPeriod.g.cs index 520bce133e0..8a33f64d008 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageAccountDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageFileCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageFileCountsWithPeriod.g.cs index ae95ea4a133..fe33d21a356 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageFileCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageFileCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageStorageWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageStorageWithPeriod.g.cs index 2e988b72ab5..41e295b5b82 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageStorageWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetOneDriveUsageStorageWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime.g.cs index 1e7370c29c1..dee35b27150 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetPrinterArchivedPrintJobsWithPrinterIdWithStartDateTimeWithEndDateTime.g.cs @@ -90,7 +90,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetRelyingPartyDetailedSummaryWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetRelyingPartyDetailedSummaryWithPeriod.g.cs index b96e0575e33..351178fd8a1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetRelyingPartyDetailedSummaryWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetRelyingPartyDetailedSummaryWithPeriod.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityFileCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityFileCountsWithPeriod.g.cs index 89de837a181..1a84e8df3c9 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityFileCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityFileCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityPagesWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityPagesWithPeriod.g.cs index c22ac92d057..210276bb356 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityPagesWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityPagesWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserCountsWithPeriod.g.cs index a35b2de26fd..b36fd02dcc1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithDate.g.cs index bbf318c9132..354d05ee882 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithPeriod.g.cs index 80e1ddc70f8..ebbf22f76da 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithDate.g.cs index 75b05381b3f..616741ac36c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithPeriod.g.cs index a0eb61e7164..827f4aaace6 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageFileCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageFileCountsWithPeriod.g.cs index b7166d263ec..97b43295b32 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageFileCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageFileCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsagePagesWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsagePagesWithPeriod.g.cs index 130f64de600..b5275d90bd7 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsagePagesWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsagePagesWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageSiteCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageSiteCountsWithPeriod.g.cs index 5dab6092748..afb65e1470c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageSiteCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageSiteCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageStorageWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageStorageWithPeriod.g.cs index 5a4e7b19ac7..08c2814c0d1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageStorageWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSharePointSiteUsageStorageWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityCountsWithPeriod.g.cs index 368fe244ea0..36c3e1af2ce 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserCountsWithPeriod.g.cs index 6101f3e8ce2..3106f6f4101 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithDate.g.cs index c35027e92e4..58b25712f84 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithPeriod.g.cs index d2958a81772..34f6d62c7ea 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod.g.cs index e78437e273d..ccb7c732ab3 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageDistributionUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserCountsWithPeriod.g.cs index 22d0eae5bd2..6633db0dac5 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithDate.g.cs index a446b069f12..1c422c681ab 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithPeriod.g.cs index 3cd3b2829c6..0d61ca46224 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessDeviceUsageUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityCountsWithPeriod.g.cs index cbde3a2dc13..cecc4aec246 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod.g.cs index 16a2d7bdd37..1e5a91b14b9 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityMinuteCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityUserCountsWithPeriod.g.cs index 8834ff44f54..5b10a97ec5a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessOrganizerActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityCountsWithPeriod.g.cs index 67775484425..f888ada5d36 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod.g.cs index 3fecb0d53c7..ae090ed09e8 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityMinuteCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityUserCountsWithPeriod.g.cs index 45ba06017a4..aae78ca968d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessParticipantActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityCountsWithPeriod.g.cs index 7b08b7a03ff..74ad870f28a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod.g.cs index 424e9d93153..839e63ffdca 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityMinuteCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod.g.cs index fcbd2f1aee3..8d2ecd8ef0f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetSkypeForBusinessPeerToPeerActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageDistributionUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageDistributionUserCountsWithPeriod.g.cs index 6d09d983927..6ffd433cd08 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageDistributionUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageDistributionUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserCountsWithPeriod.g.cs index 813b182d826..1c25d918b60 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithDate.g.cs index 945b4a09b2b..da2c390b549 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithPeriod.g.cs index 908a9cc9cb5..4595e3c8b5c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsDeviceUsageUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityCountsWithPeriod.g.cs index 947735010e8..5139046a4b4 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithDate.g.cs index f75ca32da72..a0b0c2cab41 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithPeriod.g.cs index 1ff2dba18c9..f75eb82dca6 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDistributionCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDistributionCountsWithPeriod.g.cs index cf521448e57..4f6522ba43c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDistributionCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamActivityDistributionCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamCountsWithPeriod.g.cs index ed8e8f662ff..24274682dd1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsTeamCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityCountsWithPeriod.g.cs index ee2377b0221..abcc68f86e3 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserCountsWithPeriod.g.cs index 4c4dbc9db7b..d5be8e29309 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithDate.g.cs index 7a5b0af284e..9862e2b43d7 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithPeriod.g.cs index 471d77c34b1..b5a8e0c508b 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetTeamsUserActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime.g.cs index 129e8554a3d..8e23fcc3358 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetUserArchivedPrintJobsWithUserIdWithStartDateTimeWithEndDateTime.g.cs @@ -90,7 +90,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityCountsWithPeriod.g.cs index 6946bd2518a..258e54c0f19 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserCountsWithPeriod.g.cs index 1c6e22cdc17..332892f365d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithDate.g.cs index 84ef7779a0b..e6c7f79df52 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithPeriod.g.cs index f8b32f49511..b3c665f517f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerActivityUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageDistributionUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageDistributionUserCountsWithPeriod.g.cs index d753f680d6d..780bbaf3b59 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageDistributionUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageDistributionUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserCountsWithPeriod.g.cs index f1a7ed0b3a1..6c178f60f9b 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithDate.g.cs index b2fd5676a62..26fd8f15af1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithPeriod.g.cs index bb8175a438a..bc84f7003f4 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerDeviceUsageUserDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityCountsWithPeriod.g.cs index 3f74b0787cc..587326f9208 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithDate.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithDate.g.cs index 266a619bcad..22ce34f7ab0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithDate.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithDate.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithPeriod.g.cs index 92ec74c4b7b..14aeb09c9fa 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityDetailWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityGroupCountsWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityGroupCountsWithPeriod.g.cs index b1a1fb19c5d..22fafc9f609 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityGroupCountsWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportGetYammerGroupsActivityGroupCountsWithPeriod.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetail.g.cs index b99145c80ea..ce80ca1d6f0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetail.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken.g.cs index 86fa6dbde3c..a6031992e54 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentFailureDetailsWithSkipWithTopWithFilterWithSkipToken.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailure.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailure.g.cs index d06f19d55df..5e17443b990 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailure.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailure.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailuresWithPeriod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailuresWithPeriod.g.cs index d20a6017fd4..868384f3b11 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailuresWithPeriod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportManagedDeviceEnrollmentTopFailuresWithPeriod.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter.g.cs index 5bdf71c2a99..78c50870193 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintUsageByPrinterId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinterCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinterCount.g.cs index 27a76a2e7ca..bf0b00b8c42 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinterCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinterCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_Get.g.cs index 27a5d8bd2f2..f6f53492bef 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintUsageByPrinterId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_List.g.cs index 231fe1d25b7..b1a9e9d5d17 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByPrinter_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser.g.cs index 83860c02cc9..7d7a09982a0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PrintUsageByUserId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUserCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUserCount.g.cs index 96e66738b86..aed615410ec 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUserCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUserCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_Get.g.cs index 5c27d0e2e3e..dc42ab3fcd0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PrintUsageByUserId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_List.g.cs index 43003e209ad..79e06394f71 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportMonthlyPrintUsageByUser_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationCount.g.cs index 320e2b52eac..5b8a462a3ee 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserCount.g.cs index 8f7f18f1eeb..2013f7b79fe 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserDetail.g.cs index 1303e2f4b57..8830b0b0205 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportOffice365ActivationUserDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartner.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartner.g.cs index c898b0f5991..6e359ccb99a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartner.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartner.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBilling.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBilling.g.cs index 16352e251bf..7945c4d80b4 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBilling.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBilling.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest.g.cs index 5802fa5d4d3..a1ff1788398 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ManifestId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifestCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifestCount.g.cs index 39c4b1aa584..45d12a0a962 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifestCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_Get.g.cs index d2da890691a..dc1616fe52a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManifestId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_List.g.cs index 66ac5a3dca9..8d800ce3780 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingManifest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation.g.cs index a2be856cb9c..7b5fedee8fa 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OperationId : null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperationCount.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperationCount.g.cs index 67d82d734a4..1ce72ed40ce 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperationCount.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_Get.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_Get.g.cs index 7afb9a87134..ced7596025e 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_Get.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OperationId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_List.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_List.g.cs index c31b6168a21..fc5154cb1ca 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_List.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingOperation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliation.g.cs index 3826001c14f..51a2ef172e5 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationBilled.g.cs index 47e8eb1e061..3f25b48171f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationBilled.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationUnbilled.g.cs index 0145afe8cad..466f83ec6c3 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingReconciliationUnbilled.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsage.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsage.g.cs index 21586d90572..f9e0e9673cd 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsage.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageBilled.g.cs index dbeee8649e6..f5a32603a7f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageBilled.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageUnbilled.g.cs index 0109f2ce87b..150f00d3283 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportPartnerBillingUsageUnbilled.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurity.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurity.g.cs index 070493bbda5..53d1b496df0 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurity.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurity.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationRepeatOffender.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationRepeatOffender.g.cs index 89c8e979ce4..8fc7f833f1f 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationRepeatOffender.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationRepeatOffender.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationTrainingUserCoverage.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationTrainingUserCoverage.g.cs index bf1c1faf91a..e5b4be1594d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationTrainingUserCoverage.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationTrainingUserCoverage.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationUserCoverage.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationUserCoverage.g.cs index 9aa24c83636..dac3b999631 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationUserCoverage.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/GetMgReportSecurityAttackSimulationUserCoverage.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgDismissAuditLogSignIn.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgDismissAuditLogSignIn.g.cs index 503111537e8..5b5c5a75768 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgDismissAuditLogSignIn.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgDismissAuditLogSignIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgGraphReportAuthenticationMethod.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgGraphReportAuthenticationMethod.g.cs index 95ee0b2d410..a3edb2e6147 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgGraphReportAuthenticationMethod.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgGraphReportAuthenticationMethod.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationBilledExport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationBilledExport.g.cs index 217232f9fcb..a0c492ffcbf 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationBilledExport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationBilledExport.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationUnbilledExport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationUnbilledExport.g.cs index eb713abefcb..e5189583976 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationUnbilledExport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingReconciliationUnbilledExport.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageBilledExport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageBilledExport.g.cs index f07f1b67924..31c2f04802a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageBilledExport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageBilledExport.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageUnbilledExport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageUnbilledExport.g.cs index fb4c703e0d0..25f9e7a2c3c 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageUnbilledExport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/InvokeMgReportPartnerBillingUsageUnbilledExport.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportAuthenticationMethodUserRegistrationDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportAuthenticationMethodUserRegistrationDetail.g.cs index 01b7e972a40..6600d5c8e22 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportAuthenticationMethodUserRegistrationDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportAuthenticationMethodUserRegistrationDetail.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingManifest.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingManifest.g.cs index 1e3906b99bc..f48f29ecf3a 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingManifest.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingManifest.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingOperation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingOperation.g.cs index aae3b3fd3b3..6cc879103fb 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingOperation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/NewMgReportPartnerBillingOperation.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgAdminReportSetting.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgAdminReportSetting.g.cs index 03cfd487b36..d6e29011e61 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgAdminReportSetting.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgAdminReportSetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementReport.g.cs index 7cb9c1caa93..2c48d180582 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgDeviceManagementReport.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportAuthenticationMethodUserRegistrationDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportAuthenticationMethodUserRegistrationDetail.g.cs index 3434a512504..f8cd871fac8 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportAuthenticationMethodUserRegistrationDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportAuthenticationMethodUserRegistrationDetail.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserRegistrationDetailsId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBilling.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBilling.g.cs index f04dac3448c..b1a256b26c9 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBilling.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBilling.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingManifest.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingManifest.g.cs index 7a3d14e6721..432c271d2c7 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingManifest.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingManifest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManifestId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingOperation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingOperation.g.cs index e5015142718..2bb252f61b1 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingOperation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingOperation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OperationId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliation.g.cs index 31a6247f769..ea6e9d3e485 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliation.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationBilled.g.cs index 79cd9ffad09..52678e26197 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationBilled.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationUnbilled.g.cs index 5f3da7fafd1..ee16b8311ae 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingReconciliationUnbilled.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsage.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsage.g.cs index 0381537b494..c5419950487 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsage.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsage.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageBilled.g.cs index 40adb0c76d7..0b3f9484645 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageBilled.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageUnbilled.g.cs index 3881c7466ca..23ba95301b7 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/RemoveMgReportPartnerBillingUsageUnbilled.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgAdminReportSetting.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgAdminReportSetting.g.cs index 979e4dab940..2a7f0bbbaea 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgAdminReportSetting.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgAdminReportSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Admin.ReportSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementReport.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementReport.g.cs index 44f3df5afbb..89401754a1d 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementReport.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgDeviceManagementReport.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.DeviceManagement.Reports.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportAuthenticationMethodUserRegistrationDetail.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportAuthenticationMethodUserRegistrationDetail.g.cs index 472eb7f10c8..40b0b4a6047 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportAuthenticationMethodUserRegistrationDetail.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportAuthenticationMethodUserRegistrationDetail.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserRegistrationDetailsId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Reports.AuthenticationMethods.UserRegistrationDetails[UserRegistrationDetailsId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserRegistrationDetailsId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBilling.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBilling.g.cs index 3bb6aaf9e86..71425b682ee 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBilling.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBilling.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingManifest.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingManifest.g.cs index 9dca2060341..265c113e593 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingManifest.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingManifest.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManifestId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Manifests[ManifestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ManifestId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingOperation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingOperation.g.cs index 43bd488085f..8a1e3c22562 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingOperation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingOperation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OperationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Operations[OperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OperationId); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliation.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliation.g.cs index a06f3c73cce..710a958a739 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliation.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Reconciliation.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationBilled.g.cs index 09ef416119f..93f5c5a3859 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationBilled.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Reconciliation.Billed.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationUnbilled.g.cs index 0c5d8583070..7e8e27e4942 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingReconciliationUnbilled.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Reconciliation.Unbilled.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsage.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsage.g.cs index 77147a826b8..9b3450529c2 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsage.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsage.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Usage.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageBilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageBilled.g.cs index 1a30412e19d..b0026ff2cf3 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageBilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageBilled.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Usage.Billed.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageUnbilled.g.cs b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageUnbilled.g.cs index 956e1055879..e811b704da8 100644 --- a/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageUnbilled.g.cs +++ b/src/Reports/wrapper/v1.0/Cmdlets/UpdateMgReportPartnerBillingUsageUnbilled.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Reports.Partners.Billing.Usage.Unbilled.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Client/kiota-lock.json b/src/SchemaExtensions/wrapper/v1.0/Client/kiota-lock.json index bd6bf673749..42e2d148e39 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Client/kiota-lock.json +++ b/src/SchemaExtensions/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "899AD356D9077901F56931AEAC67A94F085064040159621939763295B5A08419A4921A58EE25C368204D2B910A66F5CBED631B96DC517C4BA26BA97ABE7E10D1", + "descriptionHash": "3C319ABC0937CF7FE5E4D70D495EDCF26BD6155AC30751907C262640D985E1C4F481039C2958A2280150A1979FE73D132848D87F0361EA878D79086D0EC9D7BB", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/SchemaExtensions.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension.g.cs index 994c39efa09..67d33d5326d 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SchemaExtensionId : null); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtensionCount.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtensionCount.g.cs index 9327606a288..362940af1a5 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtensionCount.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtensionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_Get.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_Get.g.cs index 116216a48cd..37b0bbc25c4 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_Get.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchemaExtensionId); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_List.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_List.g.cs index f7a96b06689..bbd98991ec1 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_List.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/GetMgSchemaExtension_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/NewMgSchemaExtension.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/NewMgSchemaExtension.g.cs index 146dcb661de..a0f1c9f6db4 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/NewMgSchemaExtension.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/NewMgSchemaExtension.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/RemoveMgSchemaExtension.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/RemoveMgSchemaExtension.g.cs index 3a9874d89cb..34485e907b2 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/RemoveMgSchemaExtension.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/RemoveMgSchemaExtension.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchemaExtensionId); return; diff --git a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/UpdateMgSchemaExtension.g.cs b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/UpdateMgSchemaExtension.g.cs index 62b732fb6c7..40fd38e364c 100644 --- a/src/SchemaExtensions/wrapper/v1.0/Cmdlets/UpdateMgSchemaExtension.g.cs +++ b/src/SchemaExtensions/wrapper/v1.0/Cmdlets/UpdateMgSchemaExtension.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchemaExtensionId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.SchemaExtensions[SchemaExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchemaExtensionId); return; diff --git a/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItem.cs b/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItem.cs index 26604a61945..88f583f5db4 100644 --- a/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItem.cs +++ b/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItem.cs @@ -35,6 +35,14 @@ public partial class ExternalItem : global::Microsoft.Graph.PowerShell.Search.Cl #nullable restore #else public global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemContent Content { get; set; } +#endif + /// The informationProtectionLabel property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel? InformationProtectionLabel { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel InformationProtectionLabel { get; set; } #endif /// A property bag with the properties of the item. The properties MUST conform to the schema defined for the externalConnection. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,6 +73,7 @@ public override IDictionary> GetFieldDeserializers() { "acl", n => { Acl = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.Acl.CreateFromDiscriminatorValue)?.AsList(); } }, { "activities", n => { Activities = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalActivity.CreateFromDiscriminatorValue)?.AsList(); } }, { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemContent.CreateFromDiscriminatorValue); } }, + { "informationProtectionLabel", n => { InformationProtectionLabel = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel.CreateFromDiscriminatorValue); } }, { "properties", n => { Properties = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.Properties.CreateFromDiscriminatorValue); } }, }; } @@ -79,6 +88,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteCollectionOfObjectValues("acl", Acl); writer.WriteCollectionOfObjectValues("activities", Activities); writer.WriteObjectValue("content", Content); + writer.WriteObjectValue("informationProtectionLabel", InformationProtectionLabel); writer.WriteObjectValue("properties", Properties); } } diff --git a/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItemInformationProtectionLabel.cs b/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItemInformationProtectionLabel.cs new file mode 100644 index 00000000000..34efb5b9e09 --- /dev/null +++ b/src/Search/wrapper/v1.0/Client/Models/ExternalConnectors/ExternalItemInformationProtectionLabel.cs @@ -0,0 +1,75 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ExternalItemInformationProtectionLabel : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The sensitivityLabelId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SensitivityLabelId { get; set; } +#nullable restore +#else + public string SensitivityLabelId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ExternalItemInformationProtectionLabel() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "sensitivityLabelId", n => { SensitivityLabelId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("sensitivityLabelId", SensitivityLabelId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Search/wrapper/v1.0/Client/kiota-lock.json b/src/Search/wrapper/v1.0/Client/kiota-lock.json index 3c4d31c701f..f642a4a6093 100644 --- a/src/Search/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Search/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "7CA1C23FDA0E0A2E05F5635056CB06C86A3F8B20242B1BA7BAA4E8D70AD92BFA5506F18024EB90A41C85EDE08494FCA5A906922144534435D15F770583B75456", + "descriptionHash": "6DA77DFCEE7A7863F9EA6E6D246E56D5EA4F4CF56C815916734B115F0A6384A2247ADDE695299F2E2AA2B5949922F500A71EA61142432054E3951EC8D8BBA05A", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Search.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternal.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternal.g.cs index c87882f8f3f..1171cf26a36 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternal.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternal.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection.g.cs index 355d447179a..cd0e502a71a 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalConnectionId : null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionCount.g.cs index bd5c1efd79a..9e9c998af9e 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup.g.cs index 8cd9fd85a1a..82fcf7453d4 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalGroupId : ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupCount.g.cs index c5c71da2003..12daeec13a3 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember.g.cs index 621f30e72d2..927a6fa9a5a 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityId : ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMemberCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMemberCount.g.cs index eecd0e06b51..2b6908f5cf0 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMemberCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_Get.g.cs index 75f42f35b4a..0380082fdb7 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_List.g.cs index e7bea64a806..7de1c036392 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroupMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_Get.g.cs index 35ca056c59a..b5f09e1509b 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_List.g.cs index 8de82c7c4ce..9cbecdd0a6e 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem.g.cs index 3cd0ed33d45..b9107d7e9bc 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalItemId : ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity.g.cs index 7b81f917b15..f4b3ed97f8c 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExternalActivityId : ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityCount.g.cs index 49da07c7908..fb62a63e08d 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityPerformedBy.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityPerformedBy.g.cs index 153d3e47700..455650b0bfb 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityPerformedBy.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivityPerformedBy.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalActivityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_Get.g.cs index 0166aa54596..5276e3d86a2 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalActivityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_List.g.cs index cd36723d200..1e64f0df3ee 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemActivity_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemCount.g.cs index 94aefc12b23..e1fa965662e 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItemCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_Get.g.cs index 789943b6222..7e7f230dbab 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_List.g.cs index 78b934841ac..2f94edcd2cc 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionItem_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation.g.cs index f96b4f98f24..807240dac77 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConnectionOperationId : ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperationCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperationCount.g.cs index 8638643f78f..a13a4dc6e6b 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperationCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_Get.g.cs index f78a2f0b29e..b34a1303d82 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectionOperationId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_List.g.cs index fc850ad753b..8b10960cdf1 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionSchema.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionSchema.g.cs index 1143ec6c7f3..282266bd84c 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionSchema.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnectionSchema.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_Get.g.cs index 93d67b969b2..525088116b8 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_List.g.cs index 7b4a8367937..35152d1e13e 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgExternalConnection_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearch.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearch.g.cs index 2d9d839f102..5040817af59 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearch.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearch.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym.g.cs index f2015296c5e..bc99818fba0 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AcronymId : null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronymCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronymCount.g.cs index 58505747800..708aa8bc453 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronymCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronymCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_Get.g.cs index cfec957e0d0..1930c4c2857 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AcronymId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_List.g.cs index 2fc25db67e8..301743698e2 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchAcronym_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark.g.cs index 64b5695d6e9..37ce6e42538 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BookmarkId : null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmarkCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmarkCount.g.cs index 7303ca0614e..b432567b289 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmarkCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmarkCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_Get.g.cs index 36460cbf6a7..93cbed92d31 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookmarkId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_List.g.cs index 72b59a0e5f5..7a9287f02bb 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchBookmark_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna.g.cs index 7675b9e8680..f4dbbbeff3d 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? QnaId : null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQnaCount.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQnaCount.g.cs index a735a64e47f..d59f880f48c 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQnaCount.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQnaCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_Get.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_Get.g.cs index 5de7f234c3c..e8a4086455c 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_Get.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, QnaId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_List.g.cs b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_List.g.cs index cb476f2b799..8a77927f812 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_List.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/GetMgSearchQna_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/InvokeMgExternalConnectionItemAddActivities.g.cs b/src/Search/wrapper/v1.0/Cmdlets/InvokeMgExternalConnectionItemAddActivities.g.cs index 1ad686091bf..7ab117732dd 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/InvokeMgExternalConnectionItemAddActivities.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/InvokeMgExternalConnectionItemAddActivities.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/InvokeMgQuerySearch.g.cs b/src/Search/wrapper/v1.0/Cmdlets/InvokeMgQuerySearch.g.cs index 7e643974edb..8ae6378baa4 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/InvokeMgQuerySearch.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/InvokeMgQuerySearch.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnection.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnection.g.cs index 2978e239b2b..7d5d821d17b 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnection.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnection.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroup.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroup.g.cs index ac66d4d4b26..13abfeeb018 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroup.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroupMember.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroupMember.g.cs index e9e1f3b7638..99f2f8f959d 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroupMember.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionGroupMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItem.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItem.g.cs index 05bf32cca3d..0edf484be19 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItem.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItem.g.cs @@ -27,6 +27,9 @@ public class NewMgExternalConnectionItemCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemContent? Content { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel? InformationProtectionLabel { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.Properties? Properties { get; set; } @@ -49,6 +52,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Content))) body.Content = Content; + if (this.IsParameterBound(nameof(InformationProtectionLabel))) + body.InformationProtectionLabel = InformationProtectionLabel; + if (this.IsParameterBound(nameof(Properties))) body.Properties = Properties; @@ -65,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItemActivity.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItemActivity.g.cs index 2fdcff3f769..c251947e657 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItemActivity.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionItemActivity.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionOperation.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionOperation.g.cs index eafbba746b4..eac631f91c6 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionOperation.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgExternalConnectionOperation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchAcronym.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchAcronym.g.cs index 991a97ef3c3..89c2c262525 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchAcronym.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchAcronym.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchBookmark.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchBookmark.g.cs index a82d68425c5..94595b9fae7 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchBookmark.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchBookmark.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchQna.g.cs b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchQna.g.cs index 291b28e201f..0475f41a753 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchQna.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/NewMgSearchQna.g.cs @@ -128,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnection.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnection.g.cs index 239df0edcb2..836e18423ae 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnection.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnection.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroup.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroup.g.cs index db7da116d81..9f09627d547 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroup.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroupMember.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroupMember.g.cs index 0664840ce50..34b94dd99c3 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroupMember.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionGroupMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItem.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItem.g.cs index 48c744a9ae5..15833d2fc62 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItem.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItem.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItemActivity.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItemActivity.g.cs index a8f9e1b9dc5..a03d4cc0b05 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItemActivity.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionItemActivity.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalActivityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionOperation.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionOperation.g.cs index c1603a8940e..5c60fa13406 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionOperation.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgExternalConnectionOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectionOperationId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchAcronym.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchAcronym.g.cs index 56efd06660a..32f186cbe10 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchAcronym.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchAcronym.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AcronymId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchBookmark.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchBookmark.g.cs index 3c58e603455..5a843051ab3 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchBookmark.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchBookmark.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookmarkId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchQna.g.cs b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchQna.g.cs index 0418bdaed9f..65a4b8d02eb 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchQna.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/RemoveMgSearchQna.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, QnaId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/SetMgExternalConnectionItem.g.cs b/src/Search/wrapper/v1.0/Cmdlets/SetMgExternalConnectionItem.g.cs index ea155b1e1bd..ab71eba60f6 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/SetMgExternalConnectionItem.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/SetMgExternalConnectionItem.g.cs @@ -29,6 +29,9 @@ public class SetMgExternalConnectionItemCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemContent? Content { get; set; } + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.ExternalItemInformationProtectionLabel? InformationProtectionLabel { get; set; } + [Parameter(Mandatory = false)] public Microsoft.Graph.PowerShell.Search.Client.Models.ExternalConnectors.Properties? Properties { get; set; } @@ -51,6 +54,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Content))) body.Content = Content; + if (this.IsParameterBound(nameof(InformationProtectionLabel))) + body.InformationProtectionLabel = InformationProtectionLabel; + if (this.IsParameterBound(nameof(Properties))) body.Properties = Properties; @@ -67,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalItemId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternal.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternal.g.cs index e4a86086663..2963d1b7804 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternal.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternal.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.External.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnection.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnection.g.cs index 890c018457d..9842e054c8d 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnection.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroup.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroup.g.cs index 0ee22a15212..e385551a77a 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroup.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroup.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].Groups[ExternalGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalGroupId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroupMember.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroupMember.g.cs index 895ff5d07e9..5e860192ff7 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroupMember.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionGroupMember.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].Groups[ExternalGroupId].Members[IdentityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionItemActivity.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionItemActivity.g.cs index bcb58eb85c1..bf698b02c98 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionItemActivity.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionItemActivity.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalActivityId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].Items[ExternalItemId].Activities[ExternalActivityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalActivityId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionOperation.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionOperation.g.cs index 674c104d061..a6d3bc5b4f2 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionOperation.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionOperation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectionOperationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].Operations[ConnectionOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConnectionOperationId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionSchema.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionSchema.g.cs index c8367649b48..8285d3fd06b 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionSchema.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgExternalConnectionSchema.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.External.Connections[ExternalConnectionId].Schema.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExternalConnectionId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearch.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearch.g.cs index 06d25eac506..4e3910da5fc 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearch.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearch.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Search.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchAcronym.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchAcronym.g.cs index b91abfca532..c27842fecc8 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchAcronym.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchAcronym.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AcronymId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Search.Acronyms[AcronymId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AcronymId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchBookmark.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchBookmark.g.cs index f727d58a0b3..2e271a4061c 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchBookmark.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchBookmark.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookmarkId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.Search.Bookmarks[BookmarkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BookmarkId); return; diff --git a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchQna.g.cs b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchQna.g.cs index 933cf8f4a6a..4a5e7220345 100644 --- a/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchQna.g.cs +++ b/src/Search/wrapper/v1.0/Cmdlets/UpdateMgSearchQna.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, QnaId); return; @@ -143,7 +143,7 @@ protected override void ProcessRecord() { result = client.Search.Qnas[QnaId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, QnaId); return; diff --git a/src/Security/wrapper/v1.0/Client/Models/Chat.cs b/src/Security/wrapper/v1.0/Client/Models/Chat.cs index 465df8cd139..cc39e65a0b0 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Security.Client.M #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Security/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..879d2b998d1 --- /dev/null +++ b/src/Security/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Security.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Security.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Security.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Security/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Security/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..a029cb707e1 --- /dev/null +++ b/src/Security/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Security.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Security/wrapper/v1.0/Client/Models/Group.cs b/src/Security/wrapper/v1.0/Client/Models/Group.cs index d09a71484ef..ac11c09c1f0 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Security.Client. #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Security.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Security.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Security/wrapper/v1.0/Client/Models/List.cs b/src/Security/wrapper/v1.0/Client/Models/List.cs index 67954414e33..15a5f805f78 100644 --- a/src/Security/wrapper/v1.0/Client/Models/List.cs +++ b/src/Security/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Security.Client.M #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/ListItem.cs b/src/Security/wrapper/v1.0/Client/Models/ListItem.cs index 2d636b59615..a109f1cedaa 100644 --- a/src/Security/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Security/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Security.Clie #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index f1b2ad06e0b..35a264b1bdb 100644 --- a/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Secu #nullable restore #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Security.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Security.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Secu #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Security.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..1ec3b865b73 --- /dev/null +++ b/src/Security/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Security.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Security/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Security/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 89b09754637..eb00abb0aa5 100644 --- a/src/Security/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Security/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Security.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Security/wrapper/v1.0/Client/Models/Security/AuditCoreRoot.cs b/src/Security/wrapper/v1.0/Client/Models/Security/AuditCoreRoot.cs index d64824e6c7d..90e0298991b 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Security/AuditCoreRoot.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Security/AuditCoreRoot.cs @@ -13,7 +13,7 @@ namespace Microsoft.Graph.PowerShell.Security.Client.Models.Security [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuditCoreRoot : global::Microsoft.Graph.PowerShell.Security.Client.Models.Entity, IParsable { - /// The queries property + /// The collection of audit log queries. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Queries { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/Security/AuditData.cs b/src/Security/wrapper/v1.0/Client/Models/Security/AuditData.cs index 6b544daffb0..6d53d29fe82 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Security/AuditData.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Security/AuditData.cs @@ -15,7 +15,7 @@ public partial class AuditData : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } - /// The dynamicProperties property + /// An open-type dictionary that contains dynamic audit event properties as name-value pairs. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditRecordTypeDictionary? DynamicProperties { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogQuery.cs b/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogQuery.cs index c0629b3728c..7f5ac5474e9 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogQuery.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogQuery.cs @@ -13,7 +13,7 @@ namespace Microsoft.Graph.PowerShell.Security.Client.Models.Security [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security.Client.Models.Entity, IParsable { - /// The administrative units tagged to an audit log record. + /// The collection of administrative unit IDs to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AdministrativeUnitIdFilters { get; set; } @@ -21,7 +21,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List AdministrativeUnitIdFilters { get; set; } #endif - /// The display name of the saved audit log query. + /// The display name of the audit log query. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { get; set; } @@ -29,11 +29,11 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public string DisplayName { get; set; } #endif - /// The end date of the date range in the query. + /// The end date and time of the audit log query filter. public DateTimeOffset? FilterEndDateTime { get; set; } - /// The start date of the date range in the query. + /// The start date and time of the audit log query filter. public DateTimeOffset? FilterStartDateTime { get; set; } - /// The IP address of the device that was used when the activity was logged. + /// The collection of IP addresses to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IpAddressFilters { get; set; } @@ -41,7 +41,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List IpAddressFilters { get; set; } #endif - /// Free text field to search non-indexed properties of the audit log. + /// The keyword to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? KeywordFilter { get; set; } @@ -49,7 +49,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public string KeywordFilter { get; set; } #endif - /// For SharePoint and OneDrive for Business activity, the full path name of the file or folder accessed by the user. For Exchange admin audit logging, the name of the object that was modified by the cmdlet. + /// The collection of object IDs to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ObjectIdFilters { get; set; } @@ -57,7 +57,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List ObjectIdFilters { get; set; } #endif - /// The name of the user or admin activity. For a description of the most common operations/activities, see Search the audit log in the Office 365 Protection Center. + /// The collection of operations to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? OperationFilters { get; set; } @@ -65,7 +65,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List OperationFilters { get; set; } #endif - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Records { get; set; } @@ -73,7 +73,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List Records { get; set; } #endif - /// The type of operation indicated by the record. For the list of member values, see auditLogRecordType. + /// The collection of record types to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? RecordTypeFilters { get; set; } @@ -81,7 +81,7 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List RecordTypeFilters { get; set; } #endif - /// The serviceFilters property + /// The collection of services to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ServiceFilters { get; set; } @@ -89,9 +89,9 @@ public partial class AuditLogQuery : global::Microsoft.Graph.PowerShell.Security #else public List ServiceFilters { get; set; } #endif - /// Describes the current status of the query. The possible values are: notStarted, running, succeeded, failed, cancelled, unknownFutureValue. + /// The status of the audit log query. Possible values are: notStarted, running, succeeded, failed, cancelled, unknownFutureValue. public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditLogQueryStatus? Status { get; set; } - /// The UPN (user principal name) of the user who performed the action (specified in the operation property) that resulted in the record being logged; for example, myname@mydomain_name. + /// The collection of user principal names to filter on. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? UserPrincipalNameFilters { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogRecord.cs b/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogRecord.cs index 34445627992..9cc25336048 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogRecord.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Security/AuditLogRecord.cs @@ -13,7 +13,7 @@ namespace Microsoft.Graph.PowerShell.Security.Client.Models.Security [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Security.Client.Models.Entity, IParsable { - /// The administrative units tagged to an audit log record. + /// The collection of administrative units associated with the record. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? AdministrativeUnits { get; set; } @@ -21,7 +21,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public List AdministrativeUnits { get; set; } #endif - /// A JSON object that contains the actual audit log data. + /// The audit data associated with the record. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditData? AuditData { get; set; } @@ -29,9 +29,9 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditData AuditData { get; set; } #endif - /// The type of operation indicated by the record. For the list of member values, see auditLogRecordType. + /// The type of the audit log record. public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditLogRecordType? AuditLogRecordType { get; set; } - /// The IP address of the device used when the activity was logged. The IP address is displayed in either an IPv4 or IPv6 address format. + /// The IP address of the client that performed the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClientIp { get; set; } @@ -39,9 +39,9 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string ClientIp { get; set; } #endif - /// The date and time in UTC when the user performed the activity. + /// The date and time when the activity was performed. public DateTimeOffset? CreatedDateTime { get; set; } - /// For Exchange admin audit logging, the name of the object modified by the cmdlet. For SharePoint activity, the full URL path name of the file or folder accessed by a user. For Microsoft Entra activity, the name of the user account that was modified. + /// The identifier of the object that was affected by the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ObjectId { get; set; } @@ -49,7 +49,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string ObjectId { get; set; } #endif - /// The name of the user or admin activity. + /// The name of the activity that was performed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Operation { get; set; } @@ -57,7 +57,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string Operation { get; set; } #endif - /// The GUID for your organization. + /// The GUID of the organization's Microsoft 365 tenant. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OrganizationId { get; set; } @@ -73,7 +73,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string Service { get; set; } #endif - /// The user who performed the action (specified in the Operation property) that resulted in the record being logged. Audit records for activity performed by system accounts (such as SHAREPOINT/system or NT AUTHORITY/SYSTEM) are also included in the audit log. Another common value for the UserId property is app@sharepoint. It indicates that the 'user' who performed the activity was an application with the necessary permissions in SharePoint to perform organization-wide actions (such as searching a SharePoint site or OneDrive account) on behalf of a user, admin, or service. + /// The identifier of the user, system account, service, or application that performed the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserId { get; set; } @@ -81,7 +81,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string UserId { get; set; } #endif - /// UPN of the user who performed the action. + /// The user principal name of the user who performed the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? UserPrincipalName { get; set; } @@ -89,7 +89,7 @@ public partial class AuditLogRecord : global::Microsoft.Graph.PowerShell.Securit #else public string UserPrincipalName { get; set; } #endif - /// The type of user that performed the operation. The possible values are: regular, reserved, admin, dcAdmin, system, application, servicePrincipal, customPolicy, systemPolicy, partnerTechnician, guest, unknownFutureValue. + /// The type of user who performed the activity. Possible values are: regular, reserved, admin, dcAdmin, system, application, servicePrincipal, customPolicy, systemPolicy, partnerTechnician, guest, unknownFutureValue. public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditLogUserType? UserType { get; set; } /// /// Creates a new instance of the appropriate class based on discriminator value diff --git a/src/Security/wrapper/v1.0/Client/Models/Security/Security.cs b/src/Security/wrapper/v1.0/Client/Models/Security/Security.cs index 7d15d02b2a1..b3eb5758b60 100644 --- a/src/Security/wrapper/v1.0/Client/Models/Security/Security.cs +++ b/src/Security/wrapper/v1.0/Client/Models/Security/Security.cs @@ -37,7 +37,7 @@ public partial class Security : global::Microsoft.Graph.PowerShell.Security.Clie #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.AttackSimulationRoot AttackSimulation { get; set; } #endif - /// The auditLog property + /// The entry point for the audit log query API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditCoreRoot? AuditLog { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Security/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index dc14e295bc6..733fdd17271 100644 --- a/src/Security/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Security/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Security.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Security.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Security.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Security/wrapper/v1.0/Client/Models/User.cs b/src/Security/wrapper/v1.0/Client/Models/User.cs index de7d0fe8838..9668995db69 100644 --- a/src/Security/wrapper/v1.0/Client/Models/User.cs +++ b/src/Security/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Security.Client.M #nullable restore #else public global::Microsoft.Graph.PowerShell.Security.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Security.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Security.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Security.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Security/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Security/wrapper/v1.0/Client/Models/UserActivityType.cs index c904a709ea6..b6ede34fbce 100644 --- a/src/Security/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Security/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Security/wrapper/v1.0/Client/Models/UserActivityTypes.cs b/src/Security/wrapper/v1.0/Client/Models/UserActivityTypes.cs index c0f84ff2ce1..e851bf0825d 100644 --- a/src/Security/wrapper/v1.0/Client/Models/UserActivityTypes.cs +++ b/src/Security/wrapper/v1.0/Client/Models/UserActivityTypes.cs @@ -33,5 +33,21 @@ public enum UserActivityTypes #pragma warning disable CS1591 UnknownFutureValue = 32, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard = 64, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard = 128, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print = 256, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools = 512, + #pragma warning restore CS1591 } } diff --git a/src/Security/wrapper/v1.0/Client/Security/AuditLog/AuditLogRequestBuilder.cs b/src/Security/wrapper/v1.0/Client/Security/AuditLog/AuditLogRequestBuilder.cs index a58742b4c81..1277b6d5e6b 100644 --- a/src/Security/wrapper/v1.0/Client/Security/AuditLog/AuditLogRequestBuilder.cs +++ b/src/Security/wrapper/v1.0/Client/Security/AuditLog/AuditLogRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get auditLog from security + /// The entry point for the audit log query API. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get auditLog from security + /// The entry point for the audit log query API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class AuditLogRequestBuilderDeleteRequestConfiguration : RequestC { } /// - /// Get auditLog from security + /// The entry point for the audit log query API. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuditLogRequestBuilderGetQueryParameters diff --git a/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs b/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs index 0c6e1850d1d..dcca4c9cbc0 100644 --- a/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs +++ b/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/Item/AuditLogRecordItemRequestBuilder.cs @@ -35,7 +35,7 @@ public AuditLogRecordItemRequestBuilder(string rawUrl, IRequestAdapter requestAd { } /// - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// /// A /// Cancellation token to use when cancelling requests @@ -58,7 +58,7 @@ public AuditLogRecordItemRequestBuilder(string rawUrl, IRequestAdapter requestAd return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditLogRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -86,7 +86,7 @@ public RequestInformation ToGetRequestInformation(Action - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class AuditLogRecordItemRequestBuilderGetQueryParameters diff --git a/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs b/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs index f40a914d4b2..08529b29c6a 100644 --- a/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs +++ b/src/Security/wrapper/v1.0/Client/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs @@ -54,7 +54,7 @@ public RecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba { } /// - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// /// A /// Cancellation token to use when cancelling requests @@ -77,7 +77,7 @@ public RecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Security.Client.Models.Security.AuditLogRecordCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// An individual audit log record. + /// The collection of audit log records retrieved by the query. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class RecordsRequestBuilderGetQueryParameters diff --git a/src/Security/wrapper/v1.0/Client/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs b/src/Security/wrapper/v1.0/Client/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs index ad18e72afd7..1efd47d82e3 100644 --- a/src/Security/wrapper/v1.0/Client/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs +++ b/src/Security/wrapper/v1.0/Client/Security/MicrosoftGraphSecurityRunHuntingQuery/RunHuntingQueryPostRequestBody.cs @@ -30,6 +30,8 @@ public partial class RunHuntingQueryPostRequestBody : IAdditionalDataHolder, IPa #else public string Timespan { get; set; } #endif + /// The workspaceId property + public Guid? WorkspaceId { get; set; } /// /// Instantiates a new and sets the default values. /// @@ -57,6 +59,7 @@ public virtual IDictionary> GetFieldDeserializers() { { "query", n => { Query = n.GetStringValue(); } }, { "timespan", n => { Timespan = n.GetStringValue(); } }, + { "workspaceId", n => { WorkspaceId = n.GetGuidValue(); } }, }; } /// @@ -68,6 +71,7 @@ public virtual void Serialize(ISerializationWriter writer) if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("query", Query); writer.WriteStringValue("timespan", Timespan); + writer.WriteGuidValue("workspaceId", WorkspaceId); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Security/wrapper/v1.0/Client/kiota-lock.json b/src/Security/wrapper/v1.0/Client/kiota-lock.json index 0e706ed53b4..552bf31b914 100644 --- a/src/Security/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Security/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "0887B05B4342C3B807BE9F087A308DA2AD5D5A4BA685441C586797B3AA66D4BEF3CDFCF7C0293066046E8BD92174D74EF902BABCC3EC679BD4D65A9F28ABA990", + "descriptionHash": "E55F6CAACE438E5C8B6CA0131A47FC9C7FE0B28485FCB187A3605DC8D0A7550D5DFEA5B4C8251F84754B7846E109B05904F5A8513AC79041D290C7C3298E592B", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Security.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs b/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs index d4ba3de1538..fb0d341c00a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs b/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs index 2bab5f62a44..b1bb1be8347 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/AddMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert.g.cs index f3187c6631b..4ec29d46bc9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AlertId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertCount.g.cs index 0561451bb45..2a1d459dd6f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2.g.cs index 24983c2ba11..85917098174 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AlertId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2CommentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2CommentCount.g.cs deleted file mode 100644 index c69d060f012..00000000000 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2CommentCount.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Security.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Security -{ - [GraphRoute("GET", "/security/alerts_v2/{alert-id}/comments/$count")] - [Cmdlet(VerbsCommon.Get, "MgSecurityAlertV2CommentCount")] - [OutputType(typeof(int))] - public class GetMgSecurityAlertV2CommentCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string AlertId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public string? Filter { get; set; } - - [Parameter(Mandatory = false)] - public string? Search { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - int? result; - try - { - result = client.Security.Alerts_v2[AlertId].Comments.Count.GetAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - if (this.IsParameterBound(nameof(Search))) - requestConfiguration.QueryParameters.Search = Search; - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, AlertId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2Count.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2Count.g.cs index 79b9dee0aaa..423e9acd308 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2Count.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2Count.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_Get.g.cs index b237c538f52..63adf6ce53e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_List.g.cs index a6483455d84..f65408b0d26 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlertV2_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_Get.g.cs index 87f78a9c7f0..c166a50bf82 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_List.g.cs index fa749945c9e..838ec518c03 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAlert_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation.g.cs index d086465849e..d2b17c150ff 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SimulationId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation.g.cs index 1c87993ead4..dc40e678b03 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SimulationAutomationId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationCount.g.cs index f2375e96274..aad42b47c70 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun.g.cs index 918cc4d6e53..a3f8566fb18 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SimulationAutomationRunId : SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRunCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRunCount.g.cs index 8731be61fd6..5cfe27473f0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRunCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRunCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_Get.g.cs index aaea9be4fbf..bac06cc0711 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationRunId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_List.g.cs index 57c1ff0831b..2661a576ad1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomationRun_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_Get.g.cs index dbfe385fe77..aa583d4b8fb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_List.g.cs index 710d4d3ae87..74ef86f6a68 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationAutomation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationCount.g.cs index d557a301dc4..ae0348a3f93 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification.g.cs index 8560fbb6184..054562a5097 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EndUserNotificationId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationCount.g.cs index f888a3e4012..b89c9f83c12 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail.g.cs index afd67657df5..17976af5013 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EndUserNotificationDetailId : EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetailCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetailCount.g.cs index 0b8cd36ef93..a6e045bd0c9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetailCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetailCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_Get.g.cs index 7bab1f5c4e0..785a06d9e66 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_List.g.cs index 8ad132c78cf..6e7e97532a2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotificationDetail_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_Get.g.cs index 967aeebe5af..d244c97185d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_List.g.cs index 9a593d17f3e..0bf2c644539 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationEndUserNotification_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage.g.cs index bcba6e33988..7b1a631514c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LandingPageId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageCount.g.cs index 88cce8698a3..1c91884a95a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail.g.cs index c6bb20b6adc..8529277340c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LandingPageDetailId : LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetailCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetailCount.g.cs index c56850af32b..36e144a5796 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetailCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetailCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_Get.g.cs index b653a7ddadf..67fc966acae 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_List.g.cs index daec3e18d44..119c2cfeaef 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPageDetail_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_Get.g.cs index 36ec84d1474..e663667d3f2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_List.g.cs index 5613c860f9d..4d2aabd94df 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLandingPage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage.g.cs index 78dae659cba..231a551eb3a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LoginPageId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPageCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPageCount.g.cs index f2914f1e31c..390cea19707 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPageCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPageCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_Get.g.cs index d484a2b9dc7..5c23152d110 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LoginPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_List.g.cs index b31b2eaeb40..6fafab0f47f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationLoginPage_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation.g.cs index 42eb6c97a47..0ab0d172e83 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttackSimulationOperationId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperationCount.g.cs index 0cc89d66ed0..451dd30b28a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_Get.g.cs index 3b1d07d10f9..ab0c7d865a4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttackSimulationOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_List.g.cs index fde5fbe27e7..3187548e56b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationOperation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload.g.cs index 52adab6860e..a83fddf81da 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PayloadId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayloadCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayloadCount.g.cs index 378a1025a02..a48ce381f9b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayloadCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayloadCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_Get.g.cs index 3b1897a02e5..4873f4d8d9e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PayloadId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_List.g.cs index ca3823dc8ac..c9f2ca45cca 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationPayload_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining.g.cs index 7a3a50d7e58..25a03783176 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TrainingId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingCount.g.cs index 9126f1d4e2a..bbba9664c17 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail.g.cs index 5f19bd248c2..4a4af345ff4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TrainingLanguageDetailId : TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetailCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetailCount.g.cs index 91a3cb4a710..725e0349a59 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetailCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetailCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_Get.g.cs index faf0a51aac1..e941c359597 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingLanguageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_List.g.cs index aae92a12fe5..c9a4a08e87e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTrainingLanguageDetail_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_Get.g.cs index 70f0061f505..e278c3fbcfb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_List.g.cs index 170f0185896..a5e83245c9e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulationTraining_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_Get.g.cs index 8d249e86952..cb8b426c66e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_List.g.cs index 839a2057c6c..6c0a789b8fa 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAttackSimulation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLog.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLog.g.cs index ae6cc245eba..afa8d8f3ca8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLog.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLog.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery.g.cs index adb648ba467..1f748cf86d6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuditLogQueryId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryCount.g.cs index 07967eb7761..cf0460152f2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord.g.cs index b5827f3f5c1..ce47ece8479 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuditLogRecordId : AuditLogQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecordCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecordCount.g.cs index c3c70442cbb..60d0b329e1f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecordCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecordCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditLogQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_Get.g.cs index 5fbd7222f69..32c6a504684 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditLogRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_List.g.cs index 71e578a23f8..73867808566 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQueryRecord_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditLogQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_Get.g.cs index d69df183524..678d63c58a1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditLogQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_List.g.cs index 5265fc27675..4b4752896e8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityAuditLogQuery_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCase.g.cs index 03c2a34351e..82b51089f20 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCase.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase.g.cs index d8ffb4e5758..11e4b7559f8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryCaseId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCount.g.cs index 16b62afed96..ee8b07cc181 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian.g.cs index b518d2a22c3..48cc357cd9e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryCustodianId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianCount.g.cs index 9eeb421e856..8e095037f80 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.g.cs index f6cd78ecf58..f67f48411df 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianLastIndexOperation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs index 7d3c839d56d..b509557edb0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteSourceId : EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceCount.g.cs index 9b2134fcb53..45a4301e7b8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceSite.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceSite.g.cs index a58d9b26b8d..af4c8a05d44 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceSite.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSourceSite.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_Get.g.cs index c391fc17d19..a7a48080c52 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_List.g.cs index 949c0bd6fb1..693269ffcca 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianSiteSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs index c29b5e7baba..e033b19527e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UnifiedGroupSourceId : EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceCount.g.cs index 112e2b21fda..0cc9b0d2051 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroup.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroup.g.cs index 99d401f2dee..d6a2da67c44 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroup.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningError.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningError.g.cs index 1c0523f656b..20bbfdebeaf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningError.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningErrorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningErrorCount.g.cs index 4d05f05adcd..08065d140ab 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningErrorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSourceGroupServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_Get.g.cs index 2febdb9df59..57ec74e6923 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_List.g.cs index 34f1d09fa4e..c533e48df09 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs index b8123edb1b4..c7d48d3dbdd 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserSourceId : EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSourceCount.g.cs index 88727f8787e..d935d550258 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_Get.g.cs index 94196b8cec7..18564ecf7b3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_List.g.cs index bb3e1cb47b1..d1992840292 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodianUserSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_Get.g.cs index 30c0c6a8ba9..897f29cad17 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_List.g.cs index 22dcb8a80e1..c6ac3531d59 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseCustodian_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember.g.cs index 64400db83ff..6c845784897 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryCaseMemberId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMemberCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMemberCount.g.cs index b278f130c71..68f3098eef6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMemberCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_Get.g.cs index 09794174d7f..78d4e0bfd99 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseMemberId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_List.g.cs index 59a651e8a08..7425c8c66d5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs index 6559c0af3b9..2080642f59b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryNoncustodialDataSourceId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceCount.g.cs index 3365d00ff16..37f833b3dd1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceLastIndexOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceLastIndexOperation.g.cs index d99473396b6..06e6ec51ce7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceLastIndexOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceLastIndexOperation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_Get.g.cs index 2a0d14c6ec9..40aa1a5a971 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_List.g.cs index 8d7794d40b3..1740e054d77 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseNoncustodialDataSource_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation.g.cs index 4fe74f98e47..e1f2f82d01e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CaseOperationId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperationCount.g.cs index a585617e7d9..6a59138f828 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_Get.g.cs index 484685de8e4..2ab0b724ae5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CaseOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_List.g.cs index 35c5c297091..4794679f970 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet.g.cs index b77b84abaa1..4609e55240f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryReviewSetId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetCount.g.cs index 1bb85c77603..88180913148 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs index d4e8deecbab..fdb7065ede9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryReviewSetQueryId : EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQueryCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQueryCount.g.cs index cc0d43229d3..38136ac2ed1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQueryCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQueryCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_Get.g.cs index bed49906ccc..0ee6699bf35 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_List.g.cs index f79574b23d7..c40eb8b7b2d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSetQuery_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_Get.g.cs index 2c1bf1dc302..9203dde6b72 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_List.g.cs index 5903e681992..85863516416 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseReviewSet_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch.g.cs index e1799271646..1a120f43719 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoverySearchId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAddToReviewSetOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAddToReviewSetOperation.g.cs index af80a9c0648..3dfe5b379a5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAddToReviewSetOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAddToReviewSetOperation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs index b5c0b1b36dc..5a927667b6c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DataSourceId : EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSourceCount.g.cs index 9ddc1952558..dab0adbbf6e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_Get.g.cs index c5862e81e64..6d73bcdb2f1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_List.g.cs index 986b97e5f09..7c0d4b130fc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchAdditionalSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCount.g.cs index d1027a20280..fe2beaa636d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource.g.cs index 9afb0042178..d3efec58d17 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DataSourceId : EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSourceCount.g.cs index a2a053b4ce3..66d432c8a5b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_Get.g.cs index bd6456f0f9b..c483487bdfe 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_List.g.cs index ab4708a22ab..0e228e8afc0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchCustodianSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.g.cs index caf24d281c8..b88b24a42fd 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchLastEstimateStatisticsOperation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.g.cs index ec01948d6c1..42df64ec55f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryNoncustodialDataSourceId : EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSourceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSourceCount.g.cs index 8c5e6643a07..46c1165dd03 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSourceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_Get.g.cs index 23adb493d65..95a87264c50 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_List.g.cs index a76dca6c388..303ad79e98d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearchNoncustodialSource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_Get.g.cs index 3e5df8db456..aa04e63c51d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_List.g.cs index 837f4bf65e8..d0bec73bbe0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSearch_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSetting.g.cs index 2cdd747dfdc..57db3218f38 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag.g.cs index 171c5412fd7..234e2d74bed 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryReviewTagId : EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagAsHierarchy.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagAsHierarchy.g.cs index 65115bfee66..5149c6bdb0d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagAsHierarchy.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagAsHierarchy.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag.g.cs index 8df7d9c353c..68cf8199960 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? EdiscoveryReviewTagId1 : EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTagCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTagCount.g.cs index 90752662718..d483d85b28c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTagCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTagCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_Get.g.cs index 0a8f31288cf..81f470842a3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId1); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_List.g.cs index 6459171dfa4..d3594a3f8cc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagChildTag_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagCount.g.cs index 6ac90370076..7a519523698 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagParent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagParent.g.cs index 2debe98bf17..ce73ff0f08e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagParent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTagParent.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_Get.g.cs index 3006978d74d..078ae16ce8f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_List.g.cs index 6784fe802fb..193d692d650 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCaseTag_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_Get.g.cs index 68c6f76e51e..f7fbc3ffc35 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_List.g.cs index 00c4094ee11..48f8b93f159 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCaseEdiscoveryCase_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaboration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaboration.g.cs index db3f6dd0e49..84d6c60ee70 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaboration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaboration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail.g.cs index cd42c31ca85..9aa866bf5e2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AnalyzedEmailId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmailCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmailCount.g.cs index 6347ba10e85..82d2895d410 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmailCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmailCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_Get.g.cs index b8fe4e07caf..72db9148349 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AnalyzedEmailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_List.g.cs index 0be2477105c..d02a01fca1c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityCollaborationAnalyzedEmail_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernance.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernance.g.cs index b1a6966ba30..355cf8454d6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernance.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernance.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs index f13be875f60..1b830530b00 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs index fdf47416fda..64697f04137 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SensitivityLabelId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs index 83e23df327b..727a453ef68 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelCount.g.cs index 9bb70651e04..3854aa1243a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs index 5b301ae13d3..cced9d7292b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SensitivityLabelId1 : SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs index 2e328f68975..9f0560a2248 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelComputeInheritanceWithLabelIdsWithLocaleWithContentFormats.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelCount.g.cs index 3015ac59609..8af7e0e880d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_Get.g.cs index cf1b02fb5ef..7c58d9e0d29 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId1); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_List.g.cs index 86fd9b173f2..58713c5fd59 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_Get.g.cs index b734bb98b50..cbd54d5b14d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_List.g.cs index 9f477347058..3a3f4c26896 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityDataSecurityAndGovernanceSensitivityLabel_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentity.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentity.g.cs index 4ba1d3cd576..9bfc8c26c38 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentity.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentity.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount.g.cs index f91196c0306..c32833999af 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IdentityAccountsId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccountCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccountCount.g.cs index 374595ee9ca..0121747d6d1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccountCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccountCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_Get.g.cs index 13128be8e18..32576ecbdc6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityAccountsId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_List.g.cs index 28ff3d7658a..f66a0075c13 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityAccount_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue.g.cs index f4451eacea1..3fe2397d23b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HealthIssueId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssueCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssueCount.g.cs index eeeea0c0dda..595319fb96e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssueCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssueCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_Get.g.cs index 1acebe8e769..0baec8c3208 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HealthIssueId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_List.g.cs index 2b7835d927d..e3728c2ea95 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentityHealthIssue_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor.g.cs index 67dcba558d6..ab4b22d0fa1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SensorId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate.g.cs index 29a026c546f..165be1f2003 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SensorCandidateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs index bea1ca3ccde..711a3d5cb56 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateCount.g.cs index 2d9a3fadb70..1ce721942ae 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_Get.g.cs index 8aee1721029..e7f3c0fc509 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorCandidateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_List.g.cs index 3ad721ef2ab..2af0fd334f4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCandidate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCount.g.cs index 975cc1c6dbe..d8403f23488 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentAccessKey.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentAccessKey.g.cs index 134a861b51c..140ff6526dc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentAccessKey.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentAccessKey.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentPackageUri.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentPackageUri.g.cs index 76261d01d89..d6be9329fb5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentPackageUri.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorGetDeploymentPackageUri.g.cs @@ -44,7 +44,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue.g.cs index 74396530f1e..008e5c0f064 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HealthIssueId : SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssueCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssueCount.g.cs index 5715398fbba..f4c42729e25 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssueCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssueCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_Get.g.cs index b106928de26..cf0d99872ef 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HealthIssueId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_List.g.cs index 9a6b711f7f3..4e5bdb31fd8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensorHealthIssue_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_Get.g.cs index aa6f2b92eb0..b63518fc17d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_List.g.cs index 6978a8b99b5..f188264675b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySensor_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySetting.g.cs index 3909ca92f62..805274949ff 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs index f5a0d964a2e..48b6cb5f34e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident.g.cs index cc9fb30e341..92fde9f4e85 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IncidentId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert.g.cs index 2d3d367d736..2db22b0992c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AlertId : IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCommentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCommentCount.g.cs index 251a51b93a8..ae012d1c863 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCommentCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCommentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCount.g.cs index e5296021ff8..e439ea52223 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlertCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_Get.g.cs index b72fdaa9f0c..e0c5cdb8f3a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_List.g.cs index 99c4f7f4586..3e46b150501 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentAlert_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentCount.g.cs index be86a562d18..0ba5a404623 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncidentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_Get.g.cs index 3565c8a9a9c..c94e39ad029 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_List.g.cs index d2e182fade4..fd8f1d819d8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityIncident_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabel.g.cs index b7d11902075..88f961cb418 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabel.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority.g.cs index 7504d32b05b..8dd73f8be2d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthorityTemplateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthorityCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthorityCount.g.cs index bc757a8e003..878d77cfd5e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthorityCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthorityCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_Get.g.cs index 7eff40a63aa..e7b72fbcbb9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthorityTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_List.g.cs index a26b3ed4155..717cfcc93cc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelAuthority_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory.g.cs index 3a1ceb7b922..2657c25a445 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CategoryTemplateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategoryCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategoryCount.g.cs index db66b891740..03de63759e6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategoryCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategoryCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory.g.cs index 12a32deeff1..2563d8f62ea 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubcategoryTemplateId : CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategoryCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategoryCount.g.cs index d418d8b582c..98bac5385c4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategoryCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_Get.g.cs index 2f7b35aaea5..fce2a684c03 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubcategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_List.g.cs index 912f37ee93c..c4ed1a03c3c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategorySubcategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_Get.g.cs index cbc8043c492..c2b801d8f04 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_List.g.cs index dae64be8555..1ad6acf8983 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCategory_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation.g.cs index c3f78db3c8e..b2b39b85954 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? CitationTemplateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitationCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitationCount.g.cs index e9c007928c6..54b188ed764 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitationCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_Get.g.cs index 42e7b6a8618..1086e15ebd4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CitationTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_List.g.cs index 33274784fff..0f47111105c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelCitation_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment.g.cs index 3e5d017a308..cf5e3d33a5a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DepartmentTemplateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartmentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartmentCount.g.cs index 84667ab3b7f..db6485ab82d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartmentCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartmentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_Get.g.cs index 1320b7db83a..929e71d1bfe 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DepartmentTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_List.g.cs index 88a5e95d8d4..31834358f12 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelDepartment_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference.g.cs index 6b6b972b3bd..35dd441d011 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? FilePlanReferenceTemplateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReferenceCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReferenceCount.g.cs index 5875f59c8b6..a102f31bf9d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReferenceCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReferenceCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_Get.g.cs index e0b73169569..31f62862edc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FilePlanReferenceTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_List.g.cs index 73021c74388..33b468028a1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelFilePlanReference_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionEventType.g.cs index 4ad2ee106c9..ae86320894c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionEventType.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel.g.cs index ef81e4be21f..7fff94e3ef6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RetentionLabelId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelCount.g.cs index 81bd051a79d..b1bcbeed8e5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptor.g.cs index 3457a494a28..61998aa453f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptor.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorAuthorityTemplate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorAuthorityTemplate.g.cs index 9e9a63e0ad1..d7c16e997de 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorAuthorityTemplate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorAuthorityTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCategoryTemplate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCategoryTemplate.g.cs index 6ddc145b31a..779cfbadef9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCategoryTemplate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCategoryTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCitationTemplate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCitationTemplate.g.cs index 109f24264c9..6614816a733 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCitationTemplate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorCitationTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorDepartmentTemplate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorDepartmentTemplate.g.cs index a8fd488c141..c48b8f49b8d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorDepartmentTemplate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorDepartmentTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorFilePlanReferenceTemplate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorFilePlanReferenceTemplate.g.cs index 5cb8f9cce16..907cb9b3b71 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorFilePlanReferenceTemplate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDescriptorFilePlanReferenceTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs index 690ba9baf83..07d8f1ecacd 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DispositionReviewStageStageNumber : RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStageCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStageCount.g.cs index a70aaa568df..33bc24ab038 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStageCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_Get.g.cs index 9d2cb004c2b..b02eeeb26bc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DispositionReviewStageStageNumber); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_List.g.cs index 6446b415626..10fe4a15d64 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabelDispositionReviewStage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_Get.g.cs index 463e0811085..43e5389d5b5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_List.g.cs index 1c1e32140c6..1fe1812c31a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityLabelRetentionLabel_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore.g.cs index 3760f545e88..a7f18c9f37d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SecureScoreId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile.g.cs index e4df9e01b04..463a2e89d88 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SecureScoreControlProfileId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfileCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfileCount.g.cs index 17267846000..1fee0484f4e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfileCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfileCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_Get.g.cs index ec09415ba37..6d8d07de5b8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreControlProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_List.g.cs index 61162731e5c..3c5e2031140 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreControlProfile_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreCount.g.cs index 3e1ac468a23..256db05b213 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScoreCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_Get.g.cs index d4f7dcabb6a..a8770eb2320 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_List.g.cs index 023d7a97f30..e99483c0866 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySecureScore_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest.g.cs index f20ee089673..fa4232de12a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubjectRightsRequestId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover.g.cs index e7f1f4042ee..4cdbb74ac49 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverCount.g.cs index 5d04d22bed2..b9c4373eb2f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs index edc72e9ebb1..cae19cd3162 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningError.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningError.g.cs index 6ba5058a793..01d939ade26 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningError.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs index eee912ac071..be51e942004 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApproverServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_Get.g.cs index efc141e1005..551ee74fdab 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_List.g.cs index 31170ba1d1d..f621fc26980 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestApprover_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator.g.cs index 08b5703551d..03c024cdc8d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorCount.g.cs index 1d08c69ca83..04cb03265fb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs index 4712db64364..3d2300b26a9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs index a1175eaf922..5e2337d497c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs index e0ea5192ed1..76fa2f0f974 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaboratorServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_Get.g.cs index e42864b9e7b..c5c9fd78fc1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_List.g.cs index 2e47dbbdc20..fa5b56a1fb0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCollaborator_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCount.g.cs index bcd9a16280a..538ebb63b5c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalAttachment.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalAttachment.g.cs index c2f1808cd72..979616fe43d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalAttachment.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalAttachment.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalReport.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalReport.g.cs index 206e6e42e44..ada7cf7f78c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalReport.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestFinalReport.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote.g.cs index efc49f22b52..0bdf0db687e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AuthoredNoteId : SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNoteCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNoteCount.g.cs index 1f8434b1eb0..e2e22c34cbe 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNoteCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNoteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_Get.g.cs index 7d2dda700d5..30e68447c03 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_List.g.cs index cb7acd29f8d..ad3bdd4a556 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestNote_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestTeam.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestTeam.g.cs index 184f8b0932c..104607acdb2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestTeam.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequestTeam.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_Get.g.cs index 18be5259812..88931a77734 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_List.g.cs index 137f59b6ece..c6e01290c60 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecuritySubjectRightsRequest_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligence.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligence.g.cs index 2dbaaff1ccf..814137089cd 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligence.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligence.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle.g.cs index c5a23f0bb7b..4b0b756df53 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ArticleId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleCount.g.cs index 1c38688fd2d..8042a118767 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator.g.cs index dff41af507a..0d22cbdf014 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ArticleIndicatorId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorArtifact.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorArtifact.g.cs index 0323826caef..9aac95134c1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorArtifact.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorArtifact.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorCount.g.cs index f08ff71a49e..6f35e496d84 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicatorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_Get.g.cs index 11714863b77..02a3409bec6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_List.g.cs index 6426fb9719f..0a79f7168fe 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticleIndicator_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_Get.g.cs index c0078bb6946..e41bf0ad632 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_List.g.cs index ac9c5cbd513..8d6d277f19f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceArticle_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost.g.cs index 11e24c38c8b..f7c29562b12 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair.g.cs index 19dab5abf4b..0f2c630d727 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostPairId : HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPairCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPairCount.g.cs index 3308b801c81..7d8e07266ec 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPairCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPairCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_Get.g.cs index e28eddc4046..54b9eebf653 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_List.g.cs index 261ec85a92d..5f297f276c3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostChildHostPair_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent.g.cs index 9f2e7c5cf28..0d7594a3d31 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostComponentId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentCount.g.cs index f25050bbba7..6d5ea9137af 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentHost.g.cs index cbcd4d97f61..13d5b9fc43a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponentHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_Get.g.cs index 0c6d64503df..1035d64a998 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_List.g.cs index a212781b02d..6af75f6d081 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostComponent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie.g.cs index 91ee6d15f27..38b99fc1975 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostCookieId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieCount.g.cs index 77c74e3de8a..eaeb4f01f1d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieHost.g.cs index 0de7926a1f0..5e31fbbf1f9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookieHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostCookieId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_Get.g.cs index d48f1e476c7..15bd6ca919d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostCookieId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_List.g.cs index f30e0895db2..adf34372466 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCookie_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCount.g.cs index fedfc80b68c..abebef719d4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair.g.cs index e16aca82bb1..07b85bccca9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostPairId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairChildHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairChildHost.g.cs index 84ce309493a..32506ae4321 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairChildHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairChildHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairCount.g.cs index 49d516f582b..08cdabc0820 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairParentHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairParentHost.g.cs index 359df66e367..99aca516079 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairParentHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPairParentHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_Get.g.cs index e4f6fbd8b89..414042dc254 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_List.g.cs index 2df30677773..12d5bebd54e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPair_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair.g.cs index 45cae8afb85..2af2a0e93ce 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostPairId : HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPairCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPairCount.g.cs index 016abe3d5f6..50b754ea631 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPairCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPairCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_Get.g.cs index d70def44adf..cb1f2772ea3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_List.g.cs index 89ff55320f5..37d0c17c2f2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostParentHostPair_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns.g.cs index f734113b975..110bab54ed9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PassiveDnsRecordId : HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsCount.g.cs index a17b7c47613..69ef6150d5f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse.g.cs index 12ec5735f7f..dfb70d59808 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PassiveDnsRecordId : HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverseCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverseCount.g.cs index 16aee82a64e..cbc8d38e04d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverseCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverseCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_Get.g.cs index 1732f0aa5f5..7bdeeb78fcb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_List.g.cs index 01aff0b3f63..9eccb58d777 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDnsReverse_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_Get.g.cs index 3594635e8c9..befdd248495 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_List.g.cs index 506672376aa..7b9fd8b00ff 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPassiveDns_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort.g.cs index c683886706e..24be28f6ed6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostPortId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortCount.g.cs index b1afcf5d83e..180f49488cf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortHost.g.cs index 0a502d19d83..5769a326c39 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortMostRecentSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortMostRecentSslCertificate.g.cs index ce48a526b67..d103eab097c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortMostRecentSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPortMostRecentSslCertificate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_Get.g.cs index d3b187dd089..7bf61d5e995 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_List.g.cs index 256b0fdd1b1..f1fea29181d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostPort_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostReputation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostReputation.g.cs index 47cfe88be5b..d99409d7ebe 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostReputation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostReputation.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate.g.cs index ba6e2352155..10fbea90e45 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostSslCertificateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateCount.g.cs index 626a16535a2..317b356b5ea 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateHost.g.cs index 16f5e3619a8..4bb5b8e0dc4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificateHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostSslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_Get.g.cs index 3419fef9e7d..4f240de5fe2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostSslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_List.g.cs index 4099a6a266b..6de21b91cab 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSslCertificate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain.g.cs index d37422cbaa5..41fa27a9c7c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubdomainId : HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomainCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomainCount.g.cs index f53fba1989e..b4f242961ed 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomainCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomainCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_Get.g.cs index 82e8ec72452..757665d8d26 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_List.g.cs index 55d742c7e34..3e5ec77a412 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostSubdomain_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTracker.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTracker.g.cs index fd261fc2ea5..c336922df98 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTracker.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTracker.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerCount.g.cs index 83dbdf22559..533868a4e88 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerHost.g.cs index 8e2571710ee..3b59b96ca0f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostTrackerHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostTrackerId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostWhois.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostWhois.g.cs index ab48a12b411..88a16eba37f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostWhois.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHostWhois.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_Get.g.cs index 098248fa74b..4d3004cd07f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_List.g.cs index b7419ff2130..bb66752b578 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceHost_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile.g.cs index 12e0c643e80..86600f778fa 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IntelligenceProfileId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileCount.g.cs index ed4c79f71d2..552b82b9628 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator.g.cs index 4586f21d637..b5d4cd45253 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IntelligenceProfileIndicatorId : IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicatorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicatorCount.g.cs index 6d864d8e3cb..936775e71cf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicatorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicatorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_Get.g.cs index 1773ff42660..2f5740f7cd3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_List.g.cs index 636b03291f6..602b52cda34 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfileIndicator_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_Get.g.cs index 532f4e10f4a..33ef9455212 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_List.g.cs index db14827daf3..8300145c9d8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceIntelProfile_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord.g.cs index 1ff6a22999c..682ccead77f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PassiveDnsRecordId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordArtifact.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordArtifact.g.cs index 144d85910e1..05d3607edea 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordArtifact.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordArtifact.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordCount.g.cs index fb06ce8e603..05085b41e49 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordParentHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordParentHost.g.cs index fd78b709b1e..8993acfbdae 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordParentHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecordParentHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_Get.g.cs index bb117959134..959239b3c4c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_List.g.cs index 5cab6bc6be4..ff6f7d3364b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligencePassiveDnsRecord_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator.g.cs index 6ef3028a191..82026bb6137 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? IntelligenceProfileIndicatorId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorArtifact.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorArtifact.g.cs index 91be5a50ac4..306ebfb6de2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorArtifact.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorArtifact.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorCount.g.cs index b671126a951..22595378b1c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicatorCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_Get.g.cs index 6dcc42ef6eb..62010052e08 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_List.g.cs index 2ccf9d53ff5..fe45503e96d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceProfileIndicator_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate.g.cs index 9f6a2910da9..c9889c12908 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SslCertificateId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateCount.g.cs index 91443078713..ec7f5b1f470 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost.g.cs index 5d0748dd27e..ce779e7cea0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HostId : SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHostCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHostCount.g.cs index d128cdb5520..f95331c64a8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHostCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHostCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_Get.g.cs index 412c513de0a..f5813df46f3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_List.g.cs index f9e261052f9..95bb6e0138f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificateRelatedHost_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_Get.g.cs index 34955ba55fd..ab45a3f8654 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_List.g.cs index 3b4ba30bd7f..68d2236bfa3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSslCertificate_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain.g.cs index 41b31ccb376..d628786b7bb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubdomainId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainCount.g.cs index f4e6c957167..0e484ebddf7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainHost.g.cs index a9ab4fe55f7..8890cb31ce8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomainHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_Get.g.cs index dd3471d768d..6b84215f743 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_List.g.cs index 3b05fbac80b..f6b62e436d5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceSubdomain_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability.g.cs index 2e51ec95613..71b305b271a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VulnerabilityId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle.g.cs index 282cd7f9ff4..483aee11186 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ArticleId : VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticleCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticleCount.g.cs index 378704f28e0..378feddf005 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticleCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticleCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_Get.g.cs index 8f82820ee6c..78690cb231a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_List.g.cs index f5e8d335b06..c6514278f88 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityArticle_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs index 49e88c9d281..ffa2ffb2cd8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? VulnerabilityComponentId : VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponentCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponentCount.g.cs index 09ba61281ba..fa326d2eb8a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponentCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponentCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_Get.g.cs index c2ab325f076..5517e200f47 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_List.g.cs index 8ef45e09bd7..52ce19e6ad2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityComponent_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityCount.g.cs index 39920cd4c8a..2e6f55b03a3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerabilityCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_Get.g.cs index e2f33d176ec..b30ea73d2b3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_List.g.cs index 6ae19b2ff1f..6400af60fdc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceVulnerability_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs index a4b6296f329..55e7f6cc25e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WhoisHistoryRecordId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordCount.g.cs index 3cf764b6314..12964317c3f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordHost.g.cs index 1eff4f24c17..47e371c899f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecordHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_Get.g.cs index 1619c571b44..03f4971023c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_List.g.cs index 577c5b39947..1aaf263e3c1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisHistoryRecord_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord.g.cs index ae5300d4512..f35bd3bca9c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WhoisRecordId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordCount.g.cs index 02a6f4f46c4..da411c98d64 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory.g.cs index afaefe49fa5..820c1336462 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WhoisHistoryRecordId : WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistoryCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistoryCount.g.cs index 57265f652c4..0cf7d1f137a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistoryCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_Get.g.cs index 7e7477aa369..1365dff3244 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_List.g.cs index fb8fa7856ab..55b6728e74b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHistory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHost.g.cs index a19a4240c3a..582de385ba8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecordHost.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_Get.g.cs index cdf41456444..0169d63223d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_List.g.cs index d13ece82a21..7b4ad0d4a2f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityThreatIntelligenceWhoisRecord_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTrigger.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTrigger.g.cs index cde6c20312e..aec0fa9687f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTrigger.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTrigger.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent.g.cs index df300db19c7..cadea0c8051 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RetentionEventId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventCount.g.cs index 477e6c05645..29511626517 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventType.g.cs index 60af6fb0687..c2b0fb692ce 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEventType.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_Get.g.cs index 1b321193e55..1d7202e3e92 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_List.g.cs index 929ff7e3e65..41e92cf13ac 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerRetentionEvent_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerType.g.cs index c651212565b..c8d1be9104a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType.g.cs index 0f89f6646d1..e05451eea9b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RetentionEventTypeId : null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventTypeCount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventTypeCount.g.cs index 8389089c5b6..d29a4777a58 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventTypeCount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventTypeCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_Get.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_Get.g.cs index 6018a5e9f4d..1ba4dc70616 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_Get.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventTypeId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_List.g.cs b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_List.g.cs index 56638d17323..1a4c793b24a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_List.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/GetMgSecurityTriggerTypeRetentionEventType_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs index 1ef5c4730b1..6f3f41e008f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs index c8124b88f79..70c92ae2dd6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgAndSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgCommentSecurityAlert.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgCommentSecurityAlert.g.cs new file mode 100644 index 00000000000..8238a2d7c7d --- /dev/null +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgCommentSecurityAlert.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Security.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Security +{ + [GraphRoute("GET", "/security/alerts_v2/{alert-id}/comments/$count")] + [Cmdlet(VerbsLifecycle.Invoke, "MgCommentSecurityAlert")] + [OutputType(typeof(int))] + public class InvokeMgCommentSecurityAlertCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string AlertId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Security.Alerts_v2[AlertId].Comments.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AlertId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgComputeSecurityDataSecurityAndGovernanceProtectionScope.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgComputeSecurityDataSecurityAndGovernanceProtectionScope.g.cs index e3b97617a9d..546a8f8dc71 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgComputeSecurityDataSecurityAndGovernanceProtectionScope.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgComputeSecurityDataSecurityAndGovernanceProtectionScope.g.cs @@ -76,7 +76,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgProcessSecurityDataSecurityAndGovernanceContentAsync.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgProcessSecurityDataSecurityAndGovernanceContentAsync.g.cs index 484c71956c1..a3af91ac910 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgProcessSecurityDataSecurityAndGovernanceContentAsync.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgProcessSecurityDataSecurityAndGovernanceContentAsync.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityAlertV2MoveAlerts.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityAlertV2MoveAlerts.g.cs index d324ee0fcfc..91503eede88 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityAlertV2MoveAlerts.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityAlertV2MoveAlerts.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseClose.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseClose.g.cs index a4cdd5a459c..3c033496e32 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseClose.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseClose.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianActivate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianActivate.g.cs index db412679942..ae83f8a5b7b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianActivate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianActivate.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianRelease.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianRelease.g.cs index 27adb87e216..3514cc4e45f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianRelease.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianRelease.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianUpdateIndex.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianUpdateIndex.g.cs index 2654aae12ea..442e73dbad7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianUpdateIndex.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseCustodianUpdateIndex.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceRelease.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceRelease.g.cs index 0710c88e4d4..17b90d289e1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceRelease.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceRelease.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceUpdateIndex.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceUpdateIndex.g.cs index 4ce68acadd9..1086ace8d10 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceUpdateIndex.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceUpdateIndex.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReopen.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReopen.g.cs index c33277f4361..8881f3c429d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReopen.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReopen.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetAddToReviewSet.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetAddToReviewSet.g.cs index 596ff5eb555..a8937e05af3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetAddToReviewSet.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetAddToReviewSet.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetExport.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetExport.g.cs index 65be91ee7e8..5377056492f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetExport.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetExport.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryApplyTags.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryApplyTags.g.cs index 37a8d550c9b..f72fbfab098 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryApplyTags.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryApplyTags.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryExport.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryExport.g.cs index 8adb3dd6c1c..5cbfe3054d5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryExport.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseReviewSetQueryExport.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchEstimateStatistics.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchEstimateStatistics.g.cs index 80d36812665..69813fa278b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchEstimateStatistics.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchEstimateStatistics.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportReport.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportReport.g.cs index 0e613a89209..3ca49c6eb94 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportReport.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportReport.g.cs @@ -90,7 +90,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportResult.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportResult.g.cs index b1bab9a161c..0b7fadda3e3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportResult.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchExportResult.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchPurgeData.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchPurgeData.g.cs index 395274fb8e8..c2517a39cd0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchPurgeData.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSearchPurgeData.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSettingResetToDefault.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSettingResetToDefault.g.cs index 95ea7308889..5236645a424 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSettingResetToDefault.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCaseEdiscoveryCaseSettingResetToDefault.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCollaborationAnalyzedEmailRemediate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCollaborationAnalyzedEmailRemediate.g.cs index 1f409690343..2c3587b6176 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCollaborationAnalyzedEmailRemediate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityCollaborationAnalyzedEmailRemediate.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentityAccountInvokeAction.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentityAccountInvokeAction.g.cs index d9d7aa62843..269e2e173ca 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentityAccountInvokeAction.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentityAccountInvokeAction.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityAccountsId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorCandidateActivate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorCandidateActivate.g.cs index 9c5086019e4..f52133155e4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorCandidateActivate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorCandidateActivate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorRegenerateDeploymentAccessKey.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorRegenerateDeploymentAccessKey.g.cs index cb8717b4dc3..14f7e3b078a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorRegenerateDeploymentAccessKey.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIdentitySensorRegenerateDeploymentAccessKey.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIncidentMergeIncidents.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIncidentMergeIncidents.g.cs index ca60fd7f610..77925ff41aa 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIncidentMergeIncidents.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityIncidentMergeIncidents.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityRunHuntingQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityRunHuntingQuery.g.cs index 100428cf091..f22f409b87b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityRunHuntingQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/InvokeMgSecurityRunHuntingQuery.g.cs @@ -27,6 +27,9 @@ public class InvokeMgSecurityRunHuntingQueryCommand : GraphClientCmdlet [Parameter(Mandatory = false)] public string? Timespan { get; set; } + [Parameter(Mandatory = false)] + public global::System.Guid? WorkspaceId { get; set; } + @@ -46,6 +49,9 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Timespan))) body.Timespan = Timespan; + if (this.IsParameterBound(nameof(WorkspaceId))) + body.WorkspaceId = WorkspaceId; + var requestAdapter = GetRequestAdapter(); var client = new ApiClient(requestAdapter); @@ -58,7 +64,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlert.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlert.g.cs index fba179f8e16..203a4cd44bf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlert.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlert.g.cs @@ -278,7 +278,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlertV2.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlertV2.g.cs index 3edc404edca..20c19464ccf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlertV2.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAlertV2.g.cs @@ -248,7 +248,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulation.g.cs index 9c94540bb03..3a4bb28a06a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulation.g.cs @@ -170,7 +170,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomation.g.cs index 8bb64de91ca..bc0f4b0b90f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomation.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomationRun.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomationRun.g.cs index 4a8a0868e44..f3765fe01da 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomationRun.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationAutomationRun.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotification.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotification.g.cs index e8f7ef04c04..4a52c24d70e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotification.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotification.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotificationDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotificationDetail.g.cs index 0924bb2b194..b8c03f32864 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotificationDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationEndUserNotificationDetail.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPage.g.cs index d37258a8f33..6cc7c163b07 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPage.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPageDetail.g.cs index 3bc61054b40..256a3276e3c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLandingPageDetail.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLoginPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLoginPage.g.cs index c1c044c05d7..f7cec7271cb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLoginPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationLoginPage.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationOperation.g.cs index 91776295cfd..fa49513752b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationOperation.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationPayload.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationPayload.g.cs index d03acf73aaa..86c316a285e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationPayload.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationPayload.g.cs @@ -176,7 +176,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTraining.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTraining.g.cs index 02b8ad0e99f..f7791a6cbd0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTraining.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTraining.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTrainingLanguageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTrainingLanguageDetail.g.cs index 91dfc850acb..2bbc0330ed4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTrainingLanguageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAttackSimulationTrainingLanguageDetail.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAuditLogQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAuditLogQuery.g.cs index 7818ddb1928..af1c9412ce7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAuditLogQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityAuditLogQuery.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCase.g.cs index 20370503b0c..b72f0ee582e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCase.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodian.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodian.g.cs index 9c84c985aba..58d77d156e5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodian.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodian.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs index 49542b5d743..e7daf814ec7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs index 3b34a45c5d3..f3d769b8ace 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs index a361b2f3789..734f2903109 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseMember.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseMember.g.cs index 1d74a036aaf..8b26246e9a3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseMember.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseMember.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs index c1fd1b747d9..b9ee6650ccb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseOperation.g.cs index 396a065696d..6b505b45601 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseOperation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSet.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSet.g.cs index 072ca15fd30..3bc898645c2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSet.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSet.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs index 9204d18f482..f06d4b01ff4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearch.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearch.g.cs index 031304b3215..c374596a84c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearch.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearch.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs index 58cf29abfa8..9cdf213e8e6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseTag.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseTag.g.cs index 941cdc2ec31..a112be8026c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseTag.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCaseEdiscoveryCaseTag.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCollaborationAnalyzedEmail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCollaborationAnalyzedEmail.g.cs index 465f9ef85dd..d9a8ad7a6bf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCollaborationAnalyzedEmail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityCollaborationAnalyzedEmail.g.cs @@ -266,7 +266,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs index 5cd90bad0d0..be19290364c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs index 82ec87f3599..ca9b3a10fa6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityAccount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityAccount.g.cs index fc5e19c418f..994d0f7e138 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityAccount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityAccount.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityHealthIssue.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityHealthIssue.g.cs index 1081da89b09..a412acfaf86 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityHealthIssue.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentityHealthIssue.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensor.g.cs index 1ab7cdb1829..7585a1ac637 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensor.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensorCandidate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensorCandidate.g.cs index 6f7bca31cbd..e953a8641b1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensorCandidate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIdentitySensorCandidate.g.cs @@ -70,7 +70,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIncident.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIncident.g.cs index 2895e15206e..c8fcdfd258b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIncident.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityIncident.g.cs @@ -158,7 +158,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelAuthority.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelAuthority.g.cs index 69be62489f8..8a0cd445c7b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelAuthority.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelAuthority.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategory.g.cs index ce1f0eb9bfa..2cbe8241616 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategory.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategorySubcategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategorySubcategory.g.cs index ebc6615523d..417d237562f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategorySubcategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCategorySubcategory.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCitation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCitation.g.cs index b0437db4c83..80589ded13a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCitation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelCitation.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelDepartment.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelDepartment.g.cs index 48689913a26..30ecebba9b4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelDepartment.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelDepartment.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelFilePlanReference.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelFilePlanReference.g.cs index 474a6d4b231..7ec75747446 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelFilePlanReference.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelFilePlanReference.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabel.g.cs index 3c0f1238c70..5ea12468682 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabel.g.cs @@ -128,7 +128,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs index aca9eecb9aa..3137e4f4549 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScore.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScore.g.cs index 99265db649b..9168ff6b495 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScore.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScore.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScoreControlProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScoreControlProfile.g.cs index 5f870e62888..136f5421038 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScoreControlProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySecureScoreControlProfile.g.cs @@ -158,7 +158,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequest.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequest.g.cs index 5b0c778b8a8..7f8e9cd79a8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequest.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequest.g.cs @@ -188,7 +188,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequestNote.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequestNote.g.cs index 796fd4b9182..2b24e517793 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequestNote.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecuritySubjectRightsRequestNote.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticle.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticle.g.cs index 53dd6be104b..e14779065dc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticle.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticle.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticleIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticleIndicator.g.cs index c56a1a85342..80fed0f9134 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticleIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceArticleIndicator.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHost.g.cs index cbc94ef5e87..b31856ccf0d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHost.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostComponent.g.cs index c07d2c1b6f1..41f72727900 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostComponent.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostCookie.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostCookie.g.cs index 145f4043d83..3f9454709af 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostCookie.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostCookie.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPair.g.cs index 797c82dd684..a99e5b3598d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPair.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPort.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPort.g.cs index ab31b7162e5..06a53b4d5db 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPort.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostPort.g.cs @@ -104,7 +104,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostSslCertificate.g.cs index 43cf58422e3..6e7e16a04c5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostSslCertificate.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostTracker.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostTracker.g.cs index 4f479302da4..935b5967a29 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostTracker.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceHostTracker.g.cs @@ -74,7 +74,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceIntelProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceIntelProfile.g.cs index 2be4193d6c1..32556fbcdf6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceIntelProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceIntelProfile.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligencePassiveDnsRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligencePassiveDnsRecord.g.cs index 0eaa63f1c9c..ccf6667903f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligencePassiveDnsRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligencePassiveDnsRecord.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceProfileIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceProfileIndicator.g.cs index 5ad4052583a..e79de07a86e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceProfileIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceProfileIndicator.g.cs @@ -68,7 +68,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSslCertificate.g.cs index d2a3cc9d391..5f78a9244ee 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSslCertificate.g.cs @@ -98,7 +98,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSubdomain.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSubdomain.g.cs index 32e142026fc..56339924b95 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSubdomain.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceSubdomain.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerability.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerability.g.cs index f9919d46428..80f1f420567 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerability.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerability.g.cs @@ -134,7 +134,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs index 2ef90df9b68..97ac297ae4d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs index 56c0ba752ba..1ed8faf2ef8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs @@ -152,7 +152,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisRecord.g.cs index 51f82a6d5f8..345c4f79a0b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityThreatIntelligenceWhoisRecord.g.cs @@ -152,7 +152,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerRetentionEvent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerRetentionEvent.g.cs index 7a7e16bf39c..3c280d227af 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerRetentionEvent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerRetentionEvent.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerTypeRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerTypeRetentionEventType.g.cs index 8f180650e14..07bdb29bcc5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerTypeRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/NewMgSecurityTriggerTypeRetentionEventType.g.cs @@ -80,7 +80,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAlertV2.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAlertV2.g.cs index a7abbc7a514..31c7508e342 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAlertV2.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAlertV2.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulation.g.cs index 3f2d884e76e..b23676b3c26 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomation.g.cs index 2c9db329d42..cc05b097cd2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomationRun.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomationRun.g.cs index e82ec0c882f..86cc8e759d8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomationRun.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationAutomationRun.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationRunId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotification.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotification.g.cs index 7c132fb014f..3031669402a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotification.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotification.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotificationDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotificationDetail.g.cs index d5642274186..cc85fb82f19 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotificationDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationEndUserNotificationDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPage.g.cs index 6f303395476..9aca072300e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPageDetail.g.cs index bae0c946b44..9595359298c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLandingPageDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLoginPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLoginPage.g.cs index cb4dfda2d4f..1d8499736a7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLoginPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationLoginPage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LoginPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationOperation.g.cs index 98d30bc5529..2c7f0856be9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationOperation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttackSimulationOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationPayload.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationPayload.g.cs index 1613c7ee385..d4d84442899 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationPayload.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationPayload.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PayloadId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTraining.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTraining.g.cs index 8db9354c5f5..63f8211542f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTraining.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTraining.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTrainingLanguageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTrainingLanguageDetail.g.cs index b460cec3985..3c2d58966b8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTrainingLanguageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAttackSimulationTrainingLanguageDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingLanguageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLog.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLog.g.cs index dc20d9a477a..be2c2df7d8f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLog.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLog.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLogQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLogQuery.g.cs index 1615270020f..8dda9782061 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLogQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityAuditLogQuery.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuditLogQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCase.g.cs index 21eb36c1b53..f7c4ef47af8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCase.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCase.g.cs index 719dada30cc..2f628d68714 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCase.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodian.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodian.g.cs index 1bd82e8ee90..5c931c3f4e5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodian.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodian.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs index 24214763144..62fd8ec230c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianHold.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs index 064d4a566b1..bff589aae30 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs index 1353eb6cfc3..0251c682243 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs index 220399fd586..07c7c041840 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseMember.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseMember.g.cs index 7a9db7b3299..67bf6b92b1f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseMember.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseMemberId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs index 6ef15fe03cc..cf047cec233 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs index d43c46a75d4..dcc6490d73c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseNoncustodialDataSourceHold.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseOperation.g.cs index abdb7e2d216..53d14d123e4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CaseOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSet.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSet.g.cs index be13d7c9af6..f23780c5b16 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSet.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSet.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs index 6be6e62328e..2b144c7d458 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearch.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearch.g.cs index 7d762229077..5f12a3fefa3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearch.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearch.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs index 5bc5804f7a5..3fc7011d5a6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSetting.g.cs index ba6b486b2dc..4951373efb4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseSetting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseTag.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseTag.g.cs index 2d4d2d46f33..0769da930a9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseTag.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCaseEdiscoveryCaseTag.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaboration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaboration.g.cs index 618f54b9792..57924a3d80f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaboration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaboration.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaborationAnalyzedEmail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaborationAnalyzedEmail.g.cs index 3b02bc06b01..c43583250a4 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaborationAnalyzedEmail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityCollaborationAnalyzedEmail.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AnalyzedEmailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernance.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernance.g.cs index b33e26811f9..dc4a42ec1a6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernance.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernance.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs index e33ff1a1a5b..d686a634cf5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs index 2d7f24d47f3..455ead02304 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs index 98f72f6fcb2..5036fbdf620 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId1); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentity.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentity.g.cs index 927047b2fa0..09d6bcc6317 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentity.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentity.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityAccount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityAccount.g.cs index 278731fb3d5..a782fc49593 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityAccount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityAccount.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityAccountsId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityHealthIssue.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityHealthIssue.g.cs index ee9d38901cf..3bed41e46f5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityHealthIssue.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentityHealthIssue.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HealthIssueId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensor.g.cs index d5aeb2070fe..6b8814aa16a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensor.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidate.g.cs index d44f125c2c6..e2b7a482558 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorCandidateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs index f69c4268918..54dcb2ea013 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySetting.g.cs index bf71d37d4df..f44182e50b0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs index 57224a0ba0b..f100d16195a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIncident.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIncident.g.cs index 6d259e2590b..5d4a7dc6d36 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIncident.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityIncident.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabel.g.cs index 4fa0d927a80..9fc112ef088 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabel.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelAuthority.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelAuthority.g.cs index f87fdeb8233..eac1c68801b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelAuthority.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelAuthority.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthorityTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategory.g.cs index caa732c8205..fe0f5c9bce9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategory.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategorySubcategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategorySubcategory.g.cs index d12c4e319ff..f31ebe014d0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategorySubcategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCategorySubcategory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubcategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCitation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCitation.g.cs index e160ce0ad8b..370eed044ec 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCitation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelCitation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CitationTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelDepartment.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelDepartment.g.cs index 4fcfcbfdda4..3d5d55e4224 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelDepartment.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelDepartment.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DepartmentTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelFilePlanReference.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelFilePlanReference.g.cs index fc0dd365e9a..a7e45f23111 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelFilePlanReference.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelFilePlanReference.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FilePlanReferenceTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabel.g.cs index 0ee72f8985e..9433252fb0d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabel.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDescriptor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDescriptor.g.cs index eb4ebc04574..f6c55fac767 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDescriptor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDescriptor.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs index 97f111b5bec..e8418a289bb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DispositionReviewStageStageNumber); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScore.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScore.g.cs index 192bfe0a128..a7a9dd02067 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScore.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScore.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScoreControlProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScoreControlProfile.g.cs index 91dbe07b21f..be6c7407180 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScoreControlProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySecureScoreControlProfile.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreControlProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequest.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequest.g.cs index 0f00d7f5d6a..744aebb547f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequest.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequest.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequestNote.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequestNote.g.cs index e3154fc929b..bd8d2a2e8d1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequestNote.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecuritySubjectRightsRequestNote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligence.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligence.g.cs index 57b5ba77787..8cd33306c9a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligence.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligence.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticle.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticle.g.cs index fdfa318334d..3a8e0cdd450 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticle.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticle.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticleIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticleIndicator.g.cs index a99c777951a..e521b3f0156 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticleIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceArticleIndicator.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHost.g.cs index 735d5933186..7cb8b3f1404 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHost.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostComponent.g.cs index 4789f417a98..0445ff81caf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostComponent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostCookie.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostCookie.g.cs index 16b8c17ad97..096ebafe71e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostCookie.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostCookie.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostCookieId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPair.g.cs index 02ee4dbf9fb..29de1bd1fbb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPair.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPort.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPort.g.cs index 200440331e5..94d5430cbdb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPort.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostPort.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostReputation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostReputation.g.cs index cfee0ea8612..f2d5f494431 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostReputation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostReputation.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostSslCertificate.g.cs index f63c25a5009..97bbb2bdbb1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostSslCertificate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostSslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostTracker.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostTracker.g.cs index 7afb560cb6e..77e3a0151aa 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostTracker.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceHostTracker.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostTrackerId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceIntelProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceIntelProfile.g.cs index caa5067a3da..10c1d8ee133 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceIntelProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceIntelProfile.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligencePassiveDnsRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligencePassiveDnsRecord.g.cs index f9bff8b33af..9a32862721f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligencePassiveDnsRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligencePassiveDnsRecord.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceProfileIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceProfileIndicator.g.cs index 8d22fae90e0..99bd9d2b22f 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceProfileIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceProfileIndicator.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSslCertificate.g.cs index dcafcea707f..977cc4ea2e5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSslCertificate.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSubdomain.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSubdomain.g.cs index 8f40bcf3f24..62c625aebcb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSubdomain.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceSubdomain.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerability.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerability.g.cs index b7b3524f850..a4b7b30bc04 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerability.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerability.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs index 2253089f4d6..ae0f86735d5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs index f23c456c5f7..6d872ffd705 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisRecord.g.cs index 367514f81f1..72e8030636b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityThreatIntelligenceWhoisRecord.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTrigger.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTrigger.g.cs index e8a15bb7796..ec472242cb0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTrigger.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTrigger.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerRetentionEvent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerRetentionEvent.g.cs index 9a79e327dac..da89dc11333 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerRetentionEvent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerRetentionEvent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerType.g.cs index cf8fd998ca6..aa1dabcf42b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerType.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerTypeRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerTypeRetentionEventType.g.cs index e864d614f18..42a5ac18a3e 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerTypeRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/RemoveMgSecurityTriggerTypeRetentionEventType.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventTypeId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlert.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlert.g.cs index ac8351cb080..36c593427e0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlert.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlert.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; @@ -293,7 +293,7 @@ protected override void ProcessRecord() { result = client.Security.Alerts[AlertId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlertV2.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlertV2.g.cs index 0c3cbda19d3..5ec24bb9ccf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlertV2.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAlertV2.g.cs @@ -249,7 +249,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; @@ -263,7 +263,7 @@ protected override void ProcessRecord() { result = client.Security.Alerts_v2[AlertId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AlertId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomation.g.cs index 2e024156d6b..fa598de2bd2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomation.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.SimulationAutomations[SimulationAutomationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomationRun.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomationRun.g.cs index 68e36f4fb1f..f7d650da99a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomationRun.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationAutomationRun.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationRunId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.SimulationAutomations[SimulationAutomationId].Runs[SimulationAutomationRunId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SimulationAutomationRunId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotification.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotification.g.cs index 3b7cadc1c17..97aedfa10a5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotification.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotification.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.EndUserNotifications[EndUserNotificationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotificationDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotificationDetail.g.cs index b6b486dda5b..ea3ab8477f3 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotificationDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationEndUserNotificationDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationDetailId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.EndUserNotifications[EndUserNotificationId].Details[EndUserNotificationDetailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EndUserNotificationDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPage.g.cs index e2789913ed1..efeefb55733 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPage.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.LandingPages[LandingPageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPageDetail.g.cs index 76c7a5ca702..00753b3c846 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLandingPageDetail.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageDetailId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.LandingPages[LandingPageId].Details[LandingPageDetailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LandingPageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLoginPage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLoginPage.g.cs index 4b4102c5359..20902c88ef2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLoginPage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationLoginPage.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LoginPageId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.LoginPages[LoginPageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LoginPageId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationOperation.g.cs index 1f593aa2c0e..b8594c8eed2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationOperation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttackSimulationOperationId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.Operations[AttackSimulationOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttackSimulationOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationPayload.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationPayload.g.cs index e28f9f2ab9d..3ead6c4a150 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationPayload.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationPayload.g.cs @@ -177,7 +177,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PayloadId); return; @@ -191,7 +191,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.Payloads[PayloadId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PayloadId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTraining.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTraining.g.cs index d477b436184..1a947659827 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTraining.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTraining.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.Trainings[TrainingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTrainingLanguageDetail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTrainingLanguageDetail.g.cs index 6e58271a6ee..bec1effed40 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTrainingLanguageDetail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAttackSimulationTrainingLanguageDetail.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingLanguageDetailId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Security.AttackSimulation.Trainings[TrainingId].LanguageDetails[TrainingLanguageDetailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrainingLanguageDetailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAuditLog.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAuditLog.g.cs index 0cbfd007456..8b49b639ddc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAuditLog.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityAuditLog.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.AuditLog.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCase.g.cs index 4d7efb610fd..099dccc5d81 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCase.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCase.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCase.g.cs index 1228c61c9c8..a495bbcbf3b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCase.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCase.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodian.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodian.g.cs index 65d085d5394..2cbb44b9bbb 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodian.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodian.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Custodians[EdiscoveryCustodianId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCustodianId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs index 0e8cdbcfb4b..62aa0374334 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianSiteSource.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteSourceId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Custodians[EdiscoveryCustodianId].SiteSources[SiteSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs index 0261963334b..1779bf58d41 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUnifiedGroupSource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Custodians[EdiscoveryCustodianId].UnifiedGroupSources[UnifiedGroupSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UnifiedGroupSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs index ba2c23df732..c5455f98973 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseCustodianUserSource.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserSourceId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Custodians[EdiscoveryCustodianId].UserSources[UserSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseMember.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseMember.g.cs index 281f719538b..34847432c05 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseMember.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseMemberId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].CaseMembers[EdiscoveryCaseMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseMemberId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs index 4e029f3b7e8..037143ed725 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseNoncustodialDataSource.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].NoncustodialDataSources[EdiscoveryNoncustodialDataSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryNoncustodialDataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseOperation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseOperation.g.cs index 8b27576105c..06ee20cee11 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseOperation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseOperation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CaseOperationId); return; @@ -103,7 +103,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Operations[CaseOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CaseOperationId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSet.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSet.g.cs index 19caf3bb02a..1558292db3c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSet.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSet.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].ReviewSets[EdiscoveryReviewSetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs index aaea5d967e1..2782c62324a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseReviewSetQuery.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].ReviewSets[EdiscoveryReviewSetId].Queries[EdiscoveryReviewSetQueryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewSetQueryId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearch.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearch.g.cs index 61fe1f447dd..d84f9845d29 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearch.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearch.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Searches[EdiscoverySearchId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoverySearchId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs index c12acb14543..d48e086b969 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSearchAdditionalSource.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataSourceId); return; @@ -87,7 +87,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Searches[EdiscoverySearchId].AdditionalSources[DataSourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DataSourceId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSetting.g.cs index f45ab10f173..3c5d6c468b5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseSetting.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryCaseId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseTag.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseTag.g.cs index 4bb6a86f11b..085b484e246 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseTag.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCaseEdiscoveryCaseTag.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Security.Cases.EdiscoveryCases[EdiscoveryCaseId].Tags[EdiscoveryReviewTagId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, EdiscoveryReviewTagId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaboration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaboration.g.cs index f939532740b..092cbcfe6bc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaboration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaboration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.Collaboration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaborationAnalyzedEmail.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaborationAnalyzedEmail.g.cs index 0a1fc948737..7365b3c7e58 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaborationAnalyzedEmail.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityCollaborationAnalyzedEmail.g.cs @@ -267,7 +267,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AnalyzedEmailId); return; @@ -281,7 +281,7 @@ protected override void ProcessRecord() { result = client.Security.Collaboration.AnalyzedEmails[AnalyzedEmailId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AnalyzedEmailId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernance.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernance.g.cs index 0f076d6a5fb..681800bcb7b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernance.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernance.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Security.DataSecurityAndGovernance.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs index 243be033104..ae031a8aa76 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceProtectionScope.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.DataSecurityAndGovernance.ProtectionScopes.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs index 42f1c5a3662..4de235d117b 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabel.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Security.DataSecurityAndGovernance.SensitivityLabels[SensitivityLabelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs index a3a12872f63..e14cb549607 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityDataSecurityAndGovernanceSensitivityLabelSublabel.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId1); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Security.DataSecurityAndGovernance.SensitivityLabels[SensitivityLabelId].Sublabels[SensitivityLabelId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensitivityLabelId1); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentity.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentity.g.cs index ea017b496a5..a8f71582bdf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentity.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentity.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityAccount.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityAccount.g.cs index 357cfe2f11f..11467f41fe6 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityAccount.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityAccount.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityAccountsId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.IdentityAccounts[IdentityAccountsId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IdentityAccountsId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityHealthIssue.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityHealthIssue.g.cs index 4248028eed0..c1e76685c4d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityHealthIssue.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentityHealthIssue.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HealthIssueId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.HealthIssues[HealthIssueId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HealthIssueId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensor.g.cs index 739ee7d9ba2..6892cac3eb9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensor.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.Sensors[SensorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidate.g.cs index 92ac9eb8a5a..b4bd7a82951 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidate.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorCandidateId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.SensorCandidates[SensorCandidateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SensorCandidateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs index 50463256ead..7b4500f065a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySensorCandidateActivationConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.SensorCandidateActivationConfiguration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySetting.g.cs index c61a9a50332..0479428c19c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySetting.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs index 171c2050c41..6846b8f9155 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIdentitySettingAutoAuditingConfiguration.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -66,7 +66,7 @@ protected override void ProcessRecord() { result = client.Security.Identities.Settings.AutoAuditingConfiguration.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIncident.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIncident.g.cs index fd06b342c05..013ada68ea8 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIncident.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityIncident.g.cs @@ -159,7 +159,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; @@ -173,7 +173,7 @@ protected override void ProcessRecord() { result = client.Security.Incidents[IncidentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IncidentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabel.g.cs index fbe9d9c4742..4bf4379c51a 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelAuthority.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelAuthority.g.cs index ec0b63158dc..4e0de4836bc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelAuthority.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelAuthority.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthorityTemplateId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.Authorities[AuthorityTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthorityTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategory.g.cs index f89b2b1d94f..82488a90a59 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategory.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.Categories[CategoryTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategorySubcategory.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategorySubcategory.g.cs index 266107ac460..8fa9651d2a5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategorySubcategory.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCategorySubcategory.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubcategoryTemplateId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.Categories[CategoryTemplateId].Subcategories[SubcategoryTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubcategoryTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCitation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCitation.g.cs index 26d18af4dc8..bfc29dcda08 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCitation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelCitation.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CitationTemplateId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.Citations[CitationTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, CitationTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelDepartment.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelDepartment.g.cs index 54a959865a8..d318101d1ad 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelDepartment.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelDepartment.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DepartmentTemplateId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.Departments[DepartmentTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DepartmentTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelFilePlanReference.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelFilePlanReference.g.cs index e9bebe642c5..6e216886647 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelFilePlanReference.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelFilePlanReference.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FilePlanReferenceTemplateId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.FilePlanReferences[FilePlanReferenceTemplateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, FilePlanReferenceTemplateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabel.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabel.g.cs index 7d16f893fcc..60d913c6714 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabel.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabel.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; @@ -143,7 +143,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.RetentionLabels[RetentionLabelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDescriptor.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDescriptor.g.cs index e40a02afadf..893775f9b83 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDescriptor.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDescriptor.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.RetentionLabels[RetentionLabelId].Descriptors.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionLabelId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs index bb1192657fd..f4034e4036d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityLabelRetentionLabelDispositionReviewStage.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DispositionReviewStageStageNumber); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Security.Labels.RetentionLabels[RetentionLabelId].DispositionReviewStages[DispositionReviewStageStageNumber].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DispositionReviewStageStageNumber); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScore.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScore.g.cs index 8fb590f0cda..1e7fd09422d 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScore.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScore.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.SecureScores[SecureScoreId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScoreControlProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScoreControlProfile.g.cs index 2ab154c6c37..3b29cdaafec 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScoreControlProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySecureScoreControlProfile.g.cs @@ -159,7 +159,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreControlProfileId); return; @@ -173,7 +173,7 @@ protected override void ProcessRecord() { result = client.Security.SecureScoreControlProfiles[SecureScoreControlProfileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SecureScoreControlProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequest.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequest.g.cs index 2692595b2a5..0e890226026 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequest.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequest.g.cs @@ -189,7 +189,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; @@ -203,7 +203,7 @@ protected override void ProcessRecord() { result = client.Security.SubjectRightsRequests[SubjectRightsRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubjectRightsRequestId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs index be5864c5794..4570754ecb1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestApproverMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Security.SubjectRightsRequests[SubjectRightsRequestId].Approvers[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs index c87ba2c93d1..e2648f9e0c5 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestCollaboratorMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Security.SubjectRightsRequests[SubjectRightsRequestId].Collaborators[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestNote.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestNote.g.cs index 291740e2d7b..e4c33b3fb61 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestNote.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecuritySubjectRightsRequestNote.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Security.SubjectRightsRequests[SubjectRightsRequestId].Notes[AuthoredNoteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AuthoredNoteId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligence.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligence.g.cs index 3334920f60a..617d7281183 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligence.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligence.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticle.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticle.g.cs index fc8b2312eeb..0b3c9257494 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticle.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticle.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Articles[ArticleId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticleIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticleIndicator.g.cs index 431c94d7e85..4a8244bc485 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticleIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceArticleIndicator.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleIndicatorId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.ArticleIndicators[ArticleIndicatorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ArticleIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHost.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHost.g.cs index 11f3a5c2ce2..bbce0c8ab12 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHost.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHost.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Hosts[HostId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostComponent.g.cs index 781ec3690c0..a76f1c4babc 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostComponent.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostComponentId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostComponents[HostComponentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostCookie.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostCookie.g.cs index 0f64d4558ff..13022a3bf1c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostCookie.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostCookie.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostCookieId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostCookies[HostCookieId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostCookieId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPair.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPair.g.cs index ea6047be7e7..cf98c7d9b66 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPair.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPair.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostPairs[HostPairId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPairId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPort.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPort.g.cs index e17ac365d18..90df2af228c 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPort.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostPort.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostPorts[HostPortId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostPortId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostReputation.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostReputation.g.cs index 2d070538b9f..b80267bfc01 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostReputation.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostReputation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Hosts[HostId].Reputation.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostSslCertificate.g.cs index 2d2c354b70d..b31609f6df9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostSslCertificate.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostSslCertificateId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostSslCertificates[HostSslCertificateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostSslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostTracker.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostTracker.g.cs index 16cc4b19ee5..aa901a9a143 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostTracker.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceHostTracker.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostTrackerId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.HostTrackers[HostTrackerId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HostTrackerId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceIntelProfile.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceIntelProfile.g.cs index 9f13cf56ef3..d50d0279dcf 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceIntelProfile.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceIntelProfile.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.IntelProfiles[IntelligenceProfileId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligencePassiveDnsRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligencePassiveDnsRecord.g.cs index 8957739cd67..2e68731e9c9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligencePassiveDnsRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligencePassiveDnsRecord.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.PassiveDnsRecords[PassiveDnsRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PassiveDnsRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceProfileIndicator.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceProfileIndicator.g.cs index 428ac4470d6..a1085e103c7 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceProfileIndicator.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceProfileIndicator.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.IntelligenceProfileIndicators[IntelligenceProfileIndicatorId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, IntelligenceProfileIndicatorId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSslCertificate.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSslCertificate.g.cs index 80a7c61b45a..aac44d3a507 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSslCertificate.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSslCertificate.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.SslCertificates[SslCertificateId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SslCertificateId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSubdomain.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSubdomain.g.cs index 9a5de60783f..55536070ac9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSubdomain.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceSubdomain.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Subdomains[SubdomainId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubdomainId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerability.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerability.g.cs index c65b844ea0e..610fdec3bc2 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerability.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerability.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Vulnerabilities[VulnerabilityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs index 8dbd78ad143..09dffd82e24 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceVulnerabilityComponent.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityComponentId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.Vulnerabilities[VulnerabilityId].Components[VulnerabilityComponentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, VulnerabilityComponentId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs index 01d2397e994..caeaddbba96 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisHistoryRecord.g.cs @@ -153,7 +153,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; @@ -167,7 +167,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.WhoisHistoryRecords[WhoisHistoryRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisHistoryRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisRecord.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisRecord.g.cs index 3c338d4ed09..eb19c15faab 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisRecord.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityThreatIntelligenceWhoisRecord.g.cs @@ -153,7 +153,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; @@ -167,7 +167,7 @@ protected override void ProcessRecord() { result = client.Security.ThreatIntelligence.WhoisRecords[WhoisRecordId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WhoisRecordId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTrigger.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTrigger.g.cs index e92a14b331f..ab1ffcc40d1 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTrigger.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTrigger.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.Triggers.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerRetentionEvent.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerRetentionEvent.g.cs index 0e62b992651..ec50acf10b9 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerRetentionEvent.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerRetentionEvent.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.Security.Triggers.RetentionEvents[RetentionEventId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventId); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerType.g.cs index 76689e36136..f2071ff4e54 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerType.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Security.TriggerTypes.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerTypeRetentionEventType.g.cs b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerTypeRetentionEventType.g.cs index b404144025f..8c78289efe0 100644 --- a/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerTypeRetentionEventType.g.cs +++ b/src/Security/wrapper/v1.0/Cmdlets/UpdateMgSecurityTriggerTypeRetentionEventType.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventTypeId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Security.TriggerTypes.RetentionEventTypes[RetentionEventTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RetentionEventTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index f35836f489a..8626cb354cc 100644 --- a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs index 3d6b4edf2c4..ff531a024f4 100644 --- a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Sites.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Sites.Client.Groups.Item.Sites.Item.Lists.Item.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs index badb4768ed9..8d304bb9939 100644 --- a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs index 2c22fe2cca2..3e2a04c5eaf 100644 --- a/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Groups/Item/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Sites.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Sites.Client.Groups.Item.Sites.Item.Lists.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from groups + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Models/Chat.cs b/src/Sites/wrapper/v1.0/Client/Models/Chat.cs index 2a4494efff9..8e6bec5c8d5 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Sites.Client.Mode #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Sites/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Sites/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..b36400c04c9 --- /dev/null +++ b/src/Sites/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Sites.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Sites.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Sites.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Sites/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Sites/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..2866e3ae60d --- /dev/null +++ b/src/Sites/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Sites.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Sites/wrapper/v1.0/Client/Models/Group.cs b/src/Sites/wrapper/v1.0/Client/Models/Group.cs index 24eac95d666..c96d5895fef 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Sites.Client.Mod #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Sites.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Sites.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Sites/wrapper/v1.0/Client/Models/List.cs b/src/Sites/wrapper/v1.0/Client/Models/List.cs index 45289872853..d22f2170b20 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/List.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Sites.Client.Mode #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Sites/wrapper/v1.0/Client/Models/ListItem.cs b/src/Sites/wrapper/v1.0/Client/Models/ListItem.cs index 33383198960..47e03771336 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Sites.Client. #else public global::Microsoft.Graph.PowerShell.Sites.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 34fe2c5e7db..d48958d2254 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Site #nullable restore #else public global::Microsoft.Graph.PowerShell.Sites.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Sites.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Sites.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Site #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Sites.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..f39df8c266e --- /dev/null +++ b/src/Sites/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Sites.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Sites/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Sites/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 420fe5aed75..a94a8d91e6e 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Sites.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Sites.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Sites/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Sites/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 1f348f623bf..75ce72838e9 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Sites.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Sites.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Sites.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Sites/wrapper/v1.0/Client/Models/User.cs b/src/Sites/wrapper/v1.0/Client/Models/User.cs index 1fd67ff575c..ff525a7dc51 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/User.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Sites.Client.Mode #nullable restore #else public global::Microsoft.Graph.PowerShell.Sites.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Sites.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Sites.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Sites.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Sites/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Sites/wrapper/v1.0/Client/Models/UserActivityType.cs index 714b6a1fdd3..364121d009c 100644 --- a/src/Sites/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Sites/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs index 2fa626349c5..2e1337f04cd 100644 --- a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs index b32277a1dcb..9743604fe36 100644 --- a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Items/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,8 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a listItem. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +103,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Sites.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a listItem. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +153,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Sites.Client.Sites.Item.Lists.Item.Items.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a listItem. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs index b9f81a2c81b..29c031efc4d 100644 --- a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/Item/PermissionItemRequestBuilder.cs @@ -63,7 +63,7 @@ public async Task DeleteAsync(Action - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Cancellation token to use when cancelling requests @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -188,7 +188,7 @@ public partial class PermissionItemRequestBuilderDeleteRequestConfiguration : Re { } /// - /// Get permissions from sites + /// The set of permissions for the item. Read-only. Nullable. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionItemRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs index 7e1bbe14d77..96ba152edac 100644 --- a/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs +++ b/src/Sites/wrapper/v1.0/Client/Sites/Item/Lists/Item/Permissions/PermissionsRequestBuilder.cs @@ -54,7 +54,8 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a list. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -77,7 +78,8 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Sites.Client.Models.PermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to permissions for sites + /// Create a new permission object on a list. + /// Find more info here /// /// A /// The request body @@ -102,7 +104,7 @@ public PermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Sites.Client.Models.Permission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a list. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -121,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to permissions for sites + /// Create a new permission object on a list. /// /// A /// The request body @@ -152,7 +154,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Sites.Client.Sites.Item.Lists.Item.Permissions.PermissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get permissions from sites + /// Get a list of the permission objects associated with a list. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class PermissionsRequestBuilderGetQueryParameters diff --git a/src/Sites/wrapper/v1.0/Client/kiota-lock.json b/src/Sites/wrapper/v1.0/Client/kiota-lock.json index dcc38fda2f6..de255bb3655 100644 --- a/src/Sites/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Sites/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "7B02E5BAF2E5E7F9CAD36CD065DA552177D8698919AD80C8E6B4B0E84CF73D19DE9C8D91C1CEFD1D4C232E62A3FC2B4229AB47C6979B7577728FD8FB2AA3865A", + "descriptionHash": "C79BEBD67F092157D785508C60558136A53D4ACE105F8E5A164136D7CDB6204D81D49876E9A07FA77A68D634B7784E93AC6522F1B09A9168A51AD852080F5E75", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Sites.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSite.g.cs index 2a12a6ce2d6..6e4096693e5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSite.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopy.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopy.g.cs index 6b01a450b2b..696e0e86e51 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopy.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopy.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopyFromContentTypeHub.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopyFromContentTypeHub.g.cs index f8b0d27a526..59f6a8a2e55 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteContentTypeCopyFromContentTypeHub.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopy.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopy.g.cs index b831d7cedd8..8122e3b72db 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopy.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopy.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopyFromContentTypeHub.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopyFromContentTypeHub.g.cs index acaf09289c3..13e885731ca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgGroupSiteListContentTypeCopyFromContentTypeHub.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSite.g.cs index b23429fb28e..9b4f717c436 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSite.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopy.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopy.g.cs index ce21fbecf47..6a35c5058d1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopy.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopy.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopyFromContentTypeHub.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopyFromContentTypeHub.g.cs index 7cadee9904a..7de3552029a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteContentTypeCopyFromContentTypeHub.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopy.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopy.g.cs index 808291c9d41..3fdb3be4e0e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopy.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopy.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopyFromContentTypeHub.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopyFromContentTypeHub.g.cs index eb367e522f6..70d40be5ff0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopyFromContentTypeHub.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgSiteListContentTypeCopyFromContentTypeHub.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/AddMgUserFollowedSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/AddMgUserFollowedSite.g.cs index 63b462e8a17..5f3894d4f9a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/AddMgUserFollowedSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/AddMgUserFollowedSite.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteContentTypeToDefaultContentLocation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteContentTypeToDefaultContentLocation.g.cs index 8bd47f33745..dd7e7d5b83f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteContentTypeToDefaultContentLocation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteContentTypeToDefaultContentLocation.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteListContentTypeToDefaultContentLocation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteListContentTypeToDefaultContentLocation.g.cs index 7e145ad9e48..6c959098352 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteListContentTypeToDefaultContentLocation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteListContentTypeToDefaultContentLocation.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebook.g.cs index f8df8ff7639..3324e449f38 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebook.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs index bb31ca732a3..44c36f1f8a9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionPageToSection.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs index 82328513a01..6b3c3d0a9ea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToNotebook.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs index bc300bcff79..cadd4b4bce8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionGroupSectionToSectionGroup.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionPageToSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionPageToSection.g.cs index 4b3e2337827..8f29416a777 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionPageToSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionPageToSection.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToNotebook.g.cs index 8a42b5d850f..00193bf9ff4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToNotebook.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToSectionGroup.g.cs index fe9c7c33adc..2b095b96040 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteNotebookSectionToSectionGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenotePageToSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenotePageToSection.g.cs index 9371f5fde91..1ccbd3b3fa0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenotePageToSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenotePageToSection.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionPageToSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionPageToSection.g.cs index c2bea685bba..1f64c5175a1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionPageToSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionPageToSection.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToNotebook.g.cs index eb11c019a1c..7d832a08404 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToNotebook.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToSectionGroup.g.cs index 9e29c9aa070..4983aa93b34 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionGroupSectionToSectionGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionPageToSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionPageToSection.g.cs index 0450bee1c56..a6225fcdc69 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionPageToSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionPageToSection.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToNotebook.g.cs index ce67576589d..d402074b9d7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToNotebook.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToSectionGroup.g.cs index 69cf0035d38..573bbeb4c98 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgGroupSiteOnenoteSectionToSectionGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteContentTypeToDefaultContentLocation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteContentTypeToDefaultContentLocation.g.cs index 1a52ffc584f..3326c0fc10a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteContentTypeToDefaultContentLocation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteContentTypeToDefaultContentLocation.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteListContentTypeToDefaultContentLocation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteListContentTypeToDefaultContentLocation.g.cs index 92aa994e305..bf6c0708928 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteListContentTypeToDefaultContentLocation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/CopyMgSiteListContentTypeToDefaultContentLocation.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepoint.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepoint.g.cs index f81a7266cb1..0d583136d6d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepoint.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepoint.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepointSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepointSetting.g.cs index 403d981607f..5d09e8ae65b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepointSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAdminSharepointSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAllSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAllSite.g.cs index 4472574f1c5..87a4ad35583 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgAllSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgAllSite.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite.g.cs index a2e03da4266..63288b088a7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteId : GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteActivityByInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteActivityByInterval.g.cs index 723927fcaee..f63af65da23 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteActivityByInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteActivityByInterval.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalytic.g.cs index 95ce520466c..8bbc4c2efd6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalytic.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat.g.cs index 59180141dc2..af16f284072 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityStatId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity.g.cs index 6be4b196d2e..63d1a4a946a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityId : ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityCount.g.cs index 27d5b74320e..446e1b57c6d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItem.g.cs index f548bcb4a9d..944966d11bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItem.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs index ebe97474666..2667210ad76 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_Get.g.cs index 84357a8c452..23966082b9c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_List.g.cs index 7ae0bdf61cf..8fc91b949ab 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatActivity_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatCount.g.cs index 3427ccbde88..62ed0b15151 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStatCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_Get.g.cs index 1ac107d535e..8b81e7bb60a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_List.g.cs index db36d00c578..f83482e1565 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticItemActivityStat_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticLastSevenDay.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticLastSevenDay.g.cs index 577a7a7cda2..8c384621195 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticLastSevenDay.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticLastSevenDay.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticTime.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticTime.g.cs index c044f4acb35..254d5b286c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticTime.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteAnalyticTime.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn.g.cs index 5c4a2818d10..3fe6aa517f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnCount.g.cs index b9644e207ae..1391a27929d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnSourceColumn.g.cs index 6cf178cab87..048d7aca287 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumnSourceColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_Get.g.cs index 1fd821b89f3..1b35e89a61a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_List.g.cs index d2286389af3..525861c3b18 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType.g.cs index ce121696bcc..70f2c7365a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBase.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBase.g.cs index 85856f3369e..415d19ecf01 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBase.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBase.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType.g.cs index 8bfb0b44f11..db34f4f9086 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId1 : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseTypeCount.g.cs index 19900260e7f..12e0c855f5b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseTypeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_Get.g.cs index f66b0bc8661..f00d7109a5e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_List.g.cs index 389bb62bc86..6f519598141 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeBaseType_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn.g.cs index 4ee0ff6272e..1cf2c853579 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnCount.g.cs index c280747f504..1c40264086f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink.g.cs index ef05a83fc68..8c36484fc7b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLinkCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLinkCount.g.cs index 647ec625cfd..b5291f2e0db 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLinkCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLinkCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_Get.g.cs index 659da77cc95..f4b9314439e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_List.g.cs index b989b8151d4..c98594d368b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnLink_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition.g.cs index 04d3708df29..3ca8e850017 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPositionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPositionCount.g.cs index cf080faa1e7..c8e27ac4040 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPositionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPositionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_Get.g.cs index 33abe5c6249..68aea58d72b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_List.g.cs index 77c591ffb45..5c24c236897 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnPosition_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnSourceColumn.g.cs index edcd6d06cce..d10115fc32d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumnSourceColumn.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_Get.g.cs index b104e09c200..7024ed78557 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_List.g.cs index a4d17710123..e75b3b70187 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeColumn_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCompatibleHubContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCompatibleHubContentType.g.cs index 794d62392f0..9a16c81f555 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCompatibleHubContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCompatibleHubContentType.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCount.g.cs index 7f54fd60b13..959f0edf963 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentTypeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_Get.g.cs index 5036f578d2b..1a6c5d820cd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_List.g.cs index 1a866eed23e..3388625914d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteContentType_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCount.g.cs index f1a857a4ac5..957bd13a1ff 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUser.g.cs index 9ac809d1338..6e379b11694 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserMailboxSetting.g.cs index 5ea51cc0e55..c596f6003d5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningError.g.cs index 8e4241748b3..3863064c424 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningErrorCount.g.cs index c4dd7134c4d..a3d4d7ce0ba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDefaultDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDefaultDrive.g.cs index 820d6612cf5..b12ac1c8ec7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDefaultDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDefaultDrive.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDelta.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDelta.g.cs index 6e236fcc799..03966471766 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDelta.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive.g.cs index 9a9bfa1591e..548c9ca07d9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDriveCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDriveCount.g.cs index b492b58df9b..fe024a47ae3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDriveCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDriveCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_Get.g.cs index 83e31fabf95..12d9837a053 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_List.g.cs index 3bf93e9a835..867c145980a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteDrive_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn.g.cs index 54e810f4f54..d53a9c54244 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumnCount.g.cs index d3630137b60..08a214d22ce 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_Get.g.cs index 50d836b14cd..6f662622001 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_List.g.cs index 300fba7c3b9..0af00e26d54 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteExternalColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 79c4a8ae875..231dc18ac77 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetApplicableContentTypesForListWithListId.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetApplicableContentTypesForListWithListId.g.cs index fa9324cc43e..b73368d04b3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetApplicableContentTypesForListWithListId.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetApplicableContentTypesForListWithListId.g.cs @@ -106,7 +106,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetByPathWithPath.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetByPathWithPath.g.cs index f1ccd1b7fa8..7dadc82ea17 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetByPathWithPath.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteGetByPathWithPath.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem.g.cs index 6607acf8d1d..0b3941d716f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BaseItemId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemCount.g.cs index bfdecbdee47..0970d544a4c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUser.g.cs index c69985c0af2..4d66a4c8c14 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUser.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserMailboxSetting.g.cs index ee670d897af..9bab21546af 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserMailboxSetting.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningError.g.cs index a913b6ea74a..a3191f48cf0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningError.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs index 907a1de0479..1f0a7c2acfc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_Get.g.cs index 8d0d12b4344..b09983b8d85 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_List.g.cs index a89e42ad95a..bb13d2859aa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteItem_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUser.g.cs index cfa529021c6..3b63361d17a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserMailboxSetting.g.cs index fc6734e4803..83bd2f7c91e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningError.g.cs index fdf3aa60cd8..6a58c0608da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs index 3a2ef3e6f7e..d6defec45da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList.g.cs index bad2a6ccf10..7193e209459 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn.g.cs index 25ac6042262..a6de525afb8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnCount.g.cs index 40bfb13f764..38313c435ba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnSourceColumn.g.cs index eb25b30f03a..cfb4a69da0f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumnSourceColumn.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_Get.g.cs index 55930c20f0a..5ab233edee6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_List.g.cs index a4f2634b88a..979e796aefc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListColumn_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType.g.cs index 4e138ae12e4..dbabacbefc2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn.g.cs index ec54ed5066d..e1a169f4c5c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnCount.g.cs index e43de212c17..ed8001e403f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink.g.cs index 7495c66e068..52787295eab 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLinkCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLinkCount.g.cs index dc71dcfd430..48b4d58e1eb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLinkCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLinkCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_Get.g.cs index fafb84c81f4..25a577769d5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_List.g.cs index 6eccc92a761..80700b7588e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnLink_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition.g.cs index 0c133dcce5c..10f73f99ec3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPositionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPositionCount.g.cs index c9293df5b96..31a19b7bf17 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPositionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPositionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_Get.g.cs index d5ab5f844a0..3d588e0e720 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_List.g.cs index ac35d1e3adf..25dc56a1b10 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnPosition_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnSourceColumn.g.cs index ec1c082712e..c3a9d069162 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumnSourceColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_Get.g.cs index 8d30e8433c5..a083ba33b69 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_List.g.cs index 5d6010f050a..592be9eef36 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeColumn_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCompatibleHubContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCompatibleHubContentType.g.cs index 3fb91badc32..59708b536e5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCompatibleHubContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCompatibleHubContentType.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCount.g.cs index b6b8c0fb1d9..5c082aece46 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentTypeCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_Get.g.cs index 4b94321d783..63efbc9a110 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_List.g.cs index 8633ae14c5c..53710f26fb9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListContentType_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCount.g.cs index 23c5721907e..d86ef37ccba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUser.g.cs index 9ab0754c413..c62a0852d6d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserMailboxSetting.g.cs index 57f20d683b8..1706fc2da68 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningError.g.cs index e8c5fe41688..045bed076de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningErrorCount.g.cs index 9a1740ae32a..2e280180bf3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListCreatedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListDrive.g.cs index 2082ee423c9..887da338a18 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListDrive.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem.g.cs index 3ee2ec31b66..cd04e83d41b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemActivityByInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemActivityByInterval.g.cs index 1da6d2abc26..c285c10ae68 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemActivityByInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemActivityByInterval.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemAnalytic.g.cs index c783c9233ad..b910c609b28 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemAnalytic.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUser.g.cs index 55573055d1d..5a2d07d8d71 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUser.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs index 0b5098bf77b..a7f9c231ebf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningError.g.cs index 55beb774c79..edadd6be3b3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningError.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs index 2334a2f7dcb..39efc35b7cb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDelta.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDelta.g.cs index 6f4d4cb2f8b..76aff650c4f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDelta.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion.g.cs index 4ac53806f3b..6ed0b9a527e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DocumentSetVersionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionCount.g.cs index 8c7923d3833..23048954a1d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionField.g.cs index ece30d7d34b..934544305da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersionField.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_Get.g.cs index b0996588cae..9a6aeef54d2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_List.g.cs index d3ac4b28c68..1a42bb78c53 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDocumentSetVersion_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItem.g.cs index 717c7d7ca08..14752b67dcb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItem.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItemContent.g.cs index aead088b663..c72f857ecc7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemDriveItemContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemField.g.cs index 5a5171087b7..f28fdb90d73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemField.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index a73f7943eaa..ae5a8fa3b60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission.g.cs index b46daa74c7b..cbff83c1eee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermissionCount.g.cs index 4994cf20c21..496bba3a0f5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermissionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_Get.g.cs index 2fe75b479ed..44f216e50be 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_List.g.cs index 37abb8728a4..c421c59e1ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemPermission_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion.g.cs index dbdeb47ba19..c5b79018751 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemVersionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionCount.g.cs index 06d571cc83f..e2f4dfa6792 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionField.g.cs index 577ea10d5ff..466e1262e60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersionField.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_Get.g.cs index ceeb647e361..65afca87e39 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_List.g.cs index e681d71e21e..4ce48f28b5b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItemVersion_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_Get.g.cs index 0dbd9f52234..5bf4f667f8c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_List.g.cs index e83f4ac7697..2ea587323c2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListItem_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation.g.cs index e482096d087..a342d56fd8f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperationCount.g.cs index a170ff00d9c..4829567e489 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperationCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_Get.g.cs index 53cdc22e628..d819616eeea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_List.g.cs index fb5045baa06..7ee9ade1154 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListOperation_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission.g.cs index 3387888648a..bf158cbc5f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermissionCount.g.cs index f0402de23c9..56d1f01a535 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermissionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_Get.g.cs index 5aa4ffbf71a..63f8641f446 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_List.g.cs index 008dfcfa2c7..1d845d3e33e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListPermission_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription.g.cs index 560a89c4c9d..3095b742a8b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscriptionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscriptionCount.g.cs index bf8c2a651a7..6306c417ed8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscriptionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscriptionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_Get.g.cs index f628a0080f3..fa680e8eba8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_List.g.cs index 70983cbc31a..b2783abb703 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteListSubscription_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_Get.g.cs index ed9b5fbf425..624885f4d14 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_List.g.cs index b82dfcf25be..e2efb000f08 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteList_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenote.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenote.g.cs index a1de218105e..78153da1d28 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenote.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenote.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook.g.cs index 43da9691d03..2b20dcd9291 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? NotebookId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookCount.g.cs index 20ce23f6a8c..6dda27721d7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookFromWebUrl.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookFromWebUrl.g.cs index ae050e7e8a4..289a5cd1165 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookFromWebUrl.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookFromWebUrl.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs index 46e3a475b3d..9b2afef0779 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookGetRecentNotebooksWithIncludePersonalNotebooks.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection.g.cs index d6bb355a61e..ac46d8fefab 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionCount.g.cs index a788f436e01..fd07cab3779 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup.g.cs index 76a5670df22..7c2656dd2d2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupCount.g.cs index 1934f2be31a..74c29bb3244 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentNotebook.g.cs index 713c5260893..ca829446305 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs index ea4e391eb74..3e822bc8eb3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs index 6aa45098a6f..a1e68e148b0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionCount.g.cs index c1a85d65027..89e5e708e89 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs index d387c2ced77..15d8d526370 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index 0d9be4c4fc3..a4bdb37021e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs index a1b84b1c115..68e27c2bd8a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs index 66586b92a15..72f124654cc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentNotebook.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs index 8d6589d4fc1..4374239bbf9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPageParentSection.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs index 3befdb6b3a4..fb3c788504d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs index 70ad6ac68db..eaf75c72904 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionPage_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs index 81d8d554c03..f915f8b3e00 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs index 0c9dfa0b385..c806a35025f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSectionParentSectionGroup.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_Get.g.cs index 9acef2f60dd..330d0452715 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_List.g.cs index 80d5985f027..23ab0924739 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroupSection_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_Get.g.cs index 51ba0f18d44..ef9807e8eae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_List.g.cs index 4644d8b35b5..2892798a428 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionGroup_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage.g.cs index a0fd846fa28..a3765ae3170 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs index 5fe060d4fb7..2f35621a4e4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageCount.g.cs index 1632f2912af..ad571201580 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentNotebook.g.cs index 0629ef39e31..e2a438f89d8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentSection.g.cs index ba451e2922b..b0c0655af6b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPageParentSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_Get.g.cs index 8e191be2e63..a692ee1e676 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_List.g.cs index 01c1724191c..cc878e350ae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionPage_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentNotebook.g.cs index d6edf4c7e8b..7e8853a6643 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentSectionGroup.g.cs index e81d8284772..38734fee573 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSectionParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_Get.g.cs index 5b7edf0dd2c..2ff24ba22f6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_List.g.cs index 4b734e3868b..8c041e2f1c0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebookSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_Get.g.cs index 1d1ff138d26..fdafcb14bc0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_List.g.cs index 59cb36dd1ff..99df91d3e98 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteNotebook_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation.g.cs index dd5df177958..e0398d7cd71 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteOperationId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperationCount.g.cs index 4134d370c0c..af069d4ebda 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperationCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_Get.g.cs index d172a67c792..76367a00b06 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_List.g.cs index 101df5d31d5..cdbdee0b6a5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteOperation_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage.g.cs index 315ea149457..79767828560 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageContent.g.cs index fe6a060f8e8..53824d6842f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageCount.g.cs index 4d223b27833..a29467676fc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentNotebook.g.cs index b5eae36b75e..88797d7f572 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentSection.g.cs index 988733de66e..109391100d8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePageParentSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_Get.g.cs index 899be9e1d5f..77a731f5632 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_List.g.cs index 481d9921246..d0bc5067fbd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenotePage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource.g.cs index a58a6b8da50..ef7247c202e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteResourceId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceContent.g.cs index c457b5187e6..aff1eb7cae5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceCount.g.cs index cc2f27e111e..325d46fd38a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResourceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_Get.g.cs index 0009b36b12b..342cb848287 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_List.g.cs index c45542c5db9..4b03ae4b5ae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteResource_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection.g.cs index 3d3675573eb..4b3199582bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionCount.g.cs index 9a08ca02cf6..48843fb125e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup.g.cs index 99ae61e4f9a..3850de2d4b4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SectionGroupId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupCount.g.cs index a00c1fc22fc..4911c0e646f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentNotebook.g.cs index 10bac77f555..f5c47878aea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentSectionGroup.g.cs index a626998673d..a94e61e47da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection.g.cs index 0f45f31c542..0a8bab4eb71 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenoteSectionId : SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionCount.g.cs index 841f089de64..ef83cd1e5fb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage.g.cs index d98dbc26652..d51949cffa1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs index a6907cee1bd..44ebc4a1397 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageCount.g.cs index e3b75870cad..673cb2a46df 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs index cc5520a6a03..0aa7ad0dfe1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentNotebook.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentSection.g.cs index 8b5d5a765d6..db9fe0c1b5e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPageParentSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_Get.g.cs index fbb245477ae..6ee6ccf56bb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_List.g.cs index e76fd973bdb..0e405ddddb6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionPage_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentNotebook.g.cs index 7e5de65d7a9..a92cb412136 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs index a7447d33c5e..e73a7d938e8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSectionParentSectionGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_Get.g.cs index ab5ef117c8f..0d57e8d188f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_List.g.cs index 41c54c54807..1ea9fe60771 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroupSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_Get.g.cs index 58ce5bbaeee..aebdcb86279 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_List.g.cs index cfdecf276d7..f881a25e61d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionGroup_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage.g.cs index 7d8419fc804..90e315b49a8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OnenotePageId : OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageContent.g.cs index e335b78f2b6..14186bf0b12 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageCount.g.cs index 05a9423eee0..473077efacb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentNotebook.g.cs index 796c1551f41..6b67f33362f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentNotebook.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentSection.g.cs index e08750d66b8..7571bb8ac3d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPageParentSection.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_Get.g.cs index e5bab52a53f..f1227a6c816 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_List.g.cs index 435ee6931fd..f1bc48ad7d6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionPage_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentNotebook.g.cs index 0ef17f43848..0ac230c972a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentNotebook.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentSectionGroup.g.cs index c8134fa5dfd..bca8f8f8db5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSectionParentSectionGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_Get.g.cs index f13e5059bcb..6716fdbe94b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_List.g.cs index 24b7b27c4f8..f22b07692e4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOnenoteSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation.g.cs index cd2e645843f..135895b9ddf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperationCount.g.cs index 6cf4954edf3..fe088647867 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperationCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_Get.g.cs index a106295901e..92167fe70ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_List.g.cs index 52d3135741c..5bc26e5b66f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteOperation_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage.g.cs index 016e19efa8f..d2275876d69 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BaseSitePageId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage.g.cs index 946f33d1b64..640f1a12767 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BaseSitePageId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayout.g.cs index 166f5d34717..8890951496f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayout.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index c71ee854544..57f9d9ea789 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HorizontalSectionId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index 983bf5b4aa6..611575b2103 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HorizontalSectionColumnId : HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs index af37c084115..46c4dd9461d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index e2888c8ff2c..8b3b6347401 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs index 6b466d1e9b9..dd9d37ceeb9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs index 97c2d9f33f2..4b60cafc0eb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs index cba064770bd..dff9a4cb955 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs index d8b92339de2..26c6076824f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs index a542c527f13..46892d2084c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs index 4de01154c24..0b8f18edea0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs index 706f1307f94..e596906087e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs index 95a03492024..2382d482905 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index c068f1cb88d..ff7fa1c6901 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index e5169df79c9..c7797e02f01 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs index cc88ab3253d..a19462ed43e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs index 1eec4f71c5f..8f0c513eb2b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs index 1f8163a1375..8dea30520c2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUser.g.cs index a20bc06dcfd..fdca6c97686 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs index 96efa7d8225..f26eaa3433c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs index 4a742144549..0115f35f001 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs index 103d9f8871b..19aa09c2195 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUser.g.cs index 26002f0190f..0c54d402aeb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs index 96fafadd9d8..99a39e0f6bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs index f9777d7549a..5a64eba1a87 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs index 46d1bb2d231..610acf990f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart.g.cs index b67f52dfc44..acdc3e3ccb5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPartCount.g.cs index 0ad04f28dfd..5f49f006c2b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPartCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_Get.g.cs index 01c36e1c538..1352ac250f2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_List.g.cs index 1d65e7fcfc9..f5f485f8b58 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePageWebPart_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_Get.g.cs index 530d419fdc6..921a58ae32e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_List.g.cs index cb3d0ee4470..3887fa0f8ca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageAsSitePage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCount.g.cs index b811282c5a0..b24414adf12 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCountAsSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCountAsSitePage.g.cs index 08c79f28c00..c806c177b4c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCountAsSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCountAsSitePage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUser.g.cs index 146b6a29885..08f1d232d39 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserMailboxSetting.g.cs index 3a6c1b0ffca..50a8e9c14e0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningError.g.cs index 0eae77e8a21..0bf813d4d44 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningErrorCount.g.cs index b3ccd3ecbfc..01bd5b28793 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageCreatedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUser.g.cs index 08dd258979f..fd66e30a119 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs index 01ae082c91a..35404c442b9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningError.g.cs index 11e64d8d4da..1d227437cd0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs index ce910fb2d02..0bd1e1ba7ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_Get.g.cs index c624a30e6f8..d06033b9137 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_List.g.cs index 72da65c0dcf..571f28be07a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission.g.cs index 5e5b25b7e80..5afc5195b41 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermissionCount.g.cs index a0befe1f761..06af6b4c148 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermissionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_Get.g.cs index 5ed97cdcaf8..59d6e41b6ae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_List.g.cs index 9a0e3ad83aa..6dde6f1715c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSitePermission_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStore.g.cs index 7c873472b43..2d8bebba9ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStore.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreCount.g.cs index f33a2d96adc..10181babd60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup.g.cs index 9628b50645a..f69d2a77ac0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupId1 : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupCount.g.cs index 8cf83576d6a..b62748165ed 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet.g.cs index ee444fe631f..38e344592c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId : GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild.g.cs index ccda814442b..2cfd1a4cfda 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildCount.g.cs index 90068b5fe20..095439947be 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation.g.cs index b0f33043684..a63f79222e4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationCount.g.cs index b616cdc5dc6..2086851aac8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationCount.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationFromTerm.g.cs index 8aaddf09140..9056bfc1490 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationFromTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationSet.g.cs index cfc1b73a8d3..16ae2e39d32 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationSet.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationToTerm.g.cs index 9ac6dd0faca..59ada8e8cb3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelationToTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_Get.g.cs index c13305a54bb..e894ca8853c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_Get.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_List.g.cs index ebfd66d7580..c10e451b2fb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildRelation_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildSet.g.cs index 212410bb2ef..c706520366d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChildSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_Get.g.cs index e55b1dc7d90..f8feb228207 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_List.g.cs index e2953d7455a..446e6ec014e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetChild_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetCount.g.cs index af919541041..828092b10fd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetParentGroup.g.cs index 7c9f97fcf3e..1df56e7715c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetParentGroup.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation.g.cs index 1aba468e7b2..61fb05a50a1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationCount.g.cs index 6dc852a18a4..fbc366d7234 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationFromTerm.g.cs index b9fe9a01762..a4f24f14bb0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationSet.g.cs index f50fe919eb3..2706384b8c4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationToTerm.g.cs index 6d9533b3a81..5967353d78d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_Get.g.cs index 8ab8b7d04e2..7cf12635714 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_List.g.cs index 422c57c5d4d..95064e414db 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm.g.cs index c88f295afc5..1660bbe922e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild.g.cs index 2ef718433bc..e2c0d793650 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildCount.g.cs index 1e12e880db4..0275c312c88 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs index 304d7185c2a..e630162f0e5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationCount.g.cs index 0fe747fb73a..d5658bdcd69 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationCount.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs index 381a1ba945f..0c2544598ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationSet.g.cs index e772c33d2f2..f208e913083 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationSet.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationToTerm.g.cs index c049f005840..e0eb0fb909b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelationToTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_Get.g.cs index 690277b9651..a16e34068ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_Get.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_List.g.cs index df8d0eca992..ce44efacb59 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildRelation_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildSet.g.cs index bb50e209290..512baa0a275 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChildSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_Get.g.cs index 0994afb5666..33e5861318f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_List.g.cs index 79175a00e60..89672b84b93 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermChild_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermCount.g.cs index bccdcaf51bd..a6d293a3fe4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation.g.cs index 38f872ba91d..377d11d3c49 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationCount.g.cs index 28af60cc505..8dfedd568b1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationFromTerm.g.cs index 582da97ad64..4232dc311c9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationSet.g.cs index e1094d9d16f..3b75d8ef273 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationToTerm.g.cs index 714123f1c9c..d3874fd71ea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_Get.g.cs index 5013e392251..dea72921fc1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_List.g.cs index add4c0b566f..249d82dd5e6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermSet.g.cs index 5fdac5fa18c..5ca298199ea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTermSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_Get.g.cs index 4e89040f40a..385e2ce46e1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_List.g.cs index 54dfb6ff145..54c145cb189 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSetTerm_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_Get.g.cs index c0dc315623e..600f04efd09 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_List.g.cs index 7ee9f304ffc..68a1409cc63 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroupSet_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_Get.g.cs index 41eac18aa64..33a9c05855e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_List.g.cs index e0863563e2c..7be75918b6e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreGroup_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet.g.cs index d8f0ca57a90..7fefe351704 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild.g.cs index 3479115cf05..9aa0486a73e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildCount.g.cs index 413830aa157..d7ff7666509 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation.g.cs index 756cc176f2a..e509302c0f0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationCount.g.cs index e3cc2b994ee..a79712225f5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationFromTerm.g.cs index bd077737ed4..3452a4bd789 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationSet.g.cs index f653ca34221..54d7d829e6c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationToTerm.g.cs index 6fb5fea8b58..0f7b3b384da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_Get.g.cs index 8f5666181e0..797ffff70d2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_List.g.cs index 52d20b6b554..15b6df2b452 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildSet.g.cs index 86dbacc0921..ad2c4df1849 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_Get.g.cs index ab83527e98c..1808887e764 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_List.g.cs index fb7e63ed249..97a834acd6d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetChild_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetCount.g.cs index 0ebca675e38..81083ad3f95 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroup.g.cs index 5535b53d307..ac007557613 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet.g.cs index b02554bbe88..3318fc1a99a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId1 : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild.g.cs index 616bcbc9fea..bd18bed378d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildCount.g.cs index f84ffa2ea52..56b9b2d1e76 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs index 344b9880986..cdeeab286b6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationCount.g.cs index 258c1b62a2b..8bb16742cc4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationCount.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs index ef0533e62a4..5bce0f54d71 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationSet.g.cs index 5a7dde5d245..97af8d2f812 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationSet.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs index c28862e7a06..c316bf64282 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs index 7a7d1ca82f3..00f3d072b28 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_List.g.cs index 2915c7bcb82..495cd7f0e83 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildRelation_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildSet.g.cs index d3854ebb629..74875f022da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChildSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_Get.g.cs index 40f16e56069..d149c527523 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_List.g.cs index a5b6087529f..a0ec4a0e0ad 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetChild_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetCount.g.cs index 4da50d870ec..2ab308cf82c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs index fb1f32de228..9148acc1190 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationCount.g.cs index 7ce7fd52ca7..2d74994f367 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs index a42032cd183..de03611c948 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationSet.g.cs index 5799dc3d163..35da3fe1856 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationToTerm.g.cs index 798b7abdb5e..dc6f51450b1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_Get.g.cs index 06b69bfe6d9..968fbc61ef3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_List.g.cs index ffbffbed93e..693e37bfca3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs index 7f8338dc605..93860989bf1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs index 88d2e347e05..9cb9450840b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildCount.g.cs index 6644fa944db..7a86b599f8b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 14ec28f95df..f6d8315c5c7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs index fc25b5bcb9b..5a01a10f1ef 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs index 839196da190..0ee3503c195 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs index f0c0dfb79f4..625839ae28a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs index 039627b3567..eba9bd96072 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs index b41a96a59c7..0090051b675 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs index 40087607ca9..cb7a5aaba5c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildSet.g.cs index 455a584bdd5..adb0e6bfe91 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChildSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_Get.g.cs index e26c97c1210..78601c5eaf4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_List.g.cs index 5109cb8cc11..e7f54415963 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermChild_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermCount.g.cs index ad67425b6db..96da222fb0d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs index 371ee3af393..23d5511f70b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationCount.g.cs index 3bff9d900cf..95cd5b56d3a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs index 940eb1ce73f..843e474e715 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationSet.g.cs index d444fc77e41..9af0fb8773e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs index a2e418d121e..3a6356409d0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs index 66237cacfd9..c725a8d014c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_List.g.cs index ffac4712d12..a10c532c563 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermSet.g.cs index cb49bfd28e4..ed899d54900 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTermSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_Get.g.cs index ed9b2e07f2e..0f9d4db71e0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_List.g.cs index dfcf15be490..605837dc626 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSetTerm_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_Get.g.cs index dd8a8a4dc6e..3988007f5f3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_List.g.cs index e3dd482036e..4ec699cc779 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetParentGroupSet_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation.g.cs index 6bd0f72fc3c..e0bcf574d7a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationCount.g.cs index 478f83d6d0f..8a2c9d9f03d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationFromTerm.g.cs index 5e051f62e14..1d1ac649665 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationFromTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationSet.g.cs index 97f8f4534a5..cb0ae42f628 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationToTerm.g.cs index 4e28c32ea4b..e2fc2f9595e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelationToTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_Get.g.cs index a0774dce4e4..c42e517321e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_List.g.cs index d47025be79f..5d4440e33fc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetRelation_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm.g.cs index aea0173230b..86b0ded204a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild.g.cs index b6cef5b78d6..095c8d9a216 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildCount.g.cs index 5f10947b56f..90bdbfb8028 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation.g.cs index bc91db59855..dbcc588021f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationCount.g.cs index 237aaf99fc8..79cebcf5824 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationFromTerm.g.cs index 9a8a2f3a183..f0a37b7078b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationSet.g.cs index 84136b25514..2aa84e71fd9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationToTerm.g.cs index 22090d4c101..534d52c11fc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_Get.g.cs index 07c7166b65c..db57993e293 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_List.g.cs index 056307022e8..58ac5c3766d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildSet.g.cs index ec016cae98d..5ae309d0894 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_Get.g.cs index 86f7348bd50..0e663fdf3ce 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_List.g.cs index 9ba870ad210..0f00f135562 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermChild_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermCount.g.cs index 29bd1b189bf..0398ab4691c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation.g.cs index 16d1f088ddb..78d7c720b35 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationCount.g.cs index 6824b7df360..dacbad5dc5e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationFromTerm.g.cs index 2db435df675..dae87888e29 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationSet.g.cs index b829d137251..8c6f1250d2c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationToTerm.g.cs index 1d1010cb017..2a0d3fd0112 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_Get.g.cs index 258eee96542..2017d69311c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_List.g.cs index 9aad999dbb8..a414089353c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermSet.g.cs index 538fcdcb7e2..c8c269bcb7b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTermSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_Get.g.cs index 60d24fbeae3..4074a0642fd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_List.g.cs index 743b15af662..f5d70561294 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSetTerm_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_Get.g.cs index 18794181235..89b901911e1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_List.g.cs index ebaf608be7e..8a3bce47d40 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSiteTermStoreSet_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_Get.g.cs index bb0cabdedf7..ef9e361af03 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_List.g.cs index f085d41c24c..b49f32dd555 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSite_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite.g.cs index 3737bce1247..94fd155c129 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteId1 : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSiteCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSiteCount.g.cs index e7e04c369d4..f75e63ef2c2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSiteCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSiteCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_Get.g.cs index 28a5a7a0053..5e37d7e8407 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_List.g.cs index da648c3c621..c94a45bcdf0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgGroupSubSite_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite.g.cs index 703fc41e5af..f2da62cec62 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteId : null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteActivityByInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteActivityByInterval.g.cs index 31e7ed1cb4a..3a94644ef21 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteActivityByInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteActivityByInterval.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalytic.g.cs index 3bb54412241..7478d262174 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalytic.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat.g.cs index 0c4f63b16df..ddf717a3ed5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityStatId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity.g.cs index 7b4d1f2d4cf..bd03d5ab4b2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ItemActivityId : ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityCount.g.cs index bd7cb2f7fc8..606d11e7f9a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItem.g.cs index a705d207189..62769565365 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItem.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs index 320ce90417f..3c97bcb5a16 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_Get.g.cs index abe4aa92f25..236da18e22f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_List.g.cs index 3ff1b0b072a..4aa490e73cc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatActivity_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatCount.g.cs index 68c1d77f506..51b5660f2a4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStatCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_Get.g.cs index ca6ec505938..f98fee53533 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_List.g.cs index 3ab4f67b7dc..9d2cf2a2854 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticItemActivityStat_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticLastSevenDay.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticLastSevenDay.g.cs index b7c80aa7480..8e622795b23 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticLastSevenDay.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticLastSevenDay.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticTime.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticTime.g.cs index 659c5ff691c..48eb60579ee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticTime.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteAnalyticTime.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn.g.cs index cf4341a1664..2e55aa7f7d0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnCount.g.cs index 8e28e69f799..4f13ab24217 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnSourceColumn.g.cs index 547b236728b..a8b95d146e3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumnSourceColumn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_Get.g.cs index 3f6bee7fffa..48d9132894e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_List.g.cs index 53cdbbac9d3..dc55f01eb7e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteColumn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType.g.cs index e7ca9c69512..9a9fb7da1e3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBase.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBase.g.cs index 6c2dedaf7f2..298ca151e5b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBase.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBase.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType.g.cs index 2bbb004e79d..68072dc7b3b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId1 : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseTypeCount.g.cs index 5b086b59b54..9dad68510c1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseTypeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_Get.g.cs index d81bb925893..b1fe17daa91 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_List.g.cs index 379b078e6aa..74b550ef50a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeBaseType_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn.g.cs index b0d76552ef8..d9950eba738 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnCount.g.cs index 9a889033132..d089ebc23c6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink.g.cs index 85429819aef..601fc402a6e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLinkCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLinkCount.g.cs index a8860a0ea53..8ca538a9629 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLinkCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLinkCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_Get.g.cs index 7f21d5a05de..629fdb275a9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_List.g.cs index cfd1fcf45e2..c7fa8715840 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnLink_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition.g.cs index 295ea82fd8f..0a048e15387 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPositionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPositionCount.g.cs index fa556830795..182fa35602c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPositionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPositionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_Get.g.cs index 3156da061c1..9ca14107e46 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_List.g.cs index d18740f69cf..eeeaeaa0d24 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnPosition_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnSourceColumn.g.cs index 5f700069822..71d0ac2d7c4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumnSourceColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_Get.g.cs index b3aa774e1fd..1df601643c6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_List.g.cs index 42f61076c69..6c96578a88c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCompatibleHubContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCompatibleHubContentType.g.cs index abde21a88f5..66d1937afbf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCompatibleHubContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCompatibleHubContentType.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCount.g.cs index 00cea4675bc..dedb54398d1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentTypeCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_Get.g.cs index 569e9030d2c..4421164f674 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_List.g.cs index 48a63beca2e..4ab1eafd5a3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteContentType_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteCount.g.cs index b657368427c..385b9e60fc9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDefaultDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDefaultDrive.g.cs index 4228151c7d0..ddd6d0ef30b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDefaultDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDefaultDrive.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDelta.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDelta.g.cs index 747ffc9314a..d106d8c25ed 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDelta.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive.g.cs index 22acc9ef335..646f305d124 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DriveId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDriveCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDriveCount.g.cs index 9dd2ed215d6..f9f011ef608 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDriveCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDriveCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_Get.g.cs index 8c5950d55e9..3b776b4955f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DriveId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_List.g.cs index 62d662cb2b6..6600e940a22 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteDrive_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn.g.cs index a41dfc80ac8..87bfe87ef8f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumnCount.g.cs index a58814a01f3..51c5b2447be 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumnCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_Get.g.cs index 8c4e8794402..38bcf3c1e55 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_List.g.cs index 45da9b72f34..da3dd62d252 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteExternalColumn_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 3be6e9841c1..cfc0fe2bfeb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetApplicableContentTypesForListWithListId.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetApplicableContentTypesForListWithListId.g.cs index fd92b59b26d..dbb89802ba8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetApplicableContentTypesForListWithListId.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetApplicableContentTypesForListWithListId.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetByPathWithPath.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetByPathWithPath.g.cs index 11b439bb269..d8131b3b2f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetByPathWithPath.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteGetByPathWithPath.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUser.g.cs index c5b8a030c8c..36797c30192 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserMailboxSetting.g.cs index 77834c65315..9e309e2e747 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningError.g.cs index 5a460c56ab4..45af0544288 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs index 2eda7fbf5dd..e229050305b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteItemLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUser.g.cs index 96dbd588705..2f803ba87d6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserMailboxSetting.g.cs index 7f626f033c5..d0d9eeb4851 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningError.g.cs index 818a178124a..0529b3ebd26 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs index 018ade00433..3fca2e56be5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList.g.cs index 89cf3cb642b..368a7a436dd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn.g.cs index 353c9b8882b..daf4d22f2b7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnCount.g.cs index b77b5bfcbf5..4827d38fd1c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnSourceColumn.g.cs index d762f5d6488..afe5141f876 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumnSourceColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_Get.g.cs index b9360537339..196aef6148c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_List.g.cs index 92ba2504f11..582a0385f38 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListColumn_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType.g.cs index 1369522086b..db54389009a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ContentTypeId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn.g.cs index a0a1972951f..4b8596c3fa7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnCount.g.cs index 98d6669bf24..9b32984c044 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink.g.cs index 62bcafd3721..fa171c53a9d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnLinkId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLinkCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLinkCount.g.cs index 2afebcc661f..7b326bc29ad 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLinkCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLinkCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_Get.g.cs index 3458b608438..58a3aed58e3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_List.g.cs index f2f2f3fe6bc..dc355783766 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnLink_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition.g.cs index 75a2902b713..0c920bbcc57 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ColumnDefinitionId : ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPositionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPositionCount.g.cs index 82494049ddb..6d4775f093b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPositionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPositionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_Get.g.cs index e0f115b198f..4dc777baf3c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_List.g.cs index 607430e2dbf..a005af46f9c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnPosition_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnSourceColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnSourceColumn.g.cs index 533a77b512f..4140ab50ab9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnSourceColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumnSourceColumn.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_Get.g.cs index 88f55c760e8..9d09782806c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_List.g.cs index 51ddb784d85..001ca3fcc82 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeColumn_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCompatibleHubContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCompatibleHubContentType.g.cs index de3fc30dede..77f98a8d6c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCompatibleHubContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCompatibleHubContentType.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCount.g.cs index af28b67f922..fae76922224 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentTypeCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_Get.g.cs index 646329a9539..483c02ba511 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_List.g.cs index d2f4f520ab6..011c796e23e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListContentType_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCount.g.cs index d7bac272723..e54e40476b7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUser.g.cs index 599bb909d0e..6a25bb680fa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserMailboxSetting.g.cs index 118d3e374d6..190dd896d2f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningError.g.cs index 6dd6a0dde85..36f26b5e5ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningErrorCount.g.cs index a501afa104c..f673a6b485b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListDrive.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListDrive.g.cs index 1b3bea5ed37..ab77810f9e9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListDrive.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListDrive.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem.g.cs index 91a4ba8c673..c74cbc9287b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemActivityByInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemActivityByInterval.g.cs index 14e1e57dcdc..190b393a5c3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemActivityByInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemActivityByInterval.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemAnalytic.g.cs index 665759f17c4..98bc01d638d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemAnalytic.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUser.g.cs index f45d3734d90..bbbd27458f3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUser.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserMailboxSetting.g.cs index 36f48c979bc..20487c269ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserMailboxSetting.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningError.g.cs index 65be271bb17..190acd807c2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningError.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs index 68dd55ee8ba..b83d0e2996b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemCreatedByUserServiceProvisioningErrorCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDelta.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDelta.g.cs index 68ab1491e17..4e7a58b1f13 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDelta.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion.g.cs index f9e2b4ddffb..5f936cd0b92 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DocumentSetVersionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionCount.g.cs index 720c3e42403..93478621d4e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionField.g.cs index 255de624b52..d34722e9951 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersionField.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_Get.g.cs index 0427e6061bd..61fd3e6ef29 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_List.g.cs index 26d6e20f4d0..8dd358971ed 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDocumentSetVersion_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItem.g.cs index ca5f5a09861..7840d301274 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItem.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItemContent.g.cs index 94d8b70385c..142693c2bd2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemDriveItemContent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemField.g.cs index c05f0d72eaf..b170d044a06 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs index 1b82237c35b..e6bbb15999a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemGetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithInterval.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission.g.cs index dc5678a4f90..3097b40557e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermissionCount.g.cs index 0d0e601d36a..76dc1466857 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermissionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_Get.g.cs index 3ed10ceb833..c77c2f5a2ab 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_List.g.cs index a5e622c530d..3a98c1b3710 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemPermission_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion.g.cs index f3a499b08a2..9e22c6865de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ListItemVersionId : ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionCount.g.cs index fe3231cb08f..e16d4794cc1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionField.g.cs index e3f4f0e0021..92fe61ed2de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersionField.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_Get.g.cs index 7f18792bbcd..b4941cddccf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_List.g.cs index 826ff3ddc36..306b983ced0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItemVersion_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_Get.g.cs index 55eb302ca52..9ea14ad8b29 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_List.g.cs index fe3d1190ac5..7396b398be2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListItem_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation.g.cs index b660aa0d99a..cd165a3fa30 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperationCount.g.cs index 60dabe70049..dcb1cb35a5d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperationCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_Get.g.cs index baef8051d28..0d97c8aeff2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_List.g.cs index c8cab596d44..ccc5f12065d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListOperation_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission.g.cs index 9bd80e3096a..23c381f8db6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermissionCount.g.cs index a1f8d415fb0..253a2e154c2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermissionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_Get.g.cs index c1f7774619f..48f484441a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_List.g.cs index fc5b1901dae..fe392245e01 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListPermission_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription.g.cs index 2b3ae8de207..626573fe1af 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SubscriptionId : ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscriptionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscriptionCount.g.cs index c5466dcce32..f209e7d3059 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscriptionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscriptionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_Get.g.cs index 5676ebc0e78..a04d79d97d3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_List.g.cs index 6e81843bbcc..684102e2431 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteListSubscription_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_Get.g.cs index c1a547559f4..20c51c12acf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_List.g.cs index 0c43d047d33..2fe2a8868c0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteList_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation.g.cs index e3a19ed40a2..f7aee51396e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RichLongRunningOperationId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperationCount.g.cs index 6cb34eef9b2..d07d8e972ac 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_Get.g.cs index 1750780839f..69957ab840c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_List.g.cs index ef7c292a5bb..1f19aba9beb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage.g.cs index c637c8daa47..6a3c1301f44 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BaseSitePageId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage.g.cs index 8a49dcf943c..9bf57d6c88d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? BaseSitePageId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayout.g.cs index 775d6ef7e4e..733e60150ee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayout.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index 5c0d55694c0..8d17b25536b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HorizontalSectionId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index 4757f9eabba..c9f341cbc08 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? HorizontalSectionColumnId : HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs index 0daf50c2fcf..6b33a940626 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index aaa7e8fa37d..76cc511cacf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs index 2fe11953e65..4ca255f5dfb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs index 82619ee29b5..93c73ab4fdf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs index 0adbe1c033b..c1591b3f98d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs index 2561256a564..0679208ec40 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs index ffe0744267c..087176b8c13 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs index 643f3c44142..027d46b1844 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSectionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs index 9eca6ef20fb..4548a7fe480 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs index b68faecfbeb..277d807a927 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutHorizontalSection_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index a0e77d75e94..bb6a360f883 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index c7e7ff1a48f..a7dded4e7f2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs index a59b1c7ab8d..66ad5da48b5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs index e06b8d1b5c2..1feac750eb7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs index 0f42b09490f..81a9cddaf60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUser.g.cs index 023372cec01..4d55804dacd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs index 7314597f4da..327e0e0407d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs index 97cab1260ae..f6243926f7e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs index 96628f3eaad..a7dbdc6d5e1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUser.g.cs index 142ace5a8a8..77b949a2774 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs index 0b81f6c5754..066aac575ae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs index 9cb711a9417..11320a5d15d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs index d066387f5a3..1f00d6fa2cd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart.g.cs index dfc300ee5a9..5c9006d3bc8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WebPartId : BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPartCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPartCount.g.cs index 77171590eea..f0252b100d8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPartCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPartCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_Get.g.cs index 3221bd013a0..e7f9841b5ea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_List.g.cs index e7bbf712609..0a1ebe24955 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePageWebPart_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_Get.g.cs index 05ef2c0974f..c3219700f25 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_List.g.cs index 8a74cfcb3cd..4f4220af2d1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageAsSitePage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCount.g.cs index 1f63a800df3..203011e9d0c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCountAsSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCountAsSitePage.g.cs index 8e513de37fd..dff9466798b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCountAsSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCountAsSitePage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUser.g.cs index 058efde59ff..444e8e63f9e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserMailboxSetting.g.cs index 4092bd77071..257b102de0f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningError.g.cs index fd1b806b1ce..363196bf825 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningErrorCount.g.cs index bf90402fa48..4507085cb88 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageCreatedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUser.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUser.g.cs index e8c7c71d4f2..3ac91c4c68d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUser.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUser.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserMailboxSetting.g.cs index 05cf5032212..ce8ae5e4e40 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserMailboxSetting.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningError.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningError.g.cs index 4dcf922ef92..f18b5f9291c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningError.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningError.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs index 9b62118d25f..a48dada8715 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePageLastModifiedByUserServiceProvisioningErrorCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_Get.g.cs index 14ab2aef9dd..826de175261 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_List.g.cs index 59e83a995f9..73a5ad51951 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission.g.cs index 716ba7a461b..1a31cc69571 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PermissionId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermissionCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermissionCount.g.cs index e8ab097709e..cd23348b618 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermissionCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermissionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_Get.g.cs index 50513faece5..2a1d396b0d7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_List.g.cs index 11826f735b7..63d484b3d88 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSitePermission_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStore.g.cs index 436d16d0494..cd3958331df 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStore.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreCount.g.cs index 07626273acf..8fbe03e1c2f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup.g.cs index 9aec4a9a346..8510f49b87b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? GroupId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupCount.g.cs index 2395189c229..e7cbd100c07 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet.g.cs index 4c73623d47f..cebb647bfbf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId : GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild.g.cs index da48f210886..27bb8a9ab9d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildCount.g.cs index 29587b86c29..661e23eb1b0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation.g.cs index 392ae88208c..263d155a011 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationCount.g.cs index a4e8f47e64e..b21af0aa281 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationFromTerm.g.cs index 6d3f0ece4bb..fcefb1d4983 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationSet.g.cs index b5faad1cbcb..c5b3616f816 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationToTerm.g.cs index 608026018c4..d28c7397f12 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_Get.g.cs index 48c1f3fc6f4..9b7c8f862c8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_List.g.cs index 3b6956e887e..cd40bf9f21e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildSet.g.cs index 33f72ad1094..9f24ee57fc7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_Get.g.cs index 6c8b49012d2..aa4b069dc98 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_List.g.cs index fe89d07ad48..a7ce5774136 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetChild_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetCount.g.cs index b81aa488a4e..c3f579bb807 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetParentGroup.g.cs index 61af12e34d8..b44a46a5a8e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetParentGroup.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation.g.cs index e717ad264da..6b3724a0759 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationCount.g.cs index 70bd5976e3a..c39aaab29ca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationFromTerm.g.cs index 32a76f26a08..8d3f727b383 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationFromTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationSet.g.cs index f7efefafac0..1a7b6ea4d05 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationToTerm.g.cs index ae58904eb7f..1873c93f9b8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelationToTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_Get.g.cs index a606b98cde8..5c130b0846b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_List.g.cs index 4ed65e58587..b2235f958e3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetRelation_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm.g.cs index 233ed2d98bd..1fdccd01c73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild.g.cs index fc505c87f91..085ce47c2c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildCount.g.cs index 99edb2e328b..1624ec10d02 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation.g.cs index ace1880fa5e..a80d6499d29 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationCount.g.cs index 3d93948267b..068bfb0fd2a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs index 375f135b5e4..0ba503d150a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationSet.g.cs index fc5bc29db27..93936cfe4e5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationToTerm.g.cs index a5471dfd72b..e4c437035a0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_Get.g.cs index b24e2fa4f93..137e3c38975 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_List.g.cs index 97057a48ae1..30e4ecfddca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildSet.g.cs index 43cbf6e1eb7..b8b2b141a7c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_Get.g.cs index 8d99e2397ba..2a4981447dd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_List.g.cs index d85e19cb737..0460d0f3a6f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermChild_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermCount.g.cs index 80f2cc51eb2..42362261e28 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation.g.cs index d366a1e11b3..526272279a8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationCount.g.cs index 57fb9fad5b6..839bc672597 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationFromTerm.g.cs index b6c37b921f6..7b5e5a57215 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationSet.g.cs index 2b238ce24ef..58a715c9a52 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationToTerm.g.cs index de73c8c7be7..f07556e34c7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_Get.g.cs index edb2e864ca3..bc73c8ad086 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_List.g.cs index 24e3c766762..1565b07f2bd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermSet.g.cs index fdfbb1baeb6..21791a9f5cf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTermSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_Get.g.cs index 71472a43283..2f751da0354 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_List.g.cs index f8811f4ab5d..1ca27a0f987 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSetTerm_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_Get.g.cs index aca235c7025..445bb468f03 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_List.g.cs index fb987646c5b..023b3b02bcf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroupSet_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_Get.g.cs index f489af92ad0..c7925e30ce3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_List.g.cs index 425f2381d86..60b8387cce9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet.g.cs index b2e0fdacb28..acf0556adc1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild.g.cs index adbb705863d..a9a9080d8d5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildCount.g.cs index 70f8db3418b..097cec4349f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation.g.cs index 423f8d34e8e..0d1fb50711a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationCount.g.cs index b9f261df646..cda9759c303 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationFromTerm.g.cs index b7e62210414..36d727c7050 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationSet.g.cs index 70be69f3977..f457e94d2a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationToTerm.g.cs index d52982ced9e..dc6c668937f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_Get.g.cs index f83c2c3e507..e429416ca9f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_List.g.cs index 722651382e6..08c11647369 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildSet.g.cs index 3de250ecf8c..81bd7fd7f99 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChildSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_Get.g.cs index af73035eb5b..b92c5ecd4c6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_List.g.cs index 2c4327fd263..093fc1949b6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetChild_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetCount.g.cs index 3fbfff4d35a..68fb3f67fbf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroup.g.cs index 0188afed9de..9b27e40e92a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet.g.cs index c3617c50182..5a85708405c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SetId1 : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild.g.cs index f0e1ef733ca..526d2066c13 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildCount.g.cs index 1bdeea30be0..effe12ea722 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation.g.cs index dfd85c16af1..2fd6a46f6d6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationCount.g.cs index 1c7abb85178..03bbdce1aa5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs index bc091bbeeea..9aba6e00e87 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationSet.g.cs index ce466320c7b..08f0a3640cc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs index 14900f50db4..88860f6927f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs index 32cb0154238..0d8b97f6dfd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_List.g.cs index 77b50466095..b1e6648c7b8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildSet.g.cs index 246dccfe5da..84e4b35ba22 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_Get.g.cs index 030ded450be..69618d57240 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_List.g.cs index dee1fb4bab9..dfba64cabda 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetChild_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetCount.g.cs index 85fba79c917..f6716f424f7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation.g.cs index d4e476b13d3..75a5d6447a4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationCount.g.cs index ee8ea058ec7..993fd9301da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs index d8a59074586..6240598334e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationFromTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationSet.g.cs index fa38ae82a13..1192778d1e1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationToTerm.g.cs index edf66c5137f..bf085262828 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelationToTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_Get.g.cs index 7a5a05980d9..9bfcec4c583 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_List.g.cs index 3522740cdf0..147b4e63bf3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetRelation_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm.g.cs index b2387268f43..185de698e34 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild.g.cs index 149e3e7c319..03779beec0c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildCount.g.cs index e3dc4991fcf..63f690dfae7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 5422b6329cb..cce866a8834 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs index d5a02930804..2b7846c6517 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationCount.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs index 0a3c314d6a8..7710a85c014 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationFromTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs index 186090a3c92..d2bbc4f4788 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationSet.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs index 8d037012ca3..1b8020bd2f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelationToTerm.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs index a8b04a251c4..878c945731c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_Get.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs index 68993a3f9b7..1b6de81b18a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildRelation_List.g.cs @@ -124,7 +124,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -140,7 +140,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildSet.g.cs index fed67753c22..43ce6cf963d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChildSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_Get.g.cs index ad7155f08f4..110f1a9e149 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_List.g.cs index 2cf729a8641..8f805397c9e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermChild_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermCount.g.cs index ca11a085fe9..987dddcc898 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation.g.cs index b36820db610..ca55fd3f659 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationCount.g.cs index 5f49ce0fdb7..71db4addc73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs index 1f0a8f4ce81..32c81af3733 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationSet.g.cs index 3a73bb52052..5539f8395c1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs index e9de5c456ff..535188215c6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs index 4495b9e3159..cd871f925b3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_List.g.cs index 904c7f54a8b..b5875ab34fb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermSet.g.cs index fb5297070b7..0f2a6cc12bc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTermSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_Get.g.cs index f0b89ed306a..28704155443 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_List.g.cs index 821ad4a8fac..517d870a723 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSetTerm_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_Get.g.cs index 9c05c95865c..71723ae0f91 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_List.g.cs index a97da2075f3..19a9fe6df72 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetParentGroupSet_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation.g.cs index b6ce0efba0d..ea6f09377c9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationCount.g.cs index be086d730ff..b3e9e3cc380 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationFromTerm.g.cs index 221b2250e0d..e44eb15062c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationFromTerm.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationSet.g.cs index c47405fbdc4..d40cc28ce74 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationSet.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationToTerm.g.cs index 7d2b4b9c15f..be368d0640e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelationToTerm.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_Get.g.cs index 8b710fe5756..784465e20b9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_List.g.cs index a312a003323..a1140f718b4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetRelation_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm.g.cs index 1a81bbf8327..afecb23e953 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId : SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild.g.cs index 097caf77783..6380aa37060 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TermId1 : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildCount.g.cs index 1fcfc09bcf9..71e8b5cfc1d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation.g.cs index 8989f1b0ce3..c48ab5b75ef 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationCount.g.cs index a21abb5bc43..725c8cc0311 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationFromTerm.g.cs index 607d4c358f3..c2fa7e0d014 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationFromTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationSet.g.cs index 361d5188c6d..c8984863550 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationSet.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationToTerm.g.cs index 79ab9e1f7de..d3eb79ab7c0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelationToTerm.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_Get.g.cs index 31a96006e83..aa396f1d608 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_List.g.cs index f8b02009fc3..13280e32e26 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildRelation_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildSet.g.cs index 99d0a617819..2378b4452ff 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChildSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_Get.g.cs index 67510deb87e..d89e53c991f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_List.g.cs index 903df8571b4..43299beb692 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermChild_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermCount.g.cs index 1db5b99add6..ec1fffb7ad7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation.g.cs index a01bd9b7090..b4d6a33f83d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? RelationId : TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationCount.g.cs index 9f4c7d395bb..8167a4654d5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationFromTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationFromTerm.g.cs index b01fdb9b93f..fd25cf94ee2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationFromTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationFromTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationSet.g.cs index 032bb0a12c5..a1204297258 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationSet.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationToTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationToTerm.g.cs index db703841687..ab8cf3ced2a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationToTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelationToTerm.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_Get.g.cs index bc7847dcf7a..b7cac868f91 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_List.g.cs index ba21656a7cb..6d0b43a8290 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermRelation_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermSet.g.cs index 0a6506f0a6e..2705fa6fb09 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTermSet.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_Get.g.cs index 7e9dce9d4f8..69d2095c903 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_List.g.cs index e9607082568..f2988ad936a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSetTerm_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_Get.g.cs index 9d9eea67b2a..f217217f7c7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_List.g.cs index ae625baf855..7195948713e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSiteTermStoreSet_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_Get.g.cs index e6d44db7ac9..58762eb0e5f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_List.g.cs index c1d46358699..9c9a8f6a9dd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSite_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite.g.cs index 6a55a4d7abc..dc93f9ce002 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteId1 : SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSiteCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSiteCount.g.cs index 89a3403ec7a..464fcadceaa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSiteCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSiteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_Get.g.cs index 56dbde874ad..b62774b8b99 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_List.g.cs index 69bdf8cf2ac..37bd9c34da6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgSubSite_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite.g.cs index f53a07e0a66..ceca3b54c4e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SiteId : UserId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSiteCount.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSiteCount.g.cs index 425c4fefe57..4dece949e94 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSiteCount.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSiteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_Get.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_Get.g.cs index 49d7b51317e..bf6d9182815 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_Get.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_List.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_List.g.cs index 0f48cd3f508..c9e65c6c5c7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_List.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GetMgUserFollowedSite_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListItemPermission.g.cs index 5c08b8e4d17..50607011148 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListItemPermission.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListPermission.g.cs index c8e3cd1d497..5f14c53d368 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSiteListPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSitePermission.g.cs index f9e33906dc0..32539342353 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgGroupSitePermission.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListItemPermission.g.cs index 8a803e52c7c..277c92f6044 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListItemPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListPermission.g.cs index d9487eaa1c3..43e34dfdc77 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSiteListPermission.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSitePermission.g.cs index c05741b1e90..243bbc7b828 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/GrantMgSitePermission.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs index ca6974db2ac..80204a2e01b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs index 2609f8701c7..1ab20c7f75c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs index 4a315001dae..067df44271f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgGroupSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs index 5d1769e60b0..c1873bfd35b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionPage.g.cs index b2ab9c62c3c..d5a61e79e33 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteNotebookSectionPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenotePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenotePage.g.cs index 5890c0ae7ee..ade54c75a1c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenotePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenotePage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionGroupSectionPage.g.cs index bb45ef89e66..abaed9f25c4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionGroupSectionPage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionPage.g.cs index 4c48c2db500..50ad3f21a0d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgPreviewGroupSiteOnenoteSectionPage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeGroupSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeGroupSiteListSubscription.g.cs index d82ffeda04f..a9e378c8cbe 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeGroupSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeGroupSiteListSubscription.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSiteListSubscription.g.cs index 010ec942298..dbf7cc3eb8f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgReauthorizeSiteListSubscription.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs index 342b469ccfc..2f90f8bf2d4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpartGetPositionOfWebPart.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs index aa7d40725cb..b8bb0d5f248 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpartGetPositionOfWebPart.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs index 6a600a07696..3b8c6676e18 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/InvokeMgSitePageAsSitePageWebPartGetPositionOfWebPart.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteContentTypeWithHubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteContentTypeWithHubSite.g.cs index d6b02f851a8..88904221a86 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteContentTypeWithHubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteContentTypeWithHubSite.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteListContentTypeWithHubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteListContentTypeWithHubSite.g.cs index 15f454710db..32afa1a4d09 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteListContentTypeWithHubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgGroupSiteListContentTypeWithHubSite.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteContentTypeWithHubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteContentTypeWithHubSite.g.cs index 4f7945ddc57..7651f76666d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteContentTypeWithHubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteContentTypeWithHubSite.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteListContentTypeWithHubSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteListContentTypeWithHubSite.g.cs index 3725203eb55..0c4f6517acb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteListContentTypeWithHubSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/JoinMgSiteListContentTypeWithHubSite.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStat.g.cs index 67af9ac2f24..c22cb25a4fa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStat.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStatActivity.g.cs index 53ac47b114c..84fb9886be4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteAnalyticItemActivityStatActivity.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteColumn.g.cs index 911d1d39168..2d48edb96e1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentType.g.cs index 304cb6a145f..1835ff0d31e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentType.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumn.g.cs index c186436a124..f7506ecea7e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumnLink.g.cs index 4aa5edb1f1a..cf3d129bc6a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteContentTypeColumnLink.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteList.g.cs index a24dbe118f0..65d8a48df72 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteList.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListColumn.g.cs index 7f66731d82a..3566a5f81ee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentType.g.cs index 4193e6e6115..e06793f4b65 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentType.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumn.g.cs index b22bddcd746..54a5e34f383 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumn.g.cs @@ -237,7 +237,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumnLink.g.cs index cb9bc304cbc..e8df15f2c38 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListContentTypeColumnLink.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItem.g.cs index 2973dd40e00..17e7a4844f7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItem.g.cs @@ -121,7 +121,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemDocumentSetVersion.g.cs index bad72ce9e6d..6db7ba2af41 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemDocumentSetVersion.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemLink.g.cs index ecfc5e662d6..3f8915aee8a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemLink.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemPermission.g.cs index 2539526245f..fa3c674742a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemPermission.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemVersion.g.cs index fa58ff6d041..7dad51569c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListItemVersion.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListOperation.g.cs index 34dbd813b50..9da699833e6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListOperation.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListPermission.g.cs index 24404b49d2e..e3ba2cd7395 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListPermission.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListSubscription.g.cs index d24c2cee789..7ff7a572a63 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteListSubscription.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebook.g.cs index eabd6a7c747..15544ab17bd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebook.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSection.g.cs index 6b491d3fe0c..28b5466ad53 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroup.g.cs index e0c07225fcb..4a8aadfef24 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroup.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs index 5d4d2bf4daf..8c99a8c8ded 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs index c41e2173552..cae0a4fe1cd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionPage.g.cs index 656fb046642..920bbbe0381 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteNotebookSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteOperation.g.cs index 364bcc03301..275c4f37695 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteOperation.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenotePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenotePage.g.cs index dcda78764ce..8409fcce562 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenotePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenotePage.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteResource.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteResource.g.cs index a9abfca6a01..b1969333363 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteResource.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteResource.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSection.g.cs index 1b78adde73c..11af0092a96 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSection.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroup.g.cs index 13766029d33..bdccc3b5cab 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroup.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSection.g.cs index 2ddf6de9d93..937f4a9e319 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSectionPage.g.cs index 58672c7fff2..9ed57258f11 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionGroupSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionPage.g.cs index 5df4ef92d8b..8d941f98485 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOnenoteSectionPage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOperation.g.cs index 61e05530319..8b57d656788 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteOperation.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePage.g.cs index 36b4122c8f1..37b28501add 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePage.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index 86b90e3165e..14089f9b38a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index 2f79d9d79d6..3e98f17a80b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index 921d67e5d9e..fe20c5373ce 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index 0a4ede227ff..fe567679bf8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageWebPart.g.cs index 41d6165d2aa..73f8d2a4b52 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePageAsSitePageWebPart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePermission.g.cs index 64b7fee626b..d197c70fba5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSitePermission.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStore.g.cs index 8cc2919c7b6..2f84cd8643c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStore.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroup.g.cs index 2e450a343fc..1ea7cd61fa9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSet.g.cs index 2819975108b..7aa0e887e9f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSet.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChild.g.cs index 122efc8bf7e..d07581b5cdc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChildRelation.g.cs index 14eb3dbfa1c..89f3206dab0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetRelation.g.cs index a9c3710ae7e..65812e1fc21 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTerm.g.cs index 1ae085b079a..54b4949d135 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTerm.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChild.g.cs index cf38d6baa93..cea92413a73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs index 020f88a35cf..bf1bf2f0fb5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermRelation.g.cs index d8c2115bd35..39711751a03 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreGroupSetTermRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSet.g.cs index a8504632a22..2f140efac9f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSet.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChild.g.cs index 4926aab9e5f..f2588bdb799 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChild.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChildRelation.g.cs index c1deb5026a2..6c3c2ba7d0c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSet.g.cs index 51012f86e6b..5ba911d0d0a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSet.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChild.g.cs index ef62499bd4b..8e8849f40f4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs index ad190209b8a..fe18616432e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs index c3a69b8c29d..c7096c1b4f9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs index 01ec2924e20..fd4cbd09c8c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs index 5d87746ee13..fc14b9521e8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index e707d164b55..4db73d4fe5d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs index b699b632bc3..079657881f2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetRelation.g.cs index 867f7c9ae89..c726051ad90 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetRelation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTerm.g.cs index c171311b3cb..678a0ffa4e8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTerm.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChild.g.cs index 2847d5c073d..21a80c123dc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChildRelation.g.cs index 4617cda0639..c049f32b4a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermRelation.g.cs index eb01246169c..14770eaa1ae 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgGroupSiteTermStoreSetTermRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStat.g.cs index 930b7f5fdb8..70eab5694c5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStat.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStatActivity.g.cs index e9c35752e33..023b97663f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteAnalyticItemActivityStatActivity.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteColumn.g.cs index c1fc4e7bf55..3f47ac665bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteColumn.g.cs @@ -231,7 +231,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentType.g.cs index 7b281783be6..32c44f6311d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentType.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumn.g.cs index 2848c016d84..f77500d8ed4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumnLink.g.cs index bf52a793b9e..d06987da4b5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteContentTypeColumnLink.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteList.g.cs index 9bb7228fed2..88446dbafa6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteList.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListColumn.g.cs index dbd082c29b6..ba8e306d960 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentType.g.cs index a606e131e15..a1103a088ca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentType.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumn.g.cs index 80f4ec7059a..c4b91fc46a3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumnLink.g.cs index bd6e8c2266a..df77d3fc0fd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListContentTypeColumnLink.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItem.g.cs index 7c57348b0f9..037d0b853eb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItem.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemDocumentSetVersion.g.cs index 3a711ae38b9..089521cfacc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemDocumentSetVersion.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemLink.g.cs index fce354068bf..06fb2ddf3c4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemLink.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemPermission.g.cs index 695c955db74..969f3a448ed 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemPermission.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemVersion.g.cs index 9b379612e0a..9fb511b3886 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListItemVersion.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListOperation.g.cs index c745e706118..19902ff7586 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListOperation.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListPermission.g.cs index f5939c59ed2..3666d2655b7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListPermission.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListSubscription.g.cs index f9606c7fe5a..15738014ed0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteListSubscription.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteOperation.g.cs index e3397f015f0..ab1589ee3b2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteOperation.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePage.g.cs index 5e1fbdb2a89..f393011d847 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index faa4052e762..8fa38c45afb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index b0d4b367289..c4a86f4ab22 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index b8292920238..7eaeb58b899 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index 1162d04f92e..9eac68b5594 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageWebPart.g.cs index bdae55b4b23..64e94166f95 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePageAsSitePageWebPart.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePermission.g.cs index c5c1939c25a..8fb5694706a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSitePermission.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStore.g.cs index afc85ec8371..a29b8f72480 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStore.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroup.g.cs index b53fe1af079..30dbe2bc757 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroup.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSet.g.cs index 340bb529956..8f8921e3b7c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSet.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChild.g.cs index 115c45efb27..bc2f7c2d8d4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChild.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChildRelation.g.cs index 66a3a369236..1a73c8dda60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetRelation.g.cs index d847f57d848..c9971925f02 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetRelation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTerm.g.cs index b21f3074502..a9a084ffcd9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTerm.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChild.g.cs index 25bf9226cf7..7f38a80fe7b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChildRelation.g.cs index 21dc84a538a..a8dcf2d4915 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermRelation.g.cs index 0b324e58143..67c63e227e0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreGroupSetTermRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSet.g.cs index 19d8b018f35..fb73c93dea1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSet.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChild.g.cs index c9dc1071d11..2162d6daef8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChild.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChildRelation.g.cs index e1a041e727f..f1ceb9d9952 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetChildRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSet.g.cs index 57400ca6946..07b0e3860dc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSet.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChild.g.cs index 6f7c8917198..87edeee6509 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChild.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChildRelation.g.cs index f4bfbff93c1..21e9a15c4d2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetRelation.g.cs index 063c13df198..2818e8cbd66 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetRelation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTerm.g.cs index 9a4e13a34e6..0e53b4f9ebf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTerm.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChild.g.cs index 1a6a10760bd..e2ce7aed2d7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 2a14eed6801..6730c427c91 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermRelation.g.cs index 1e6cbe8cc34..2715262d1de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetRelation.g.cs index 91c81f55008..38e6c22c84b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetRelation.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTerm.g.cs index b54bcc3fa86..6c1efaf27b3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTerm.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChild.g.cs index d99ee591413..6dc356bb3df 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChild.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChildRelation.g.cs index 8d74424f08f..63a8a514232 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermChildRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermRelation.g.cs index 957ef1e8c31..1350e3fd0a5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/NewMgSiteTermStoreSetTermRelation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteContentType.g.cs index 1d66398aabd..3e83327e6e3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteContentType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteListContentType.g.cs index fe5e6faea78..68c2488aefc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgGroupSiteListContentType.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteContentType.g.cs index e5efa63b0cb..146727201cf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteListContentType.g.cs index 8846568275c..58979853b01 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/PublishMgSiteListContentType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepoint.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepoint.g.cs index a4fa055a636..56b5f16ec42 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepoint.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepoint.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepointSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepointSetting.g.cs index 8beca510466..ecf344eb3bb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepointSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgAdminSharepointSetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSite.g.cs index 0f20c8e4198..f3439c4e16a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSite.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalytic.g.cs index ca7bf3dd091..61b0babc2f3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalytic.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStat.g.cs index 54a60b75f1d..5e47eb815f8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStat.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivity.g.cs index de29879ba15..0eadbd43d9c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivity.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs index ae112782c65..e94e87fb059 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteColumn.g.cs index 7e6addb9c14..5088034c113 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteColumn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentType.g.cs index 2e5c2116a19..8dd40060e54 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumn.g.cs index 85e82d1d2d7..029e2d8d4a1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumn.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumnLink.g.cs index c708d611350..d4a075d63a7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteContentTypeColumnLink.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteList.g.cs index 0582bf24eeb..903615817b6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteList.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListColumn.g.cs index 52278c1d7a6..a2bbba773d4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListColumn.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentType.g.cs index 5c51ca80d01..20c9919eb81 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumn.g.cs index be4b62391ad..4b1670d8454 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumn.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumnLink.g.cs index 2dfcd1eaa9e..cd3600c3d6a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListContentTypeColumnLink.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItem.g.cs index 6c39a1e7910..b9af5b3e6bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItem.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersion.g.cs index f92b39ae649..dc882fda491 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersion.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersionField.g.cs index 799bd2cd56a..7e4047f19ff 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDocumentSetVersionField.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDriveItemContent.g.cs index f07bf83c953..61b5b385c45 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemDriveItemContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemField.g.cs index c827f74724e..be7b2162247 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemField.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemPermission.g.cs index 70be5d6a34a..1400a3b8109 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemPermission.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersion.g.cs index 10c95dbd752..af7bccaffa0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersion.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersionField.g.cs index 7c962613c50..570dc1291a2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListItemVersionField.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListOperation.g.cs index b216dc34c43..c2dec63190e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListOperation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListPermission.g.cs index 9d8555abf6f..799158d3cb1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListPermission.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListSubscription.g.cs index c64d9c7af11..0fc3799582e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteListSubscription.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenote.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenote.g.cs index e53419c13fd..6cb20e67d99 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenote.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebook.g.cs index 4d32825c9ac..8d2d6dc89f4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebook.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSection.g.cs index 55f46569b4c..af62baaa802 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroup.g.cs index 6a73182a625..7fdb23f2197 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroup.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs index 7a890f31ba0..62f6b9fb6eb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs index 78173f0ef80..8436856dd95 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index 501e8b16474..cc1cb03061c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPage.g.cs index a9b7735b62e..6e74c86c12e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPageContent.g.cs index af88873227c..ee58c09916b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteNotebookSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteOperation.g.cs index 3d06a596354..25c206f6548 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteOperation.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePage.g.cs index 266e667298e..e50ee9c1ea9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePageContent.g.cs index 650497cdaa5..219105a8538 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenotePageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResource.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResource.g.cs index 89755e0d5bc..dff4311a75a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResource.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResource.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResourceContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResourceContent.g.cs index 333f0896e56..d91bdd57c28 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResourceContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteResourceContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSection.g.cs index fd7422d2c7e..cfc0434e13a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroup.g.cs index 99dc88c79aa..1736e152fa3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSection.g.cs index 22ffe63db65..a242f3b1757 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPage.g.cs index fb71c60cead..4b0aaf2ee98 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPage.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs index fea1d43ce87..c7c55c85987 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPage.g.cs index 1a360ebb276..aca53aec91e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPage.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPageContent.g.cs index 0eeb9fa7d68..92bfc876e16 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOnenoteSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOperation.g.cs index 9a40826d839..86d8aee1538 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteOperation.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePage.g.cs index 7748ea17a1d..0aed55aaed1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayout.g.cs index cf6757d4300..cd325dadbeb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayout.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index ceb92f3c149..da8d52471a3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index b9f3f56bf80..8697205de6a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index 3909d5ab5bf..00cc1153272 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index f8a909d577a..2dfbc7e8f50 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index 79b0de74ded..f1838b26bfb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageWebPart.g.cs index c11c45f1fd3..51b3ed58dfc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePageAsSitePageWebPart.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePermission.g.cs index 7ac8ca3b081..237f18e838c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSitePermission.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStore.g.cs index 97d20f0e249..4bf7ee46058 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStore.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroup.g.cs index 432dec4da6d..90b1c6c8af5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSet.g.cs index fa920782152..dafacdb6738 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSet.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChild.g.cs index 8aaf2d38b31..37ced0d2b9e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChild.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChildRelation.g.cs index 84bd5b671be..6940902077a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetChildRelation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetParentGroup.g.cs index 912670e01bc..b720c288a62 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetParentGroup.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetRelation.g.cs index 2701dd71e2c..d418e0a70f5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTerm.g.cs index 0accc20ca0d..3dc0091e000 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTerm.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChild.g.cs index 0ff3b3db4d2..1ab0c3355fb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChild.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs index 792c3462041..27607645134 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermRelation.g.cs index edadce54fb5..f574820b310 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreGroupSetTermRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSet.g.cs index f1fda75585a..ab89ec5428d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSet.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChild.g.cs index 568dcb69c78..3af196b3176 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChild.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChildRelation.g.cs index adb39cb8961..a72d2307f30 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroup.g.cs index e4fe44c67fc..d97c71b9987 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSet.g.cs index 4433a064f5e..c6234e7aa7d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSet.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChild.g.cs index f6134b889d2..d983918ca58 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChild.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs index 3db98b755bc..939308290ce 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs index 71277b1acaf..be18747eea8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs index eb9b4702508..a218f947462 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs index 3371b32a4a7..82b0de63f80 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 50d90881c99..e5a20486480 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs index 5d361079f83..fbff0bbc717 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetRelation.g.cs index a07733a127a..ec60bc5eca3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetRelation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTerm.g.cs index 67994bc47ce..85e45bbb21f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTerm.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChild.g.cs index 9020a17d7a4..edc1e76637f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChild.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChildRelation.g.cs index 18ca3c4d57f..d5cb3aa6cec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermRelation.g.cs index 662b2e6b330..ca7ded49559 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgGroupSiteTermStoreSetTermRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalytic.g.cs index b57dd0ce559..b2e7ef92b4e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalytic.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStat.g.cs index 860d035e1f8..428d4feeeca 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStat.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStatActivity.g.cs index 09c7894f4af..68f726c60ba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteAnalyticItemActivityStatActivity.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteColumn.g.cs index 3f9436b74de..e74beded7cd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteColumn.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentType.g.cs index 8c2c8fa3c83..1edacedb59a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentType.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumn.g.cs index dd846944f9d..e7fa6007f5e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumnLink.g.cs index f5a024d37fd..06ba9819886 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteContentTypeColumnLink.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteList.g.cs index 06be6ceb847..27a945f27fc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteList.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListColumn.g.cs index 908d16c9131..2bb03825da9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListColumn.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentType.g.cs index a9fd3d09201..5217392ecf2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumn.g.cs index 5539e44c535..1e019d1ecaa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumn.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumnLink.g.cs index f3a2ed03dde..2b103c06c22 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListContentTypeColumnLink.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItem.g.cs index e4ab19934c2..0dcbaf71235 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItem.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersion.g.cs index 82acf65efc9..4a71efcf125 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersionField.g.cs index afdbe342f09..ebdf638ef54 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemDocumentSetVersionField.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemField.g.cs index c6549dcfd51..2510ce21333 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemField.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemPermission.g.cs index 46a16b4a64a..95540df6bd1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemPermission.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersion.g.cs index 5b4010ebe8f..7ae3f1f3146 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersion.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersionField.g.cs index 73271d903c0..96e180dc8e2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListItemVersionField.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListOperation.g.cs index c8878ff59bd..9cb48abe2d4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListOperation.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListPermission.g.cs index 85edbdae19b..9df3e66a296 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListPermission.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListSubscription.g.cs index 554eef36d83..3291a5976ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteListSubscription.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteOperation.g.cs index 75587f017ab..1f4d3b29597 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePage.g.cs index 8a148d4238c..1de59eb36db 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayout.g.cs index 8c04c5f97a5..4028f6bd647 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayout.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index 7b9b5c0da06..622de6dd432 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index cea602d0d87..c2eb783ceb2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index 7f1e131b22e..9288c474202 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index 1561f063312..533fa675091 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index 8d2601e1f58..0f14d9bdfda 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageWebPart.g.cs index f0fb8db7e6e..770dc0d792f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePageAsSitePageWebPart.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePermission.g.cs index b6fd0527b75..f8ff078aaa2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSitePermission.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStore.g.cs index 00f362d8e0f..1c01481abfc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStore.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroup.g.cs index 6df455ae0f3..8060e80f07b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSet.g.cs index d8f6242182e..973ee3521c1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSet.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChild.g.cs index 3de96ad31ec..77587e7f0da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChild.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChildRelation.g.cs index d011341dd41..46a88bd7202 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetParentGroup.g.cs index 9b8f1b4615d..0d57843367c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetParentGroup.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetRelation.g.cs index 22cc9972618..5adde2fce5f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetRelation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTerm.g.cs index e04a6962c2e..cba8774dca2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTerm.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChild.g.cs index 2cf7981b7cb..7e99ce3b5c6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChild.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChildRelation.g.cs index f6f4f39ce9a..96b088cb1bc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermRelation.g.cs index c004346673b..febdbf14a1c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreGroupSetTermRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSet.g.cs index f6d323aab57..7918202f8b5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSet.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChild.g.cs index ebd6af6dcec..111616fe872 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChild.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChildRelation.g.cs index e9da0fff041..dc1ff7140f1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetChildRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroup.g.cs index b936268da0c..6955ee83e65 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSet.g.cs index 5c8768ba9ed..f9385fcb5d3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSet.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChild.g.cs index 92efaadd208..0d92c06e59c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChild.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChildRelation.g.cs index 2a42136b6e7..5f780b7b4b1 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetRelation.g.cs index d7f7575f41f..400289373a0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetRelation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTerm.g.cs index 2acae359d7d..dee5e7951ba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTerm.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChild.g.cs index a4f0a93bab3..56cf898241e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 3e8cc5f8981..3473d2dad85 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermRelation.g.cs index efb548c417f..5ebdee2d95f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetRelation.g.cs index 44e1acd5b68..95a3d9ee0a4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetRelation.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTerm.g.cs index 220ed926c61..2855fdb1ad9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTerm.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChild.g.cs index 0e091a3e709..9e5c40fcf89 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChild.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChildRelation.g.cs index 2f052bf50b9..feabb1ec006 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermChildRelation.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermRelation.g.cs index 9b58e14c42a..959f17de5e2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgSiteTermStoreSetTermRelation.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgUserFollowedSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgUserFollowedSite.g.cs index efa86ea61ae..26f863de8c0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgUserFollowedSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RemoveMgUserFollowedSite.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemDocumentSetVersion.g.cs index 2a4ba3dd440..75c3e07f958 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemDocumentSetVersion.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemVersion.g.cs index 3fa60fcd195..72b2a841abb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgGroupSiteListItemVersion.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemDocumentSetVersion.g.cs index 4fd30f77ac1..559f6cfd149 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemDocumentSetVersion.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemVersion.g.cs index 730ebb84c67..5462ce0c9da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/RestoreMgSiteListItemVersion.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs index 7e1fbce5e2f..b23ffc9cbc7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteListItemDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteListItemDriveItemContent.g.cs index d056cb29900..6fb8f10e1bc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteListItemDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteListItemDriveItemContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs index b78a0adee4f..742932c90eb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionGroupSectionPageContent.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs index 53aa187bfaa..57c2dbf6b1b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteNotebookSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenotePageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenotePageContent.g.cs index 3143a1c288f..f25dde511a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenotePageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenotePageContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteResourceContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteResourceContent.g.cs index 7fb4560aa76..b756cecdabc 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteResourceContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteResourceContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs index d332dd7e892..389f9d2dd6b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionGroupSectionPageContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionPageContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionPageContent.g.cs index a1a10d69070..c050d3e06fa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionPageContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgGroupSiteOnenoteSectionPageContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs index bfff8412817..2564525be95 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteAnalyticItemActivityStatActivityDriveItemContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteListItemDriveItemContent.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteListItemDriveItemContent.g.cs index 11a2cddfcf3..d1af9fefc6e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteListItemDriveItemContent.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/SetMgSiteListItemDriveItemContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteContentTypePublished.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteContentTypePublished.g.cs index c378f47922f..aa41568defa 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteContentTypePublished.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteContentTypePublished.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteListContentTypePublished.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteListContentTypePublished.g.cs index 393a28037ed..ecedf2edd5b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteListContentTypePublished.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/TestMgGroupSiteListContentTypePublished.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteContentTypePublished.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteContentTypePublished.g.cs index d66f3ea5c2d..d40ca827779 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteContentTypePublished.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteContentTypePublished.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteListContentTypePublished.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteListContentTypePublished.g.cs index 1a46b80d9e6..ace4b64f894 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteListContentTypePublished.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/TestMgSiteListContentTypePublished.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteContentType.g.cs index 3798afbc74e..460e294ac88 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteContentType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteListContentType.g.cs index acce7ef8fac..65308c9a59f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgGroupSiteListContentType.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteContentType.g.cs index 0a19f900bdf..bc1d64e65a5 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteContentType.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteListContentType.g.cs index 7f97f35e6b4..6d41bb2a848 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UnpublishMgSiteListContentType.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepoint.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepoint.g.cs index d89a37ea142..6b5e863d84a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepoint.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepoint.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -62,7 +62,7 @@ protected override void ProcessRecord() { result = client.Admin.Sharepoint.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepointSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepointSetting.g.cs index d049d600acd..e554b31e158 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepointSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgAdminSharepointSetting.g.cs @@ -218,7 +218,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -232,7 +232,7 @@ protected override void ProcessRecord() { result = client.Admin.Sharepoint.Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSite.g.cs index 9b95e8477ee..7567363e282 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSite.g.cs @@ -137,7 +137,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -151,7 +151,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalytic.g.cs index 7b6ce1844c8..ac6b80ce291 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalytic.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Analytics.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStat.g.cs index 3bf7a626e44..d4559b0fc92 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStat.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Analytics.ItemActivityStats[ItemActivityStatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStatActivity.g.cs index 1057e422f96..acd996788ef 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteAnalyticItemActivityStatActivity.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteColumn.g.cs index 062cafe228d..321685045de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -249,7 +249,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentType.g.cs index 19668bb52e8..32f7ea06c60 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentType.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -147,7 +147,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumn.g.cs index 27bd761fba1..0fa4ddafdef 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumn.g.cs @@ -237,7 +237,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -251,7 +251,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumnLink.g.cs index 54966a90ccc..a324fd0cc4d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteContentTypeColumnLink.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteCreatedByUserMailboxSetting.g.cs index 13f2e2b446a..ee32f363241 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteLastModifiedByUserMailboxSetting.g.cs index 44d6d0d9e31..9f0c2f7d478 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteList.g.cs index 88de72d4c29..c7afd9ae673 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteList.g.cs @@ -127,7 +127,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -141,7 +141,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListColumn.g.cs index 45ddb9a782e..46da01b5e47 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListColumn.g.cs @@ -237,7 +237,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -251,7 +251,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentType.g.cs index a999922ccbf..3507b13d166 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentType.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumn.g.cs index e54d414f7ff..7aad05ed61a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumn.g.cs @@ -239,7 +239,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -253,7 +253,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumnLink.g.cs index e6913c8f4d7..2ffd3a26b6c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListContentTypeColumnLink.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListCreatedByUserMailboxSetting.g.cs index ee2d4d181c4..66731ef972d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListCreatedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItem.g.cs index c02bead6bc9..db05d4be2b4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItem.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs index aa9768da88c..bafd631b5ed 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemCreatedByUserMailboxSetting.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersion.g.cs index ad15704164a..ef874c08302 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersion.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersionField.g.cs index 0f1858e5a4d..85579de9b79 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemDocumentSetVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemField.g.cs index 3f4bfc42c64..5c1b3342b71 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemField.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemLastModifiedByUserMailboxSetting.g.cs index c484c4d623d..40e9178c623 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemLastModifiedByUserMailboxSetting.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemPermission.g.cs index 850f92b7ab5..0d659dbb6dd 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemPermission.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersion.g.cs index 10be02f819c..98dc7057d64 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersion.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].Versions[ListItemVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersionField.g.cs index 56095e19000..aa693c84e87 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListItemVersionField.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Items[ListItemId].Versions[ListItemVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListLastModifiedByUserMailboxSetting.g.cs index 224b63b2c50..dc471ce6181 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListLastModifiedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListOperation.g.cs index e42d7913bfd..7aa0f07ec66 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListOperation.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListPermission.g.cs index 00d38c236e4..b3b4ec05e56 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListPermission.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListSubscription.g.cs index 3d32d2695a6..b2c5acb39de 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteListSubscription.g.cs @@ -137,7 +137,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -151,7 +151,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Lists[ListId].Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenote.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenote.g.cs index dd0480d9cf0..8b7526f6f21 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenote.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenote.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebook.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebook.g.cs index 3c0ff3b068c..4e78cb45c2d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebook.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebook.g.cs @@ -121,7 +121,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; @@ -135,7 +135,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, NotebookId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSection.g.cs index 072428b9ba9..06d75594f22 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroup.g.cs index 1fecc63946e..1645e10cc8b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroup.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs index 42165a07684..0dac8e042d3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSection.g.cs @@ -107,7 +107,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -121,7 +121,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs index c41d165eca6..77f516ed480 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionGroupSectionPage.g.cs @@ -121,7 +121,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; @@ -135,7 +135,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].SectionGroups[SectionGroupId].Sections[OnenoteSectionId].Pages[OnenotePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionPage.g.cs index fdb7968aa6f..2f7a9c40670 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteNotebookSectionPage.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Notebooks[NotebookId].Sections[OnenoteSectionId].Pages[OnenotePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteOperation.g.cs index 42250373a1a..3fdec3dee6d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteOperation.g.cs @@ -91,7 +91,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; @@ -105,7 +105,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Operations[OnenoteOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenotePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenotePage.g.cs index b39c504a814..58cf0dc69e4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenotePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenotePage.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; @@ -129,7 +129,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Pages[OnenotePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteResource.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteResource.g.cs index f7128350196..fd91ddde426 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteResource.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteResource.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Resources[OnenoteResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteResourceId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSection.g.cs index 7282b6dc15c..9095eb48908 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSection.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroup.g.cs index aec0ccff8a9..63297dff9c7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroup.g.cs @@ -97,7 +97,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; @@ -111,7 +111,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.SectionGroups[SectionGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SectionGroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSection.g.cs index 8ff6f2d137a..5745ff600ee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSection.g.cs @@ -105,7 +105,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; @@ -119,7 +119,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.SectionGroups[SectionGroupId].Sections[OnenoteSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenoteSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSectionPage.g.cs index 5a7b06a923b..433fb3c9da8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionGroupSectionPage.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.SectionGroups[SectionGroupId].Sections[OnenoteSectionId].Pages[OnenotePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionPage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionPage.g.cs index 1cae35b2fc0..51a675ee039 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionPage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOnenoteSectionPage.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Onenote.Sections[OnenoteSectionId].Pages[OnenotePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OnenotePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOperation.g.cs index aeac0263afc..cec913578ea 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteOperation.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePage.g.cs index 0f81c50e440..dffed528e3a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePage.g.cs @@ -121,7 +121,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -135,7 +135,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayout.g.cs index 10a5ea433e7..1e177d34e63 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayout.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index e5b4fcc5c2e..f01e10e1840 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index 61a99e2c3bf..d38a9891c89 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].Columns[HorizontalSectionColumnId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index 4b72ccb3115..be820d96473 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].Columns[HorizontalSectionColumnId].Webparts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index a532aa4a50a..a592fde54ba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.VerticalSection.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index de88b501da1..90ed78dcef4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.VerticalSection.Webparts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs index c953456f1c2..92eae7a9c16 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageCreatedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs index 9595d501e3d..abcaa522965 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageWebPart.g.cs index 35e56292726..40a1091326d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageAsSitePageWebPart.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.WebParts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageCreatedByUserMailboxSetting.g.cs index 5198c55a836..6c7b7cd9ab0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageCreatedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs index 178f96ed453..2f3b0dfea24 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePageLastModifiedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Pages[BaseSitePageId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePermission.g.cs index 4969fccd388..6a406bc677c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSitePermission.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -129,7 +129,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStore.g.cs index 8ef16902fb7..31b5153793a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStore.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroup.g.cs index eb66e735d3e..362191c0915 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroup.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSet.g.cs index f60452cd6e4..ed6082f5506 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSet.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChild.g.cs index 808b214e2a6..5398e2c6adb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChildRelation.g.cs index f9900cde7b1..bb69afce9a7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetChildRelation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetParentGroup.g.cs index 22aba82e8f0..df50e5d7171 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetParentGroup.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].ParentGroup.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetRelation.g.cs index d78ea024054..b7d6d1006a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTerm.g.cs index dfa04e3eb55..beae30c96a2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTerm.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChild.g.cs index f0f3447e217..3d0b56dba73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChild.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs index d1de751e9d5..ff66b0a88db 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermChildRelation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermRelation.g.cs index cc0e75df00c..83cf5767f4d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreGroupSetTermRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Groups[GroupId1].Sets[SetId].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSet.g.cs index ed74138ecce..1c34e84532a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSet.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChild.g.cs index be842a289f0..f9c883c6cb3 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChildRelation.g.cs index 6c0a31352bc..7cf81ae4181 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroup.g.cs index b29a9444177..694fb9d6b61 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroup.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSet.g.cs index c1b911a2985..e0f7cc35f2c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSet.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChild.g.cs index 8f4359205ab..111fa54ff87 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs index 7d97b27c90a..3ba42ae42a6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs index 59700701c54..71cd6682c4d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs index 7f28f485c5c..e43feb0b8ce 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTerm.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs index b27bd2e4cc7..7d5a56022ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index 2749b3f8e4c..fa008fb5004 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs index 2b5c2942d35..395a4b50a7a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetRelation.g.cs index c1be2609cc6..14a7578b660 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTerm.g.cs index b15d77a8ac0..ac11c5a7c1e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTerm.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChild.g.cs index d470291f336..2526bf5d371 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChildRelation.g.cs index a3e2db01477..b03505bf406 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermRelation.g.cs index dcd3d42a6cc..973add4ede7 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgGroupSiteTermStoreSetTermRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSite.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSite.g.cs index bafda8d059a..907f21da391 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSite.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSite.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalytic.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalytic.g.cs index 47cea9311e5..b663616a483 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalytic.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalytic.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Analytics.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStat.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStat.g.cs index c89bac82d03..c486e3e6e27 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStat.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStat.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Analytics.ItemActivityStats[ItemActivityStatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityStatId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStatActivity.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStatActivity.g.cs index 8bdbaba8284..8dd177afa14 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStatActivity.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteAnalyticItemActivityStatActivity.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Analytics.ItemActivityStats[ItemActivityStatId].Activities[ItemActivityId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ItemActivityId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteColumn.g.cs index 8383f0f0962..75d20ec8815 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteColumn.g.cs @@ -233,7 +233,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -247,7 +247,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentType.g.cs index 1721b51ffa5..f47a5fcc74b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentType.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -145,7 +145,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumn.g.cs index 8c325920765..10a34669139 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -249,7 +249,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumnLink.g.cs index d22c917661f..276876f0772 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteContentTypeColumnLink.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteList.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteList.g.cs index 65f01e6fca8..f87f73ce670 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteList.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteList.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -139,7 +139,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListColumn.g.cs index 0749ac9e7c7..87e3acbcb79 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListColumn.g.cs @@ -235,7 +235,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -249,7 +249,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentType.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentType.g.cs index 28bb75d9465..5b439ec451b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentType.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentType.g.cs @@ -133,7 +133,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; @@ -147,7 +147,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ContentTypeId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumn.g.cs index 5f88f0b25c6..e2c94b063a8 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumn.g.cs @@ -237,7 +237,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; @@ -251,7 +251,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].Columns[ColumnDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnDefinitionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumnLink.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumnLink.g.cs index 9312347f94c..fc87822b8ef 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumnLink.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListContentTypeColumnLink.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].ContentTypes[ContentTypeId].ColumnLinks[ColumnLinkId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ColumnLinkId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListCreatedByUserMailboxSetting.g.cs index 837323d713b..b0aa0d36ff2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItem.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItem.g.cs index 360b915f844..bb444f0bb80 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItem.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItem.g.cs @@ -121,7 +121,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -135,7 +135,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemCreatedByUserMailboxSetting.g.cs index dca6c2b6ddf..4584e10d412 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemCreatedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersion.g.cs index 08520d6790b..f8fc4681e17 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersion.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersionField.g.cs index 7d359faf854..6d719c407b0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemDocumentSetVersionField.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].DocumentSetVersions[DocumentSetVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DocumentSetVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemField.g.cs index 603f6b29923..bc0197f9cfb 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemField.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemLastModifiedByUserMailboxSetting.g.cs index 6f34798ab72..d799a89cb3b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemLastModifiedByUserMailboxSetting.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemPermission.g.cs index cb78e9e1475..fcd2948018f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemPermission.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -131,7 +131,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersion.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersion.g.cs index 55811886b5d..3b6a681235b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersion.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersion.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].Versions[ListItemVersionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersionField.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersionField.g.cs index bc07c312c43..db3200b3f70 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersionField.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListItemVersionField.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Items[ListItemId].Versions[ListItemVersionId].Fields.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListItemVersionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListLastModifiedByUserMailboxSetting.g.cs index 82c2234638f..86aed2ad717 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ListId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListOperation.g.cs index 2e24aedbffc..900dfef68ee 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListOperation.g.cs @@ -103,7 +103,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -117,7 +117,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListPermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListPermission.g.cs index 46682a6d801..868c72b9935 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListPermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListPermission.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -129,7 +129,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListSubscription.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListSubscription.g.cs index 6550e4dd653..434cc67cf11 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListSubscription.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteListSubscription.g.cs @@ -135,7 +135,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; @@ -149,7 +149,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Lists[ListId].Subscriptions[SubscriptionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SubscriptionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteOperation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteOperation.g.cs index 6b6adb7f1c2..f85eb303e0e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteOperation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteOperation.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Operations[RichLongRunningOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RichLongRunningOperationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePage.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePage.g.cs index 21bdb94c6b9..38006a85f1a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePage.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePage.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -133,7 +133,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayout.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayout.g.cs index 18eb84c0ede..187eba3182e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayout.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayout.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs index e9602ff3ac3..7c32a8346d6 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSection.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs index fab6ad58a2c..2f8ea1a6f7d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumn.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].Columns[HorizontalSectionColumnId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, HorizontalSectionColumnId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs index f4aa41801f6..3a4a72be06d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutHorizontalSectionColumnWebpart.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.HorizontalSections[HorizontalSectionId].Columns[HorizontalSectionColumnId].Webparts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs index cd8fd19e98f..f4b8e2a146c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSection.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.VerticalSection.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs index 2ef9581f31c..84563fa502f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCanvaLayoutVerticalSectionWebpart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CanvasLayout.VerticalSection.Webparts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs index 583291abc8b..0056130e781 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs index cb5168d0468..c34838e3677 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageWebPart.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageWebPart.g.cs index 8f56cf8499a..201ec807a6b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageWebPart.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageAsSitePageWebPart.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].GraphSitePage.WebParts[WebPartId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WebPartId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageCreatedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageCreatedByUserMailboxSetting.g.cs index f1f3d754984..cc658f3b4df 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageCreatedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageCreatedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].CreatedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageLastModifiedByUserMailboxSetting.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageLastModifiedByUserMailboxSetting.g.cs index 6a2b803d0a2..707309eaf0f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageLastModifiedByUserMailboxSetting.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePageLastModifiedByUserMailboxSetting.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Pages[BaseSitePageId].LastModifiedByUser.MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, BaseSitePageId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePermission.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePermission.g.cs index 71701d6494a..1ab16255007 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePermission.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSitePermission.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].Permissions[PermissionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PermissionId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStore.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStore.g.cs index 082a1f6786b..c29b7d218b9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStore.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStore.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SiteId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroup.g.cs index c92637a8588..52cbdacb06c 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSet.g.cs index 31403acc936..d68601ac5b9 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSet.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChild.g.cs index a94c81c784e..47375260909 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChildRelation.g.cs index b81a53487dc..8d208773d97 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetParentGroup.g.cs index 67cb42f8186..a6783ef9c8d 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetParentGroup.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].ParentGroup.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetRelation.g.cs index 2811cfad34c..328bcd85198 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTerm.g.cs index 173155766a3..5ff6f33e590 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTerm.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChild.g.cs index dd349bbd23e..ca0a74221da 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChildRelation.g.cs index c22bc544983..09104bcdaba 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermRelation.g.cs index 4e285f7e4b5..e2a49dcbc73 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreGroupSetTermRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Groups[GroupId].Sets[SetId].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSet.g.cs index 386c319cb7a..ec9e89889d0 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSet.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChild.g.cs index 9fb4c1f106c..26ac151c493 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChild.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChildRelation.g.cs index be8232d01f5..5f6eebb756a 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroup.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroup.g.cs index a243ccd274f..d714b859993 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroup.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroup.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSet.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSet.g.cs index 15038f4cf9c..fdd77665e05 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSet.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSet.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SetId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChild.g.cs index 797b5eade35..54f15fd905f 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Children[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChildRelation.g.cs index 08e85207e94..fb49019e5df 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Children[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetRelation.g.cs index 0676a104342..c22948574e2 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTerm.g.cs index 49811d34b64..27f1d788193 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTerm.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChild.g.cs index 392f621d795..b64e69db618 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChild.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs index a4220ebf889..bfa70e400e4 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermChildRelation.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermRelation.g.cs index b6aedf5a7b2..6c7bdc139fe 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetParentGroupSetTermRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].ParentGroup.Sets[SetId1].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetRelation.g.cs index ff17100874b..59360e4bd8e 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetRelation.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -71,7 +71,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTerm.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTerm.g.cs index e3673e89873..67d1625f56b 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTerm.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTerm.g.cs @@ -79,7 +79,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; @@ -93,7 +93,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChild.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChild.g.cs index 54e706307af..28968c1b414 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChild.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChild.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Children[TermId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TermId1); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChildRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChildRelation.g.cs index 54fa553b6ef..1a5511b08bf 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChildRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermChildRelation.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Children[TermId1].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermRelation.g.cs b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermRelation.g.cs index 362013f2159..6a37c0114ec 100644 --- a/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermRelation.g.cs +++ b/src/Sites/wrapper/v1.0/Cmdlets/UpdateMgSiteTermStoreSetTermRelation.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Sites[SiteId].TermStore.Sets[SetId].Terms[TermId].Relations[RelationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, RelationId); return; diff --git a/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs index 46c1d059fd9..c2c43b9a71b 100644 --- a/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -194,7 +194,7 @@ public partial class TargetedChatMessageItemRequestBuilderDeleteRequestConfigura { } /// - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class TargetedChatMessageItemRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs index 4b55bc7f1d7..6bb398e2e0f 100644 --- a/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs @@ -54,7 +54,7 @@ public TargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public TargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdap return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Models.TargetedChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Teams.Client.Chats.Item.TargetedMessages.TargetedMessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get targetedMessages from chats + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class TargetedMessagesRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/Models/Chat.cs b/src/Teams/wrapper/v1.0/Client/Models/Chat.cs index 429431d9ded..950b1e954db 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Teams.Client.Mode #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Teams/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Teams/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..dd4ba8d6742 --- /dev/null +++ b/src/Teams/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Teams.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Teams.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Teams.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Teams/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Teams/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..1632a3f147b --- /dev/null +++ b/src/Teams/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Teams.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Teams/wrapper/v1.0/Client/Models/Group.cs b/src/Teams/wrapper/v1.0/Client/Models/Group.cs index f99163a8d34..9babe98483b 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Teams.Client.Mod #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Teams.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Teams.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Teams/wrapper/v1.0/Client/Models/List.cs b/src/Teams/wrapper/v1.0/Client/Models/List.cs index 746671c0ecd..4919e540140 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/List.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Teams.Client.Mode #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Teams/wrapper/v1.0/Client/Models/ListItem.cs b/src/Teams/wrapper/v1.0/Client/Models/ListItem.cs index 0403270cee6..155152fc7be 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Teams.Client. #else public global::Microsoft.Graph.PowerShell.Teams.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 94be2dbbda5..24ba94c6f59 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Team #nullable restore #else public global::Microsoft.Graph.PowerShell.Teams.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Teams.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Teams.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.Team #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Teams.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..8dcc3df8a28 --- /dev/null +++ b/src/Teams/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Teams.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Teams/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Teams/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 5ba83c266b0..cbfa68126de 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Teams.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Teams.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Teams/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Teams/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 13cde271e85..e978726c52d 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Teams.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Teams.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Teams.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Teams/wrapper/v1.0/Client/Models/User.cs b/src/Teams/wrapper/v1.0/Client/Models/User.cs index b3e38a5034b..a899c52a6c2 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/User.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Teams.Client.Mode #nullable restore #else public global::Microsoft.Graph.PowerShell.Teams.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Teams.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Teams.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Teams.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Teams/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Teams/wrapper/v1.0/Client/Models/UserActivityType.cs index 764f36dd1ec..2dfc62ccb2c 100644 --- a/src/Teams/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Teams/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs index a1c10ff5cb6..ebc858249a1 100644 --- a/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/Item/TargetedChatMessageItemRequestBuilder.cs @@ -69,7 +69,7 @@ public async Task DeleteAsync(Action - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -194,7 +194,7 @@ public partial class TargetedChatMessageItemRequestBuilderDeleteRequestConfigura { } /// - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class TargetedChatMessageItemRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs index c3402fa91de..c4f32647ef1 100644 --- a/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Users/Item/Chats/Item/TargetedMessages/TargetedMessagesRequestBuilder.cs @@ -54,7 +54,7 @@ public TargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdap { } /// - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Cancellation token to use when cancelling requests @@ -102,7 +102,7 @@ public TargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdap return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Models.TargetedChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -152,7 +152,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Power return new global::Microsoft.Graph.PowerShell.Teams.Client.Users.Item.Chats.Item.TargetedMessages.TargetedMessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get targetedMessages from users + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class TargetedMessagesRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/DeleteTargetedMessage/DeleteTargetedMessageRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/DeleteTargetedMessage/DeleteTargetedMessageRequestBuilder.cs index ce9b34c6d70..e33e7bafa2f 100644 --- a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/DeleteTargetedMessage/DeleteTargetedMessageRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/DeleteTargetedMessage/DeleteTargetedMessageRequestBuilder.cs @@ -34,7 +34,8 @@ public DeleteTargetedMessageRequestBuilder(string rawUrl, IRequestAdapter reques { } /// - /// Invoke action deleteTargetedMessage + /// Delete a specific targeted message from a channel context. Teams administrators can use this API to remove targeted messages by providing the message ID, team ID, and channel ID. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -58,7 +59,7 @@ public async Task PostAsync(global::Microsoft.Graph.PowerShell.Teams.Client.User await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action deleteTargetedMessage + /// Delete a specific targeted message from a channel context. Teams administrators can use this API to remove targeted messages by providing the message ID, team ID, and channel ID. /// /// A /// The request body diff --git a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllRetainedTargetedMessages/GetAllRetainedTargetedMessagesRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllRetainedTargetedMessages/GetAllRetainedTargetedMessagesRequestBuilder.cs index 5bd79c48583..00ae72d0957 100644 --- a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllRetainedTargetedMessages/GetAllRetainedTargetedMessagesRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllRetainedTargetedMessages/GetAllRetainedTargetedMessagesRequestBuilder.cs @@ -34,7 +34,8 @@ public GetAllRetainedTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapt { } /// - /// Invoke function getAllRetainedTargetedMessages + /// Get all retained targeted messages sent to a specific user in group chats and channels. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -57,7 +58,8 @@ public GetAllRetainedTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapt return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Users.Item.Teamwork.GetAllRetainedTargetedMessages.GetAllRetainedTargetedMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke function getAllRetainedTargetedMessages + /// Get all retained targeted messages sent to a specific user in group chats and channels. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,7 +83,7 @@ public GetAllRetainedTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapt return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Users.Item.Teamwork.GetAllRetainedTargetedMessages.GetAllRetainedTargetedMessagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke function getAllRetainedTargetedMessages + /// Get all retained targeted messages sent to a specific user in group chats and channels. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Invoke function getAllRetainedTargetedMessages + /// Get all retained targeted messages sent to a specific user in group chats and channels. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class GetAllRetainedTargetedMessagesRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllTargetedMessages/GetAllTargetedMessagesRequestBuilder.cs b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllTargetedMessages/GetAllTargetedMessagesRequestBuilder.cs index fae3c60b5ff..35d9220a585 100644 --- a/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllTargetedMessages/GetAllTargetedMessagesRequestBuilder.cs +++ b/src/Teams/wrapper/v1.0/Client/Users/Item/Teamwork/GetAllTargetedMessages/GetAllTargetedMessagesRequestBuilder.cs @@ -34,7 +34,8 @@ public GetAllTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter reque { } /// - /// Invoke function getAllTargetedMessages + /// Get all targeted messages sent to a specific user in group chats and channels. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -57,7 +58,8 @@ public GetAllTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter reque return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Users.Item.Teamwork.GetAllTargetedMessages.GetAllTargetedMessagesGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke function getAllTargetedMessages + /// Get all targeted messages sent to a specific user in group chats and channels. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,7 +83,7 @@ public GetAllTargetedMessagesRequestBuilder(string rawUrl, IRequestAdapter reque return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Teams.Client.Users.Item.Teamwork.GetAllTargetedMessages.GetAllTargetedMessagesResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke function getAllTargetedMessages + /// Get all targeted messages sent to a specific user in group chats and channels. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Invoke function getAllTargetedMessages + /// Get all targeted messages sent to a specific user in group chats and channels. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class GetAllTargetedMessagesRequestBuilderGetQueryParameters diff --git a/src/Teams/wrapper/v1.0/Client/kiota-lock.json b/src/Teams/wrapper/v1.0/Client/kiota-lock.json index 03f2af85223..745f1231aad 100644 --- a/src/Teams/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Teams/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "3C45EABB2A274A5F7073E99B7410EC470D8F8975E83F0A51A238C8480D67CB4F40225D7A9823575E0B8B535CE57E8CB551C84ED17116024720BA201EA05C8FD9", + "descriptionHash": "8E8D3413DE9012EC6804656968E6AA12FF16C4D7EE88AC2918A4E74C6F2A716289A51834E33733B272C2685C166E5ED17747580AD573A733E53F87D7E7B62FDF", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Teams.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgChatMember.g.cs index d09606e1502..8d53c6b1c39 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgChatMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelAllMember.g.cs index a628d5a082d..79785764095 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelMember.g.cs index 30d596e2873..9872acbce1b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamChannelMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamMember.g.cs index a04deba6a48..5420b7ec214 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelAllMember.g.cs index 94df03086d8..5a33b7e5527 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelAllMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelMember.g.cs index cadacd06c4d..b54a28fdf07 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgGroupTeamPrimaryChannelMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelAllMember.g.cs index 7930f15296d..1b486b749fd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelMember.g.cs index 9ce84d8970a..fbe4b2bd919 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamChannelMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamMember.g.cs index cd2ed177894..7a0708e8629 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelAllMember.g.cs index 8fd0e74c6a6..4229d780936 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelAllMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelMember.g.cs index d797d0bdb7c..d58416798d3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamPrimaryChannelMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelAllMember.g.cs index 7f5bde3ff0f..7db391d36d3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelMember.g.cs index fa5f33b9428..e0fd77701b5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgTeamworkDeletedTeamChannelMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/AddMgUserChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/AddMgUserChatMember.g.cs index 5afeb961e05..fb1701a7e0f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/AddMgUserChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/AddMgUserChatMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReaction.g.cs index f79955ff21a..40e97188947 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReplyReaction.g.cs index aa520b8c4be..1b449b3fd8d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatTargetedMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatTargetedMessageReplyReaction.g.cs index 911c8458364..28c83ce5c00 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatTargetedMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgChatTargetedMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReaction.g.cs index ca481cbbcf6..0e419cbd571 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReplyReaction.g.cs index 544377af8a3..644210c344a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReaction.g.cs index 8966f71463f..a9ce5ff22c4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs index 1d785129125..3d631dd1e4e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReaction.g.cs index 4c4509e83ba..91707e91fde 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReplyReaction.g.cs index c3863d59299..fb5d1c0f3b9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReaction.g.cs index 5453503a08a..ffe90c745e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReplyReaction.g.cs index d1031f611a9..79784dec8ad 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamPrimaryChannelMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReaction.g.cs index 3bacb734e8d..608075d5f3c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs index 5c8cd8c9ca8..629fa14ca17 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReaction.g.cs index 19bbf0d392a..81869b83eaf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReplyReaction.g.cs index ca5084dd576..ec70fba1778 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatTargetedMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatTargetedMessageReplyReaction.g.cs index 64721dec01c..040e4058a6c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatTargetedMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ClearMgUserChatTargetedMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgChatMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgChatMigration.g.cs index b4f3cd99b7f..64f14f70d93 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgChatMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgChatMigration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamChannelMigration.g.cs index 2ffa18a9ac3..94edf0c026d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamChannelMigration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamMigration.g.cs index 731f7378d20..21af62d711d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamMigration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamPrimaryChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamPrimaryChannelMigration.g.cs index 47aab91b315..21befdd3048 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamPrimaryChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgGroupTeamPrimaryChannelMigration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamChannelMigration.g.cs index 9ac6c98f592..2631841bf81 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamChannelMigration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamMigration.g.cs index 6094ec757df..2924085ee75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamMigration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamPrimaryChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamPrimaryChannelMigration.g.cs index e2f43e1caa5..3c5d12d07a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamPrimaryChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamPrimaryChannelMigration.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamworkDeletedTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamworkDeletedTeamChannelMigration.g.cs index df7c5feeb18..abf8792958d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamworkDeletedTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgTeamworkDeletedTeamChannelMigration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgUserChatMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgUserChatMigration.g.cs index 377c5235dbd..a7841371f7d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgUserChatMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CompleteMgUserChatMigration.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgGroupTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgGroupTeamScheduleTimeCard.g.cs index c82bb8c2f1d..e2b13d10314 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgGroupTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgGroupTeamScheduleTimeCard.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgTeamScheduleTimeCard.g.cs index 8f0746d12de..0e0a871f729 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/ConfirmMgTeamScheduleTimeCard.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CopyMgGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CopyMgGroupTeam.g.cs index cc04fccaa45..758d8f8c3f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CopyMgGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CopyMgGroupTeam.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/CopyMgTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/CopyMgTeam.g.cs index 01effc714fa..d46bc3e66a8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/CopyMgTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/CopyMgTeam.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel.g.cs index 27714297861..4ffdb8daa77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannelCount.g.cs index 2af2a7b72e3..02fee6075e0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_Get.g.cs index 72e87d14b01..0e8cfb23821 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_List.g.cs index 3cb47ffa6e2..341e9d5651c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllGroupTeamChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel.g.cs index b0744dd9d5a..3f1d2a71887 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannelCount.g.cs index 5ac25e2492c..42f14fdd225 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_Get.g.cs index 074f390cd80..39db1b14362 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_List.g.cs index d54ba2a6900..4c43c45baf5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamMessage.g.cs index 2c37b7addc3..669d29c7ea4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamMessage.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamworkDeletedTeamMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamworkDeletedTeamMessage.g.cs index 2f9b864a8ca..feb0f7fd699 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamworkDeletedTeamMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllTeamworkDeletedTeamMessage.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage.g.cs index 5442ad4dcbd..9837d0f768b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_Get.g.cs index 021d66b54a1..7eb02c8fcbb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_List.g.cs index d5b0753747a..40f18f1d373 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAllUserChatMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp.g.cs index 429af398c48..2fc9db857b3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppCount.g.cs index 1321b6360df..74b7fb93d22 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition.g.cs index 8f61dc60b0b..1f6801d3382 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppDefinitionId : TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionBot.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionBot.g.cs index 443792a0761..fe144ebfff5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionBot.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionBot.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionCount.g.cs index 4ad2fc4c1fc..7dfcc99a5be 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinitionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_Get.g.cs index 11a7dec78c8..d9f90457661 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_List.g.cs index e46f68f057b..36856966867 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamAppDefinition_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_Get.g.cs index 9776cf9b96b..02323d3eb77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_List.g.cs index c894c8f26db..f73b8671d51 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgAppCatalogTeamApp_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat.g.cs index f752446c305..9da64352087 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatCount.g.cs index c4864c5743f..df622d2209c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp.g.cs index 9d4f317ffcd..6ac5425efe6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppInstallationId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppCount.g.cs index 9b42e06804c..93dd05a0e4a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamApp.g.cs index 6749c639e01..4273158e72e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamAppDefinition.g.cs index b59db53dfba..3d928795313 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledAppTeamAppDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_Get.g.cs index 84167e05b5f..8002cca3675 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_List.g.cs index 5e7f436ac00..97411177c4d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatInstalledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatLastMessagePreview.g.cs index bfe5f4b8ae5..a2178c1f1d4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatLastMessagePreview.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember.g.cs index 78ef032771c..9766d7d579b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMemberCount.g.cs index bb17b4ede9d..7f3435380ef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_Get.g.cs index 06a5ce07308..fe57f8a57c1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_List.g.cs index b6f34ed914b..9f605611e7c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage.g.cs index d6cb79a7247..8306bc9fc68 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageCount.g.cs index 9da14bb729b..62b1d84df9f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageDelta.g.cs index 92eb60fb836..ff743fed5f3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent.g.cs index 8eeafa825ee..3b38ebccf23 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContentCount.g.cs index c066b864b11..35eb094f095 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_Get.g.cs index f049b2e95e0..3cd09fe8d5c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_List.g.cs index f7be6028fd1..bf4f1a56e3d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageHostedContent_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply.g.cs index 37e42a05b83..3b4b3e007f5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyCount.g.cs index 976ca9374f9..07ae331c3f6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyDelta.g.cs index c85287cc3f3..a713c5ed0b6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent.g.cs index 6167e8cde0c..e7177a1e618 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContentCount.g.cs index fe5dfe66988..6801fd84874 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_Get.g.cs index 3f63c9d861b..220a20f6084 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_List.g.cs index 6ccfe5bf0f0..704210f2f77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReplyHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_Get.g.cs index 7eb888c16f4..9a19298d4cf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_List.g.cs index 9c7f2eb27b4..451d69af0ce 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessageReply_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_Get.g.cs index 0db287fd8eb..b72328d026f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_List.g.cs index 0a936a6438e..907a15be281 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant.g.cs index 83b779c8fe0..1518f8896e7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceSpecificPermissionGrantId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrantCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrantCount.g.cs index 6de1ac985bd..a5b29fcd048 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrantCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_Get.g.cs index 2881aacc4c5..3e9ac5451fe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_List.g.cs index f47a65cf7bc..4067417e835 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage.g.cs index 94992086ff7..f81185cc1ed 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PinnedChatMessageInfoId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessageCount.g.cs index 4288e5b96e5..61519a7bc1e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_Get.g.cs index 19382f2ab12..65a64481c5f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_List.g.cs index 2244dbf05ae..c30d3c74c22 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatPinnedMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatRetainedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatRetainedMessage.g.cs index da9611c01fc..993c49e1d8f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatRetainedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatRetainedMessage.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab.g.cs index b595bedfff7..d067dd70035 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabCount.g.cs index 8fb4dd9e3af..89362b0c385 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabTeamApp.g.cs index 5008cd57caf..c88d1dc4b99 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTabTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_Get.g.cs index b92d78d7b5e..960e4b316e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_List.g.cs index 20a612e137c..c89988883ef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTab_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage.g.cs index 770b24f0556..21cb037d319 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedChatMessageId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageCount.g.cs index 033e09b952e..62e03176803 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent.g.cs index 3cc81f46b98..e373f69e69e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContentCount.g.cs index df2162dd9de..1c7a4e9b198 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_Get.g.cs index 5a41653111c..cd44f3c36e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_List.g.cs index 8ab7feac75a..4803c2058a9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageHostedContent_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply.g.cs index 5455ae5e551..9ecd18aae7a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyCount.g.cs index ae3a4c352f7..82a564afee8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyDelta.g.cs index 7407a59ca63..a4093db06d2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent.g.cs index 731cc08d357..2a37044452d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContentCount.g.cs index 938191f9db9..e7116313e6d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_Get.g.cs index d52c8f4bdae..7bc2c9cf3ac 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_List.g.cs index 4bb0bee637d..416dd1d8adf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReplyHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_Get.g.cs index 422d6f40039..596bbe3c65f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_List.g.cs index 97d86a754b5..f5998702a15 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessageReply_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_Get.g.cs index e09972b10bf..b961e65836b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_List.g.cs index 859eb7dee9c..cf356bb84a2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChatTargetedMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_Get.g.cs index db30d759537..942c47b4a7b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_List.g.cs index 5790d1f9e91..fc5040340e8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgChat_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeam.g.cs index e86bcb58f88..84faf565d03 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeam.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel.g.cs index f5bfd41dbc5..aa96802d608 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelAllMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelAllMemberCount.g.cs index 2a521731a9b..af9ce8f9674 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelAllMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelAllMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelCount.g.cs index 7db9c5495f3..3afc9025068 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp.g.cs index 76701e07920..9c6b21470e5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledAppCount.g.cs index e8a52297db5..7d321962c27 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_Get.g.cs index d9328de764e..36ed94a2b94 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_List.g.cs index cee44ccabfc..06404a34278 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelEnabledApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolder.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolder.g.cs index 19bf16de7b3..2f2ffdd7693 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolder.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolder.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolderContent.g.cs index 8d8938bad9b..50b5b2600e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelFileFolderContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember.g.cs index d8747643620..b900b351a5d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMemberCount.g.cs index 90b7ef82a10..0d45cde8258 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_Get.g.cs index 5cde610c626..1a291ff7ad2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_List.g.cs index 50468a35dc7..c3153702bce 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage.g.cs index e87337168cb..f7a1fc0810f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageCount.g.cs index 21614d0f302..c3cb9502935 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageDelta.g.cs index b72bb2e7b96..ea55cc885b9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent.g.cs index f66285ec81b..ed6f9b24efb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContentCount.g.cs index c681cd363eb..b813d64ad5f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_Get.g.cs index e374710ced5..fe9993061b9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_List.g.cs index 5e704e5fbc0..4acc25daeef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply.g.cs index 98cd5d2d918..fee19e454bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyCount.g.cs index e6c590bfed2..ca4aaa725b3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyDelta.g.cs index 921b7da56e9..159baa6389d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent.g.cs index 09dc218080f..1b376d106c0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContentCount.g.cs index a6ecb44604b..08b4510a0f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_Get.g.cs index 573441c531d..1bd33c38291 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_List.g.cs index f9905c06378..ed107720853 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReplyHostedContent_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_Get.g.cs index 901d9d7860b..a932b9fa680 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_List.g.cs index 90844b282b6..e2a772cf511 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessageReply_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_Get.g.cs index f1073456415..39b13f965a9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_List.g.cs index 2598d266ec2..b04733740f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelRetainedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelRetainedMessage.g.cs index 1c262609035..cd11f0b286f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelRetainedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelRetainedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam.g.cs index b8c5392c991..b4ebeeb8055 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedWithChannelTeamInfoId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember.g.cs index e284361fdae..37c690cfd64 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMemberCount.g.cs index 71e7daa4ff4..c4a52421a46 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMemberCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_Get.g.cs index 0abb9c9eaf8..9319568b7af 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_List.g.cs index 071208e7e0c..968c7c3c22c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamAllowedMember_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamCount.g.cs index 0d5dfc121f0..8015cfc8b02 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeamCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_Get.g.cs index d315450ff29..98bec2c7426 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_List.g.cs index 544c57ce8bf..f28ef05e50d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelSharedWithTeam_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab.g.cs index 00a09a7a53d..eb206643c6c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabCount.g.cs index e9a6d0c81a8..a691e8770ec 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabTeamApp.g.cs index 7ebd2ebc84b..08977a8df33 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTabTeamApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_Get.g.cs index dfc101bdccb..ceb5a692b3b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_List.g.cs index 07279f2a0a1..576b47666a3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannelTab_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_Get.g.cs index a8e7e2b84dd..518639412f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_List.g.cs index d36cfcc33b4..81980b42d09 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroup.g.cs index e2e20e90ce7..1de101000e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningError.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningError.g.cs index 9bb1919c11b..4e28ed45115 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningError.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningErrorCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningErrorCount.g.cs index 23b873f90dc..cc72c7a1268 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningErrorCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel.g.cs index 914e3e6fe55..1c52e32d45a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannelCount.g.cs index 7a0e18ee678..4d0f1ef94cb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_Get.g.cs index 42084c801e6..1b0b7742398 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_List.g.cs index 9e8b10920ee..10235ce8964 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamIncomingChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp.g.cs index 172c7d83066..a50dab17993 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppInstallationId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppCount.g.cs index 0ae61b0a460..0acfb0c51be 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamApp.g.cs index 622c8bd6b39..1b3d612eff6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamAppDefinition.g.cs index 99322538b39..5ab66325c42 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledAppTeamAppDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_Get.g.cs index f37f018d741..7aa3de8015b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_List.g.cs index 9c6b6374ff1..aea3b1a9180 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamInstalledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember.g.cs index 39d46e6710c..4d654f43b28 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMemberCount.g.cs index e23bf7c10f8..6167a7a1ac6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_Get.g.cs index 24ed222f681..92eafbc5778 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_List.g.cs index 442f81cc0a4..56329757ec0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation.g.cs index 7b517c06fa0..c93a8fef2e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAsyncOperationId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperationCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperationCount.g.cs index 6537b974733..748b964809d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperationCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_Get.g.cs index 64ceb951dc1..33b19d345d9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_List.g.cs index 3b43f3da77f..9f56122e94d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant.g.cs index 019858b89f9..952e665646f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceSpecificPermissionGrantId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrantCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrantCount.g.cs index 0290c90a965..dcb08a29870 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrantCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_Get.g.cs index b84d3edd740..5eeb0950732 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_List.g.cs index 1cc85fdd6b6..c6f322351f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhoto.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhoto.g.cs index 36f96f9dd1c..3bc5ddd318a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhoto.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhoto.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhotoContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhotoContent.g.cs index b78c4c1b2db..8a4e4fbc118 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhotoContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPhotoContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannel.g.cs index a927c42dcd7..7a2567c6150 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannel.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelAllMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelAllMemberCount.g.cs index e28b2513208..561b067c076 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelAllMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelAllMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp.g.cs index def308d79d9..1a474157fe5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledAppCount.g.cs index 04bb93f8213..d64af1a5b10 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_Get.g.cs index 9dbdbfc9924..30b0157ceea 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_List.g.cs index aedc6b3209b..f67c3f1a7f9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelEnabledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolder.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolder.g.cs index a87726c2670..4321da17e77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolder.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolder.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolderContent.g.cs index af8140cffd0..bab483c56d4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelFileFolderContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember.g.cs index 1a28e635e4e..5d60b9494eb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMemberCount.g.cs index d59f39bbe71..55171f92b6e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_Get.g.cs index 5d8542852b8..d0fbdec0c73 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_List.g.cs index 0f683dd52e5..292689deb9f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage.g.cs index 6642c8f5eb3..df931860f4f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageCount.g.cs index 2f4b9ffc694..c550b536e1b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageDelta.g.cs index 1c6f5bedc81..3ef42d29d1e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent.g.cs index 633967179d1..9850116ab82 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContentCount.g.cs index 3924a68ad54..d8499ab8b65 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_Get.g.cs index 1dae8755a85..378a26ebfdb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_List.g.cs index f2c2552dccf..f52c8ecf461 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageHostedContent_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply.g.cs index 4792f1c6fc3..8240a020290 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyCount.g.cs index 9531bc8fe28..46e9ab3d615 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyDelta.g.cs index ab0ffb45d04..b6346968e1c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs index 2782a67f1f6..f7f97e5a947 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContentCount.g.cs index 2251a852b1e..3adca8fdd45 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs index e0c99edf213..40372d60a58 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_List.g.cs index 589ca25c312..19e016513c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReplyHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_Get.g.cs index 5c1e1a0ec36..dd261effb13 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_List.g.cs index 04aceeaf8ae..9fe10c26947 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessageReply_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_Get.g.cs index 93202991acd..e6d9b26e5e4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_List.g.cs index 677b6c38ad7..87a1811cb58 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam.g.cs index 83ca37b7aa5..5bf32550f68 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedWithChannelTeamInfoId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs index a86df1caaea..6d201ee3fa7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs index 5de1138e712..06d1f1c4c9c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs index 3adfb5c8120..1c5aad3e2d1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs index 53565b790b8..c62c185a9ed 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamCount.g.cs index 2c496beda52..a8f8e8fb0f9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeamCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_Get.g.cs index c641f2b9b36..fd99ce03211 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_List.g.cs index a750abb1eeb..f3f00e5d9ef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelSharedWithTeam_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab.g.cs index 7cf3df6e6fa..7e9341a223d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabCount.g.cs index 30391100b5e..b638d36f11e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabTeamApp.g.cs index 90655dd6add..0520c387b23 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTabTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_Get.g.cs index 1cf26b96db8..687dc48624b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_List.g.cs index 8cf07335550..16407562e72 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamPrimaryChannelTab_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamSchedule.g.cs index 34d305e8b13..d446abe3dea 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote.g.cs index 2f6e9953415..67df27b8852 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DayNoteId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNoteCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNoteCount.g.cs index 126302240dd..d9974c247d3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNoteCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNoteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_Get.g.cs index c430d6efb42..331fca73c9e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_List.g.cs index 462a2df2b6e..615a8ae8d3b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleDayNote_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest.g.cs index 61964afb014..3fd2af151a0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OfferShiftRequestId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequestCount.g.cs index 5d7cba110ea..ed365cf4662 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_Get.g.cs index 3d92e83beaf..007b790ee15 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_List.g.cs index be094458fb8..c3a2e321530 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOfferShiftRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift.g.cs index 2c20ee9d01a..4105ed6f15a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OpenShiftId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest.g.cs index 35d1a020497..34580fbe697 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OpenShiftChangeRequestId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequestCount.g.cs index 76ae6ffac32..1d6e4b709f1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_Get.g.cs index 0dafbdcdcbb..e96ff3e9fcc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_List.g.cs index 9b01fe117f6..582660302bd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftChangeRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftCount.g.cs index 10709edddb9..7654fb11749 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShiftCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_Get.g.cs index dbef64e76aa..c6f5069681d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_List.g.cs index d613b35ffc2..1396d867b3e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleOpenShift_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup.g.cs index 39392dfbc0c..2920ca87f77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SchedulingGroupId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroupCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroupCount.g.cs index f3ea985e9dc..060783bc9cd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroupCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_Get.g.cs index c5fca72ec66..f4d27dbab9c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_List.g.cs index e4ddc620033..e04057ab978 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSchedulingGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift.g.cs index e24c69a1cdf..ab0d4672790 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ShiftId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShiftCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShiftCount.g.cs index a896f02693f..3247d681f87 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShiftCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShiftCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_Get.g.cs index 5848f8af27f..a5b589f441a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_List.g.cs index f23bf04c869..79ceb83ea99 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleShift_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest.g.cs index f6477c72512..c446d2b1bb2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SwapShiftsChangeRequestId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequestCount.g.cs index 43922fd4551..db7eaa2eafc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_Get.g.cs index c9f8f7bfda8..37c60238d5c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_List.g.cs index 5366e6bf0ab..f1923938a1c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleSwapShiftChangeRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard.g.cs index 1ff91a7682f..797288500dc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeCardId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCardCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCardCount.g.cs index 4ca580f2dd2..51a029f4204 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCardCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCardCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_Get.g.cs index ea4b41a7d6d..08fd070e3c8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_List.g.cs index 14597bfb324..9c041079817 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeCard_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff.g.cs index 2049421ab01..f74b6fcc6c0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffCount.g.cs index 11707d1a6db..bd595737007 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason.g.cs index c72d399faae..eea4db04186 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffReasonId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReasonCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReasonCount.g.cs index aa982241164..42b9f940031 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReasonCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReasonCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_Get.g.cs index f532f2bc1d5..acc84eee1b7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_List.g.cs index 20bdd0cbc20..5cb671bd909 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffReason_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest.g.cs index a1dc13bfd2d..06875228613 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffRequestId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequestCount.g.cs index 031406c4fa0..987ffb6040f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_Get.g.cs index b25d4132652..5d405f4817a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_List.g.cs index 806876c0124..9105efe5177 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOffRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_Get.g.cs index 25c0fb28461..22ca1c3c9fb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_List.g.cs index b24398991e8..3888ad4bc5f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamScheduleTimeOff_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag.g.cs index fa458dd3a3a..310080ab6e8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamworkTagId : GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagCount.g.cs index f53885ae24c..27b9aeea7d6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember.g.cs index fe4852c43c0..ebd1d713ea9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamworkTagMemberId : TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMemberCount.g.cs index 68c566954e4..663adcf68fc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_Get.g.cs index 6f228061d40..14a4bb53cfe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_List.g.cs index 6c87dd4ab61..bad040a3fe5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTagMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_Get.g.cs index 3303dafa05e..64a3a96968d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_List.g.cs index ae5f350424b..7c672f38c59 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTag_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTemplate.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTemplate.g.cs index 0ae97a3e6fa..542a10219d0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTemplate.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgGroupTeamTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam.g.cs index 9b3f711a95b..40455125ef1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel.g.cs index 0812893a72d..e04c65d3228 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelAllMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelAllMemberCount.g.cs index 8e6f2182cdd..9ff2d955576 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelAllMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelAllMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelCount.g.cs index 5d3a941bcf1..f6d54cb2a5a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp.g.cs index 6f3020b0753..e3770462431 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledAppCount.g.cs index 91b8e8acc13..6c3ccffe542 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_Get.g.cs index cd9ab1d1f44..d87ff143312 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_List.g.cs index 85afb775816..47ad6473d5b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelEnabledApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolder.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolder.g.cs index ad1f974245b..f1192613a7f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolder.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolder.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolderContent.g.cs index cd893e98118..99d5ed6ccbd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelFileFolderContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember.g.cs index 90b919e9e14..aeec00bdbde 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMemberCount.g.cs index 014bfffb4b6..cbb0959f589 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_Get.g.cs index 717031f0c0a..7c3c5830b90 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_List.g.cs index 444df3cf988..db0832ea2e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage.g.cs index cf28c043fce..365c7a6fec6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageCount.g.cs index c70cf81b588..ba05a000bac 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageDelta.g.cs index ab5c339f2c3..f0c782f55e0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent.g.cs index e2c3bf89e2b..59dd820c7b2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContentCount.g.cs index 609cc91a855..7d9465bfb97 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_Get.g.cs index 1d732448800..601c63a817b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_List.g.cs index ab3b91fee45..1f856bc1c86 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply.g.cs index 0ae7d2e9202..68d5fe8f546 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyCount.g.cs index dcefc958384..372c69ad63a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyDelta.g.cs index 92e452da5ea..5cf3d393fac 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent.g.cs index 75b8dacf1f9..d76b25df4c2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContentCount.g.cs index 10711e94deb..f82bc8ea301 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_Get.g.cs index badff980931..9ee9883b00a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_List.g.cs index 5e416d4cd13..e1328701340 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReplyHostedContent_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_Get.g.cs index 967835c24c0..74a967d1bb7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_List.g.cs index 23f0ce8cdf0..301b508adf5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessageReply_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_Get.g.cs index 43df25b3a37..2a53d1c5e9c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_List.g.cs index 1a012d730a3..87a1dd5b3d4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelRetainedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelRetainedMessage.g.cs index 5ac7633a848..884eb15874d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelRetainedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelRetainedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam.g.cs index 02c1ebf8ab0..f670d401cd5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedWithChannelTeamInfoId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember.g.cs index 38ede9454ec..5fb41bc22f7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMemberCount.g.cs index 53fd6ba2ef1..e2d08d46e2e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMemberCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_Get.g.cs index 84f818018d2..d02cd73afbd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_List.g.cs index 8423befb40d..4f66abbae24 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamAllowedMember_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamCount.g.cs index faf5a0b9422..5f65e9abb75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeamCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_Get.g.cs index 082a98193dc..b605fff6ed1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_List.g.cs index 5ad04a61605..6927f87f94b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelSharedWithTeam_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab.g.cs index d2a817ff123..43a17e8cf4c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabCount.g.cs index 19709cab259..d8c2cc5f847 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabTeamApp.g.cs index 9880c3b386f..10c85a6d703 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTabTeamApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_Get.g.cs index 4b6fce8be47..08644145c28 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_List.g.cs index 40a25253598..be450135331 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannelTab_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_Get.g.cs index 76a811745a3..25eb07df25b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_List.g.cs index f7536ff991e..51f0fb0e244 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamCount.g.cs index 1b617075577..500386bb436 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningError.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningError.g.cs index bd14238c88a..feba1f8cd3d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningError.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningError.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningErrorCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningErrorCount.g.cs index c4f2f874560..3b275e6d764 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningErrorCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamGroupServiceProvisioningErrorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel.g.cs index 979fe65bfb3..8948460d174 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannelCount.g.cs index 6f339d5ae41..d133032e391 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_Get.g.cs index 3c6fa5bf3e9..a4672489723 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_List.g.cs index fce0630d33a..8899252820a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamIncomingChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp.g.cs index cdbaeb3c88f..0ae85426a52 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppInstallationId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppCount.g.cs index cbc0c21bf4f..0aef9661041 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamApp.g.cs index 76eaded5316..882454138b1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamAppDefinition.g.cs index 47c349a62ec..8cd893f6a40 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledAppTeamAppDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_Get.g.cs index fc665919c1a..50b21b2adc3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_List.g.cs index e0709f2c87e..5b7261aa82f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamInstalledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember.g.cs index f738af3998f..d9604c8eab9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMemberCount.g.cs index de5f036fc0a..57117a0350e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_Get.g.cs index 67a1931d088..6c4c14fdf6a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_List.g.cs index 680ebe38414..6f99b257d6f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation.g.cs index 10cb52dca0c..435544cbb15 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAsyncOperationId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperationCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperationCount.g.cs index 410a54c5ed3..316bbb67b1a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperationCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperationCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_Get.g.cs index ee71883acfa..3151618686a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_List.g.cs index 308d5d61353..0aa03f36bb0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamOperation_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant.g.cs index 4eae8e0c0fd..c0de431f753 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceSpecificPermissionGrantId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrantCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrantCount.g.cs index 7a78748816a..513baf3f953 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrantCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_Get.g.cs index 1ff7ee85c0e..c63e277ec4c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_List.g.cs index e1509b57212..5faaa535766 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhoto.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhoto.g.cs index 6270d0b97fd..d2b55b34d33 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhoto.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhoto.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhotoContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhotoContent.g.cs index 433f56b0580..944d4291ed3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhotoContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPhotoContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannel.g.cs index 56e475ec6e9..6d02b71b3f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannel.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelAllMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelAllMemberCount.g.cs index 880d4222069..4007d1846f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelAllMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelAllMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp.g.cs index e8c98d14a20..551d3c60160 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledAppCount.g.cs index f7c0343eec1..d9663b34e39 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_Get.g.cs index 6d19e744892..ab3c96add0d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_List.g.cs index 1e77239956a..4bc3a630e36 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelEnabledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolder.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolder.g.cs index 34ab0f9a404..3180a538547 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolder.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolder.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolderContent.g.cs index 964eb249ec8..400bba16a1d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelFileFolderContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember.g.cs index 2a23e566aa2..7bcaf0e05b6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMemberCount.g.cs index 095ea9121e2..9c2e8b56fa6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMemberCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_Get.g.cs index c7eb8e49b9a..577ae2cb6b2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_List.g.cs index c71c8d20a31..f731f9d31fe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMember_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage.g.cs index 8eff8df9232..5cef66cb1a0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageCount.g.cs index 88ccb80338c..84fb892b213 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageDelta.g.cs index 429e1bdabd2..c86dd065a85 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent.g.cs index 5afc8694099..2ff8289cc81 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContentCount.g.cs index 59138cee173..f1e4a67338f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContentCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_Get.g.cs index 5853059f10f..8c219f1951f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_List.g.cs index 1563e7ed6da..45df22f6a2f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageHostedContent_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply.g.cs index de6141238b4..76544ad8389 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyCount.g.cs index 013a42b7a27..00b9109fdc7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyDelta.g.cs index dc9efbde022..435d87b5129 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent.g.cs index 75b812b925f..ce72642016d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContentCount.g.cs index efb3e833ae7..f65e583ac88 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs index 9dcf39766eb..f3045290a62 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_List.g.cs index 11cfc011d57..207156f3d3a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReplyHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_Get.g.cs index 343defec10a..9482fd9a5db 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_List.g.cs index b2cdd9525ab..44d65fe095f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessageReply_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_Get.g.cs index cd391143a85..ec958ece7cc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_List.g.cs index c34347e38af..f1bd2c4c22b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelMessage_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam.g.cs index 1402be02320..fbbee397bb3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedWithChannelTeamInfoId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs index df7eb944262..6455c5cb958 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs index 973deea10a2..6d03140cf86 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs index 1a0a42ce7a7..1829b535ab6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs index 6c1f570f420..dda1b6b1c38 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamAllowedMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamCount.g.cs index ebc114123b6..13a31493a75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeamCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_Get.g.cs index 0a5cc65fd94..2c13480260d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_List.g.cs index f64dfb22005..f6b099722cd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelSharedWithTeam_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab.g.cs index f1c812a79e2..961fd4bd39f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabCount.g.cs index 9562c5d1345..4821df7cf4c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabTeamApp.g.cs index 50b5d5ebd9c..32d148df230 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTabTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_Get.g.cs index e82e185a722..c3c01103d70 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_List.g.cs index aa072ec9f3d..863e0e38cff 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamPrimaryChannelTab_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamSchedule.g.cs index 6f254ada62c..eaa9de72c63 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamSchedule.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote.g.cs index 95542d84884..d03e1a29d62 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DayNoteId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNoteCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNoteCount.g.cs index c640b62e60d..fbcff166a95 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNoteCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNoteCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_Get.g.cs index bff50a1e449..cc353be17a6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_List.g.cs index 65ddb0f08e5..3f9ddc590a0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleDayNote_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest.g.cs index 5efaa4f5376..9998704c03c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OfferShiftRequestId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequestCount.g.cs index dcd3b9b41bd..663bb95ec4f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_Get.g.cs index 74c64b0d0ab..521f9c1fb55 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_List.g.cs index 7bfcc70c987..5ac4b5a71e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOfferShiftRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift.g.cs index 2d78d40fd7f..4ec5a080abe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OpenShiftId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest.g.cs index a0fef95f515..a8a0f6b254f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OpenShiftChangeRequestId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequestCount.g.cs index 645774682a1..458daa74dd6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_Get.g.cs index 90dbf961d5e..4af150c300a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_List.g.cs index 922c275f879..f6836223eff 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftChangeRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftCount.g.cs index 524400e567e..8dfb3f05b72 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShiftCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_Get.g.cs index 1b6308290c4..cead16b7ec3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_List.g.cs index 10f5420e96a..9aa942145e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleOpenShift_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup.g.cs index 82093b7703a..4b38402951c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SchedulingGroupId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroupCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroupCount.g.cs index 9a92dcfd290..390e86b9ada 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroupCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroupCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_Get.g.cs index d407089dc33..487795d598d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_List.g.cs index 9be3122897d..5f08e56859b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSchedulingGroup_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift.g.cs index 261de02f4bd..30c23cde162 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ShiftId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShiftCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShiftCount.g.cs index d7ac483c5a7..82cc6b99435 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShiftCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShiftCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_Get.g.cs index 853ad4a1165..37f558040a6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_List.g.cs index 6f8b93078da..94d6953abc8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleShift_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest.g.cs index e31db6647e9..6074b558afe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SwapShiftsChangeRequestId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequestCount.g.cs index eb931017f81..24994c08230 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_Get.g.cs index 21aeeb62b1b..3b469c603ab 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_List.g.cs index 3d1c31a3b1e..038e17b1101 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleSwapShiftChangeRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard.g.cs index d9ef5754e21..9d7cc1d485f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeCardId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCardCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCardCount.g.cs index f03315d3f86..85467e5516c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCardCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCardCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_Get.g.cs index cd98d106d19..41c1637a721 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_List.g.cs index 998bbcfb384..b7e157a191b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeCard_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff.g.cs index 10095dc35d8..432751d6f11 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffCount.g.cs index 5e3a08c3707..2211eb68555 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason.g.cs index 79c4370c9f2..f37055c55ea 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffReasonId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReasonCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReasonCount.g.cs index 71a890d3fee..864313ceb02 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReasonCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReasonCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_Get.g.cs index 10c4b9fa374..e3bcf16dfd4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_List.g.cs index 3f6f1cef974..b85bd316113 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffReason_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest.g.cs index 9086fea703a..c168869f5a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TimeOffRequestId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequestCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequestCount.g.cs index efb5aa0c07f..d75d5aede9d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequestCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequestCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_Get.g.cs index 96e0bfded4e..6674bbe901c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_List.g.cs index 8c3f0644691..0f979583437 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOffRequest_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_Get.g.cs index 220e45bb195..c6df4b6eb01 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_List.g.cs index 35afb9db2d9..b525f3ed13f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamScheduleTimeOff_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag.g.cs index c93223e2c1c..6c533f99ae4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamworkTagId : TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagCount.g.cs index d591e1a30e4..11143238319 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember.g.cs index 24b750aac31..054fca6399d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamworkTagMemberId : TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMemberCount.g.cs index e3aa7ae37a9..3a2ee41880c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_Get.g.cs index df78280f5cd..f8ed1c700c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_List.g.cs index 42245417d7a..1ad00bbaef1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTagMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_Get.g.cs index f22b6865c21..4bac26274cd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_List.g.cs index 84bafb4dc2f..ab15ecb94b7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTag_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTemplate.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTemplate.g.cs index df5c91fd5ec..8c9c26742b3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTemplate.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamTemplate.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_Get.g.cs index 52cfb9a9b76..6592bd015e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_List.g.cs index 26cbc989dd7..641816aa850 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeam_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamwork.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamwork.g.cs index 2de1c1e9715..9faad8f475a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamwork.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamwork.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat.g.cs index 016e4fd6aaf..e83ed0d0022 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeletedChatId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChatCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChatCount.g.cs index a5d99b89742..079882b10ba 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChatCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChatCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_Get.g.cs index ce4110d6917..b45db6a6b10 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_List.g.cs index 2f8c4ce7b75..3c25ee823d8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedChat_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam.g.cs index 448650e60a1..9bd49882751 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DeletedTeamId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel.g.cs index ef987575d59..8f0172fed59 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChannelId : DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelAllMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelAllMemberCount.g.cs index c14b429c1e4..0b136b72c7a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelAllMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelAllMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelCount.g.cs index 85702149d33..241cfbde87e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp.g.cs index 96b0f31c2ac..d50b620a0ae 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledAppCount.g.cs index d9472349ce7..3ea60aba563 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_Get.g.cs index de3f538f09b..b06fedeea14 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_List.g.cs index 6aaecdab580..0ddd48614e8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelEnabledApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolder.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolder.g.cs index 797fc1ec8c3..a694a1302a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolder.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolder.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs index 02e7373de4a..7175d672e7a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember.g.cs index eb610c0fec4..7d7ce377ef1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMemberCount.g.cs index 06d1c58c95c..7a491d97956 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_Get.g.cs index 7d1c7c280e7..d58a24320ad 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_List.g.cs index 9990cf1c3c5..c8f431a1511 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage.g.cs index b10642a7e48..43a11b04a05 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageCount.g.cs index 11f46810e33..cd2dbac13ab 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageDelta.g.cs index 027b3f6579b..97058bbcab2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs index 5e0e6ff279d..2692c680bb5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContentCount.g.cs index 1b74e7733ba..5d265357cd7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_Get.g.cs index 9786df3073a..fe5c5fa0f94 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_List.g.cs index 4075df9eacc..d3500bf2713 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply.g.cs index e361387edb6..450d2d8ef95 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyCount.g.cs index 96d6dbc4be5..57a57edf7aa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyDelta.g.cs index 4b8b804d8c1..cfa2e95beac 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs index 46e6a044320..d50f665f009 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContentCount.g.cs index d1ee17e39ae..53c8fee4f33 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_Get.g.cs index d24259455c5..55cb397da74 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_List.g.cs index 9b903bdc8e8..39f258d08cb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReplyHostedContent_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_Get.g.cs index d54254ee1b4..1e61673e82e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_List.g.cs index 3dee4f39f9a..28a4bc0933d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessageReply_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_Get.g.cs index 5569c6967d7..6480fa76fd2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_List.g.cs index 685db78d122..0a041c1825a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelRetainedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelRetainedMessage.g.cs index 447928673d8..f4d667e7dfd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelRetainedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelRetainedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs index 2f50172e5d8..13c165e918d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedWithChannelTeamInfoId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember.g.cs index 9ab4b51c1e4..b9c273a4404 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMemberCount.g.cs index 88d9480c138..7546cf28212 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMemberCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_Get.g.cs index ac01ec67f96..727c61071bf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_List.g.cs index dccdb4b9c70..73e3953e31e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamAllowedMember_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamCount.g.cs index 14f64f431e3..85037d833c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeamCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_Get.g.cs index 6f59a7734c3..47313cf8c75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_List.g.cs index ed9197c7e50..8b47b4e37df 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelSharedWithTeam_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab.g.cs index 099d7b93cc8..1bf28d820ca 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabCount.g.cs index aac122d5324..d288c15a68f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabTeamApp.g.cs index 45028088dc5..d3ca716ec8b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTabTeamApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_Get.g.cs index 5934926a341..518ad3e0799 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_List.g.cs index 32df69c7352..98627c04d2f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannelTab_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_Get.g.cs index 57a0f5f3adb..2546aebfba7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_List.g.cs index a79d5c548b9..73d21002e04 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamChannel_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamCount.g.cs index 28409694dde..e457f3de26d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeamCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_Get.g.cs index a880582657e..6eccf40a333 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_List.g.cs index 825c6282aa8..4dd557989af 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkDeletedTeam_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkTeamAppSetting.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkTeamAppSetting.g.cs index bf76b9e3c7f..4d2a2972c50 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkTeamAppSetting.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkTeamAppSetting.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration.g.cs index 9abad71b7b9..a24921d1304 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkforceIntegrationId : null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegrationCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegrationCount.g.cs index 7424dcc8c30..7ec849d116d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegrationCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegrationCount.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_Get.g.cs index 5dcbd8f50f6..5595a477687 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkforceIntegrationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_List.g.cs index 1b7ebc84da2..9bc5192b10d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgTeamworkWorkforceIntegration_List.g.cs @@ -115,7 +115,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -131,7 +131,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat.g.cs index 91efd0d84b1..8f5335b5eb1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatId : UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatCount.g.cs index cffcd25b4b6..cf3c7cad89b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp.g.cs index ba73d99af0e..03e02a52d7f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsAppInstallationId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppCount.g.cs index 67175bd68ba..f7da44533b4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamApp.g.cs index b6aec6e0eeb..aa5bdee71e0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamAppDefinition.g.cs index 2f191a1dfc5..80552b5d5b4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledAppTeamAppDefinition.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_Get.g.cs index 85462171ab0..af235cdd8cf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_List.g.cs index 1535785caf0..d78c73be6a6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatInstalledApp_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatLastMessagePreview.g.cs index 57851216e62..a38c48a39f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatLastMessagePreview.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember.g.cs index 27802355ffb..41d92690d34 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ConversationMemberId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMemberCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMemberCount.g.cs index 38f725bb4e1..ba2491abd4b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMemberCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMemberCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_Get.g.cs index 634adff501f..f8bb0ba17bd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_List.g.cs index 2e4120e36f3..41f8fd27061 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMember_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageCount.g.cs index 45006efe234..e70c7a47434 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageDelta.g.cs index 61b7347e623..3c1088599c4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent.g.cs index 8270cf35e28..3057ad565e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContentCount.g.cs index 27d18955672..95d726d236d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_Get.g.cs index 809c6b4795b..05083c40717 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_List.g.cs index 2addb19efc7..c4c4649b432 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply.g.cs index 9dbd3fd3cba..12f5dc0b48f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId1 : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyCount.g.cs index 7303a4c7235..dd8493bdf0a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyDelta.g.cs index 0fba308fe1d..133ef7ddb4f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent.g.cs index 8f3e96bebc7..d5a00c6e75f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContentCount.g.cs index 45a5704b36d..a99736fd795 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_Get.g.cs index 8751c824431..53180b7eca0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_List.g.cs index 4ac8ed9374e..2ac8bcda568 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReplyHostedContent_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_Get.g.cs index 1fe89e675b6..b8e1c5403b0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_List.g.cs index 257efacd838..28e57aa6ba1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatMessageReply_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant.g.cs index b859e963bf6..e2defb2fda5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ResourceSpecificPermissionGrantId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrantCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrantCount.g.cs index 903a461621f..0b12c1f3249 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrantCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrantCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_Get.g.cs index d2026cc0a80..86a009743c9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_List.g.cs index d6dc1445516..1046a18ebd2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPermissionGrant_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage.g.cs index d0553aef0cb..fb43b7bc802 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? PinnedChatMessageInfoId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessageCount.g.cs index 3cd32e7c75c..cc06c5d44f3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_Get.g.cs index 6b8df9d8194..94dc0deb094 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_List.g.cs index e0fb8cbfd9b..85079bbb8df 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatPinnedMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatRetainedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatRetainedMessage.g.cs index 85ca41c0935..e8fff6e97c9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatRetainedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatRetainedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab.g.cs index 6b38b909bc0..bc7492320a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamsTabId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabCount.g.cs index 98f72b4ceeb..8abcc845669 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabTeamApp.g.cs index 3b33dd78ad7..8524aa65dd3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTabTeamApp.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_Get.g.cs index 4dfbfbf553d..f151b47d510 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_List.g.cs index 04db0618f88..5c3c08bf4a3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTab_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage.g.cs index 54a51443553..f2b053a24ae 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TargetedChatMessageId : ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageCount.g.cs index ac6af0be64e..781233c7670 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent.g.cs index 45ba244c7d6..bb1f29d75fa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContentCount.g.cs index 9d03e3e3851..0f0c604139d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_Get.g.cs index 1972c409d43..dd39a0ba8cb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_List.g.cs index 6a2fdf6dfdf..efdd83ad904 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageHostedContent_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply.g.cs index 6e098885125..279242391d6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageId : TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyCount.g.cs index 902cb92dabb..f141868d50d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyDelta.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyDelta.g.cs index 4e9528ed3ee..c985d7b6335 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyDelta.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyDelta.g.cs @@ -171,7 +171,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent.g.cs index 3ef681bc14f..03736b7705a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent.g.cs @@ -89,7 +89,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChatMessageHostedContentId : ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContentCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContentCount.g.cs index 8ad28f2f070..1e6ca05a095 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContentCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContentCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_Get.g.cs index 1897e0480ae..cc91a6d4980 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_Get.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_List.g.cs index c985ae4af2e..97902e4b8d5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReplyHostedContent_List.g.cs @@ -122,7 +122,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -138,7 +138,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_Get.g.cs index 65c67b05314..de49d82989a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_List.g.cs index ec512708442..a1df80bae66 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessageReply_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_Get.g.cs index 55afc38f0a0..14120b0aa59 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_List.g.cs index a9376fec3e0..24f8715b63b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChatTargetedMessage_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_Get.g.cs index f5e8b1719cc..1dcd053da21 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_List.g.cs index 092d9c5fd2d..c682344e785 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserChat_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam.g.cs index ab19f665bd9..adc2b085aed 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TeamId : UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamChannelFileFolderContent.g.cs deleted file mode 100644 index f16bd452bab..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamChannelFileFolderContent.g.cs +++ /dev/null @@ -1,75 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("GET", "/users/{user-id}/joinedTeams/{team-id}/channels/{channel-id}/filesFolder/content")] - [Cmdlet(VerbsCommon.Get, "MgUserJoinedTeamChannelFileFolderContent")] - [OutputType(typeof(byte[]))] - public class GetMgUserJoinedTeamChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ChannelId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ChannelId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs deleted file mode 100644 index 44d7c7a400f..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs +++ /dev/null @@ -1,73 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("GET", "/users/{user-id}/joinedTeams/{team-id}/primaryChannel/filesFolder/content")] - [Cmdlet(VerbsCommon.Get, "MgUserJoinedTeamPrimaryChannelFileFolderContent")] - [OutputType(typeof(byte[]))] - public class GetMgUserJoinedTeamPrimaryChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, TeamId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_Get.g.cs index 7ab9074a2be..d793e0bdad1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_List.g.cs index e3ad568f8bb..d9e3947f704 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserJoinedTeam_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamwork.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamwork.g.cs index a89c5764d25..e9a492660ef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamwork.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamwork.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam.g.cs index 646c84cd691..75a922db0c0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AssociatedTeamInfoId : UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeamCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeamCount.g.cs index 4e0363abfee..bfd30617a72 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeamCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeamCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_Get.g.cs index 024cadefb20..ec3a5d3f072 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AssociatedTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_List.g.cs index 56f385f0fcb..d0af2061b02 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkAssociatedTeam_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp.g.cs index 090c365dc73..0d393743247 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserScopeTeamsAppInstallationId : UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppChat.g.cs index a7436cfe953..64975a8c597 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppChat.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserScopeTeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppCount.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppCount.g.cs index e6a85b2c509..fda401dc141 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppCount.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamApp.g.cs index c2f74af739b..605afe36fa1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserScopeTeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamAppDefinition.g.cs index 875c3aa32bd..a415e3ea668 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledAppTeamAppDefinition.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserScopeTeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_Get.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_Get.g.cs index da3d6083490..41f24953459 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_Get.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserScopeTeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_List.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_List.g.cs index afe4993cea0..bc39dc7186a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_List.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkInstalledApp_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkRetainedTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkRetainedTargetedMessage.g.cs index 9c9e27d81bb..98e6417905f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkRetainedTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkRetainedTargetedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkTargetedMessage.g.cs index a0b0a85aaf1..e30a7244e7f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/GetMgUserTeamworkTargetedMessage.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/HideMgChatForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/HideMgChatForUser.g.cs index 51b5328360f..3999de75b35 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/HideMgChatForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/HideMgChatForUser.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/HideMgUserChatForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/HideMgUserChatForUser.g.cs index 39a970183e7..a07385ac4c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/HideMgUserChatForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/HideMgUserChatForUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeam.g.cs index 39bd711c7bd..8128046a02a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeam.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamChannel.g.cs index 245f4507e1c..bfd5e370ef2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamChannel.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamPrimaryChannel.g.cs index 76637be79ed..e20ea54a710 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveGroupTeamPrimaryChannel.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeam.g.cs index 8393a9b3a16..1d88eef44a3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeam.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamChannel.g.cs index add0d5103a0..3a5b958223a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamChannel.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamPrimaryChannel.g.cs index 725e73eb2d7..dd4251a8ee9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamPrimaryChannel.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamworkDeletedTeamChannel.g.cs index 37a8b12395d..6fe4b45c337 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgArchiveTeamworkDeletedTeamChannel.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardIn.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardIn.g.cs index cf531386fb5..ab392dac63f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardIn.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardOut.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardOut.g.cs index eb89612fe03..5248d572e5d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardOut.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockGroupTeamScheduleTimeCardOut.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardIn.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardIn.g.cs index 675a8d99980..f60c2e876b4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardIn.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardIn.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardOut.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardOut.g.cs index 30a2688d1f0..d038148ead9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardOut.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgClockTeamScheduleTimeCardOut.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChat.g.cs index 17326ef5d40..051711452db 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChat.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessage.g.cs index c7b938ba9a9..d13be410cd4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessage.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessageReply.g.cs index f59b92938dc..ccca8132c28 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatMessageReply.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatTargetedMessageReply.g.cs index 66203ff3075..bd79c0cf1ec 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphChatTargetedMessageReply.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessage.g.cs index 1ecb18b3a6b..805c353667d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessageReply.g.cs index 6055e5e1d24..474c390dbdd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamChannelMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessage.g.cs index 82d258b06ed..49b3ac83840 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessage.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessageReply.g.cs index 8401270205a..52a6c562392 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphGroupTeamPrimaryChannelMessageReply.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessage.g.cs index 5dc20c4c675..6d69449fd5a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessageReply.g.cs index c146284266a..cb8f80f4aa9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamChannelMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessage.g.cs index 9839e69343a..34e228d0633 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessage.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessageReply.g.cs index 7d429a80462..8af64d5931e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamPrimaryChannelMessageReply.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessage.g.cs index 12fa2b9da82..2bca4f3ce88 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessageReply.g.cs index 371a188aca9..44f35f0d1a2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphTeamworkDeletedTeamChannelMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChat.g.cs index 73a451fca6f..a58c15cb837 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChat.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessage.g.cs index 2e2a92f4413..406b73211e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessage.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessageReply.g.cs index 87d1fc34106..bc05eca23a3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatTargetedMessageReply.g.cs index 2bab2304615..725976aaba1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgGraphUserChatTargetedMessageReply.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatReadForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatReadForUser.g.cs index 474d712ad81..61fb5e4f195 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatReadForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatReadForUser.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatUnreadForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatUnreadForUser.g.cs index 6e91e23f228..ceefd6ad926 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatUnreadForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkChatUnreadForUser.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatReadForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatReadForUser.g.cs index 5a91c21ff02..e12c34b08a2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatReadForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatReadForUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatUnreadForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatUnreadForUser.g.cs index 0bfb45455af..e65bf1137a6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatUnreadForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgMarkUserChatUnreadForUser.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareGroupTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareGroupTeamSchedule.g.cs index f57e5f0eb1e..e5af098921c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareGroupTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareGroupTeamSchedule.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareTeamSchedule.g.cs index 1646db930e3..609f2f1568d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgShareTeamSchedule.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageDelete.g.cs index 2e4892a69a5..e5dcf1ee75a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageReplyDelete.g.cs index 8036dcbb267..299dc49bfe9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatMessageReplyDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatTargetedMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatTargetedMessageReplyDelete.g.cs index 456aa83e40d..5fc5c29ed8c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatTargetedMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftChatTargetedMessageReplyDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageDelete.g.cs index 8417ff3c529..71f844d92b5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageReplyDelete.g.cs index d47eed0794f..220b38770e4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamChannelMessageReplyDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageDelete.g.cs index 619922a4e71..d71b3fc914c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageReplyDelete.g.cs index 5d0bdcab4bd..92be44bd6a2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftGroupTeamPrimaryChannelMessageReplyDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageDelete.g.cs index e9a2759471a..f89191a39fc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageReplyDelete.g.cs index 788087fa4a1..29a5d649b71 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamChannelMessageReplyDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageDelete.g.cs index 770d718c03a..24187ff78cc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageReplyDelete.g.cs index 88adf5b734f..3993a7f7389 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamPrimaryChannelMessageReplyDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageDelete.g.cs index 8d7fa35fc4c..2f1c046b1e1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageReplyDelete.g.cs index f2ebe68c8a2..a66b47bc2d1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftTeamworkDeletedTeamChannelMessageReplyDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageDelete.g.cs index 07959af933d..791506d1a1a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageReplyDelete.g.cs index d88fc3e6362..3dc5ac6da40 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatMessageReplyDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatTargetedMessageReplyDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatTargetedMessageReplyDelete.g.cs index a10ae519cba..32c6d6479f2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatTargetedMessageReplyDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgSoftUserChatTargetedMessageReplyDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeam.g.cs index d08fa2cfe7a..a9a1813bfd9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamChannel.g.cs index e679d4743aa..6fcfdfcc151 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamChannel.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamPrimaryChannel.g.cs index 695a7481e55..9a024fec42c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveGroupTeamPrimaryChannel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeam.g.cs index d00f8d584da..4e35592fd20 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamChannel.g.cs index 12c0134caab..09c3b40d2bf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamChannel.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamPrimaryChannel.g.cs index 73905eb9e2a..05820c149c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamPrimaryChannel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamworkDeletedTeamChannel.g.cs index b81a0546083..e8556284abf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/InvokeMgUnarchiveTeamworkDeletedTeamChannel.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamApp.g.cs index de401e3b2eb..790cd5cfe78 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamApp.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamAppDefinition.g.cs index 27bba5fe9f9..ba20810aba6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgAppCatalogTeamAppDefinition.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChat.g.cs index 25a474452eb..5705517b9f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChat.g.cs @@ -110,7 +110,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatInstalledApp.g.cs index c16ce6ab5b7..2445064f923 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatInstalledApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMember.g.cs index 63d5716c633..acb26fb5b31 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessage.g.cs index 127640c3c02..f5234f74073 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessage.g.cs @@ -177,7 +177,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageHostedContent.g.cs index 9a643363904..f05e4321b04 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageHostedContent.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReply.g.cs index ee54586d73f..6af6fabcb59 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReply.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReplyHostedContent.g.cs index 863850d0e61..409389f8147 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatMessageReplyHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPermissionGrant.g.cs index 4b843e4eb53..5cd77106c80 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPinnedMessage.g.cs index bbb8cf880be..f1258d2299a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatPinnedMessage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTab.g.cs index b0e798a410d..ddc69155b11 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTab.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessage.g.cs index 78734fe064e..e0f868e9708 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessage.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageHostedContent.g.cs index 703a7582912..c476657a717 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageHostedContent.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReply.g.cs index 8e4a1c69f62..f0e61d9c89f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReply.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReplyHostedContent.g.cs index 9526759684d..e5253fa5847 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgChatTargetedMessageReplyHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannel.g.cs index d476c489c73..076756d9f22 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannel.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelEmail.g.cs index c35c21c7e5f..e6baaf0f71e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelEmail.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMember.g.cs index d5b4ece4194..93e5ace6288 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessage.g.cs index 92697d5efa0..c9e2019f82d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageHostedContent.g.cs index 81b07806dc5..3a5c9ed784e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReply.g.cs index 8d619b614ac..de2871492f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReplyHostedContent.g.cs index 8923eda1e09..c587192ba80 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelSharedWithTeam.g.cs index 06adbe137d7..e5d1a051334 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelSharedWithTeam.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelTab.g.cs index cb3fc8f76b3..9b42c62bad7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamChannelTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamInstalledApp.g.cs index 60b1709165d..2e0d56a9448 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamInstalledApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamMember.g.cs index 940ac4c0967..fc13f50f3d7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamOperation.g.cs index 7adbbb46cfa..3e1853d1752 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamOperation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPermissionGrant.g.cs index 7cea58137eb..9fff377218c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelEmail.g.cs index be50ec81df9..268478e293a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelEmail.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMember.g.cs index 9c9427e7447..dcdc1c5984f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessage.g.cs index 8ae03d50a13..bfb8961af50 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessage.g.cs @@ -177,7 +177,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageHostedContent.g.cs index a6c45d36d18..1916299e185 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageHostedContent.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReply.g.cs index 356b3d6e89c..f3f9a8f03f0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReply.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs index c868b6d41cf..7eb18b8797a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelSharedWithTeam.g.cs index 86379bc2e23..d661c62aab0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelSharedWithTeam.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelTab.g.cs index 9644a88e6aa..e7626871d56 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamPrimaryChannelTab.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleDayNote.g.cs index b06ce28c8a6..c7660ab4bf4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleDayNote.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOfferShiftRequest.g.cs index abe4b6e7630..f48162faf5f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOfferShiftRequest.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShift.g.cs index e9d729f78a9..d816fc99a00 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShift.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShiftChangeRequest.g.cs index ff34b7b9549..91db96b6c2f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleOpenShiftChangeRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSchedulingGroup.g.cs index 66fd3afaf22..d383fa9b334 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSchedulingGroup.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleShift.g.cs index 2288bb556e7..7ec3ad4bff1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleShift.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSwapShiftChangeRequest.g.cs index c941ac0f4c1..df6e6b2c50b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleSwapShiftChangeRequest.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeCard.g.cs index 9c4fc81372c..13cff110e4d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeCard.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOff.g.cs index 14a48d5dccb..3facdffab82 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOff.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffReason.g.cs index 006ebed1ea5..f676844eb61 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffReason.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffRequest.g.cs index 2d5f1128f71..09da1c3841a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamScheduleTimeOffRequest.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTag.g.cs index b4a360f9361..239cc19f01b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTag.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTagMember.g.cs index 0c6e7088ff0..faf893df584 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgGroupTeamTagMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeam.g.cs index aa65ffff278..e96b5d174c5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeam.g.cs @@ -140,7 +140,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannel.g.cs index 95b9a3c03a4..062b5c355a9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannel.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelEmail.g.cs index 55869da8437..d286fa4442d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelEmail.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMember.g.cs index d990d8e5828..b1efc05a18b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessage.g.cs index f244a3473bc..f82eebe28d0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageHostedContent.g.cs index 1f3ad3d9ccb..3f74e4ef60e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReply.g.cs index 47bb76bfe5f..6bb57067c41 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReplyHostedContent.g.cs index 801833a4ef3..d087150f59c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelSharedWithTeam.g.cs index 55fbab8c975..c9011b0f7ee 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelSharedWithTeam.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelTab.g.cs index ce5e10ec8bf..d952894cda7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamChannelTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamInstalledApp.g.cs index 3c91d001c9f..6424a483cdb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamInstalledApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamMember.g.cs index b50ebef27e7..df69ce3446b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamOperation.g.cs index 2f21e03957e..54257489261 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamOperation.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPermissionGrant.g.cs index cfa737a3d2a..e30d6b7836a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelEmail.g.cs index a76c1fac57d..a4ed14b265f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelEmail.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMember.g.cs index 93e48cc498d..c3f47563ef0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMember.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessage.g.cs index bdb3d51c0b7..d7543c92521 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessage.g.cs @@ -177,7 +177,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageHostedContent.g.cs index 6135094b2fa..d5fcefe48f4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageHostedContent.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReply.g.cs index f46520ccf3b..7c018d31ebc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReply.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReplyHostedContent.g.cs index 02f47c48204..4e6147ee5dc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelSharedWithTeam.g.cs index 0072df1ff76..9b941276251 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelSharedWithTeam.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelTab.g.cs index e333f791cce..1bd2d6e37a8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamPrimaryChannelTab.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleDayNote.g.cs index 3faa8ec97b1..fad24a7789e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleDayNote.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOfferShiftRequest.g.cs index 0bc21ef8c90..ccbd039be33 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOfferShiftRequest.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShift.g.cs index c022d055602..4c6e3763faa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShift.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShiftChangeRequest.g.cs index b55f51c84d7..c4cd39da97b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleOpenShiftChangeRequest.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSchedulingGroup.g.cs index 1c60974a0dc..5c3cb2f838f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSchedulingGroup.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleShift.g.cs index eaf609c304f..a1cd360ec7c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleShift.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSwapShiftChangeRequest.g.cs index 20e3e7d545a..e29ffa13c52 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleSwapShiftChangeRequest.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeCard.g.cs index 43a8771c363..e0073013869 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeCard.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOff.g.cs index 4bcff9f3c8b..2801eeeb9b3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOff.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffReason.g.cs index 54be97925c2..ab0edc670e9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffReason.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffRequest.g.cs index 9ed5d0d9391..efe7aff6b54 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamScheduleTimeOffRequest.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTag.g.cs index ec84e3a67a6..d5adcd5ab4e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTag.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTagMember.g.cs index d1e5c30730a..51dcadaa3e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamTagMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedChat.g.cs index b0900590710..e36b36af0bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedChat.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeam.g.cs index b7aa7497c1e..38a4e4d232d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannel.g.cs index c8403b83a0b..c6ce0dbee2a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannel.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelEmail.g.cs index 3e346ceb418..7b122a7fac9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelEmail.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMember.g.cs index d78d4d47751..62ab9eb502f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessage.g.cs index 6bd25d03784..f43366ee164 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs index 1f9780cd539..02f5be24e24 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReply.g.cs index cc29e5bd428..9691f5b773f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs index 590c1c5d12a..48c4c211082 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs index cb1b35b6f5e..4e4ed2f4e39 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelTab.g.cs index 58da018ecd0..d74249de3e2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkDeletedTeamChannelTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkWorkforceIntegration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkWorkforceIntegration.g.cs index 2add152f810..c461709f73a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkWorkforceIntegration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgTeamworkWorkforceIntegration.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChat.g.cs index 669dbce13c1..0d14f690afd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChat.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatInstalledApp.g.cs index bcf2ff7901f..af5e35fb26e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatInstalledApp.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMember.g.cs index ac740995c49..509bdeb0493 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessage.g.cs index 98935ae641c..38e7ad82c8e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageHostedContent.g.cs index f22a9aa0bee..d9772f765c3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReply.g.cs index 2b87a3facd4..855014fefb7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReplyHostedContent.g.cs index fa3a6dbac7b..18ce5939893 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPermissionGrant.g.cs index 54ef9ac515d..f4e817c922f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPinnedMessage.g.cs index 3e812f7458f..cb9ca8d170c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatPinnedMessage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTab.g.cs index 2c4c464df74..bff6baca705 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessage.g.cs index bcf38f4935c..3fa64dbf253 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessage.g.cs @@ -185,7 +185,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageHostedContent.g.cs index 808c1b7955a..57b5896596b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReply.g.cs index 2bccf39d273..faef47518e0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReplyHostedContent.g.cs index 10cb86b247b..9d05867d48e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserChatTargetedMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkAssociatedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkAssociatedTeam.g.cs index 92fe60a316f..b88ba0d813b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkAssociatedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkAssociatedTeam.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkInstalledApp.g.cs index d744d3f363c..a163fbec2ac 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/NewMgUserTeamworkInstalledApp.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamApp.g.cs index 23bae577ed2..0fdd5a093b5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamApp.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinition.g.cs index 36707fdfa28..e5c9e31c235 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinition.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinitionBot.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinitionBot.g.cs index 06720725957..2cfb91fc69d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinitionBot.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgAppCatalogTeamAppDefinitionBot.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChat.g.cs index a9e54245f4b..78e2907fca5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChat.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatAccessForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatAccessForUser.g.cs index b46761193ef..f7014343489 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatAccessForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatAccessForUser.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatInstalledApp.g.cs index d76f5a01df7..932e6282227 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatInstalledApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatLastMessagePreview.g.cs index 0f131d4216d..e7c992c94ab 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatLastMessagePreview.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMember.g.cs index 06a8149b37b..ab37a199ca2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMessageReplyHostedContent.g.cs index 3ae9fe4e413..036281f83bd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatMessageReplyHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPermissionGrant.g.cs index 9a7c657d354..c257f93e480 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPermissionGrant.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPinnedMessage.g.cs index fe01da89ad3..4d731847d75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatPinnedMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTab.g.cs index f0956f755aa..0d51ad7f294 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTab.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessage.g.cs index 969f03d6fea..761668d8b3a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageHostedContent.g.cs index a1d447368f2..0eb33470a17 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageHostedContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReply.g.cs index 174b24efa76..9732bef78f8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReply.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReplyHostedContent.g.cs index 7bbd548a766..4ff7f96cbaf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgChatTargetedMessageReplyHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeam.g.cs index dcb14756e79..323e90df9a4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeam.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannel.g.cs index a62eb6d1882..9d29bd9e522 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelAllMember.g.cs index 63375a6f521..6c4de49c7cf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelEmail.g.cs index 9a2f1290cb3..a1b6b90ffef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelEmail.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelFileFolderContent.g.cs index a88c9f1dffa..3fa4e254793 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMember.g.cs index 22e8369e62a..73a92e86e15 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessage.g.cs index 204892fa164..d65146ffefc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageHostedContent.g.cs index 928239a077a..203ad210586 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReply.g.cs index 62f6e20e1d9..2fd68c2a55f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReply.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReplyHostedContent.g.cs index 24a1516769f..936ee24e696 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelMessageReplyHostedContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelSharedWithTeam.g.cs index 224d839ac4e..8fd59f77edd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelSharedWithTeam.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelTab.g.cs index c730c0a7516..0e74da67db7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamChannelTab.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamInstalledApp.g.cs index bd99a889ba6..4c072ba14cc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamInstalledApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamMember.g.cs index f1bd8b164be..37376921d85 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamOperation.g.cs index 856195dfb9a..113431feac6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPermissionGrant.g.cs index f3ba727f5e7..885f3fd9eb2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPermissionGrant.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPhotoContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPhotoContent.g.cs index 5cf59614f0c..4cbee96ef66 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPhotoContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPhotoContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannel.g.cs index 284e78d7aec..6efbd997123 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannel.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelAllMember.g.cs index f0885001771..a2cc646e6af 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelAllMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelEmail.g.cs index 3d806189bd3..f7eef388930 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelEmail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelFileFolderContent.g.cs index b443f8d96df..5ebc6761ba8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelFileFolderContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMember.g.cs index f3e87e41dbc..683780995b1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessage.g.cs index f2fb5689195..8acfed6adce 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessage.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageHostedContent.g.cs index e6701af6bdb..36bd811d540 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageHostedContent.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReply.g.cs index 6bd934263c3..fb333aca32e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReply.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs index c08c2fcf3ea..0044691c444 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelSharedWithTeam.g.cs index 1ff16fb5335..7b4c873f3ce 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelSharedWithTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelTab.g.cs index 95ec43996c0..eaa54a85dba 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamPrimaryChannelTab.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamSchedule.g.cs index f18d1ddf96f..d8a3f76130e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamSchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleDayNote.g.cs index afdd91aae02..951c9f71a6d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleDayNote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOfferShiftRequest.g.cs index dd78d241805..09ae4015f62 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOfferShiftRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShift.g.cs index f6fa21dadbe..8087f6bb2c8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShift.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShiftChangeRequest.g.cs index 07c4519cdab..a197f61b6ee 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleOpenShiftChangeRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSchedulingGroup.g.cs index 7fc1569e8b0..bce36d58748 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSchedulingGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleShift.g.cs index 50342273a5d..8bb9896ccc0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleShift.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSwapShiftChangeRequest.g.cs index 73305246b7c..cc1c4e4adff 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleSwapShiftChangeRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeCard.g.cs index cb05e569ea9..15c97cee54e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeCard.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOff.g.cs index 35374370ecc..8b13b2b35ad 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOff.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffReason.g.cs index c85240ddb8f..c55cbb14b80 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffReason.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffRequest.g.cs index 4942acca468..b40b5b94e23 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamScheduleTimeOffRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTag.g.cs index 9eb940fa2ae..fd73c7441e9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTag.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTagMember.g.cs index 5ec07d4a044..0bd82c3cc16 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgGroupTeamTagMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeam.g.cs index 022178ba4f0..9d1d886c0ff 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeam.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannel.g.cs index 434b63a5acc..f4cc95cebd2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelAllMember.g.cs index 0236dadd57d..6454da67ab2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelEmail.g.cs index f97d49a4ab6..faa55fb1e8b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelEmail.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelFileFolderContent.g.cs index 8ffe90b873e..5ce49a7b8f1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMember.g.cs index 1e3e3bbbe5c..03273fb1fb2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMessageReplyHostedContent.g.cs index d1b41a607f6..3ce23873b76 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelMessageReplyHostedContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelSharedWithTeam.g.cs index 64735f38d55..0b4d0b17ca5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelSharedWithTeam.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelTab.g.cs index 067f17aa60e..8bd2512487d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamChannelTab.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamInstalledApp.g.cs index 7e459e9412d..9d9b6deffef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamInstalledApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamMember.g.cs index aee31395a22..ac4126f90e2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamOperation.g.cs index e94493a04bb..9c1150ee951 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamOperation.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPermissionGrant.g.cs index 19299d04942..f930efb1187 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPermissionGrant.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPhotoContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPhotoContent.g.cs index 6f7a47797bc..d315eaf873a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPhotoContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPhotoContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannel.g.cs index 8493db0c166..bd0502acad8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannel.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelAllMember.g.cs index 82109cacc90..538ca23cf51 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelAllMember.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelEmail.g.cs index 17b6d10d56a..09a344e0a7f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelEmail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelFileFolderContent.g.cs index 6d5011052bb..e77f3fc48da 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelFileFolderContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMember.g.cs index 79f871e0e98..d8fce880a5c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMember.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMessageReplyHostedContent.g.cs index e2f451bbe06..f2023b84955 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelSharedWithTeam.g.cs index c410ff51003..4c15fadb90d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelSharedWithTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelTab.g.cs index 0aa02a22dfe..8b7a29213ab 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamPrimaryChannelTab.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamSchedule.g.cs index 03c692cc6b1..fb1be733a4b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamSchedule.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleDayNote.g.cs index 63f681ffa9d..6327744908f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleDayNote.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOfferShiftRequest.g.cs index 43b6fa78a23..3150789e506 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOfferShiftRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShift.g.cs index e05c50b40a3..a1e4cf1f58b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShift.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShiftChangeRequest.g.cs index 569d00dc882..94f2a60186f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleOpenShiftChangeRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSchedulingGroup.g.cs index f8e25548f4f..8b611a1b2a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSchedulingGroup.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleShift.g.cs index 9e663ce24ab..880d118dab9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleShift.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSwapShiftChangeRequest.g.cs index d939c97c5ae..99beff615f3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleSwapShiftChangeRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeCard.g.cs index ce3c475a1f7..1febfd4ecbb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeCard.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOff.g.cs index 2f1e0342d1e..ce6bdafef79 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOff.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffReason.g.cs index 20a9830c9b1..60501480425 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffReason.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffRequest.g.cs index 965d829d31c..107b5428520 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamScheduleTimeOffRequest.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTag.g.cs index 9558bb3b16d..aa93e35f798 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTag.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTagMember.g.cs index 0be7d4b8238..89253be96e4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamTagMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedChat.g.cs index 7bbf089a8d5..7c7dd545814 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedChat.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeam.g.cs index 5f2a597f23e..0eec8783362 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeam.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannel.g.cs index 39104474c56..18aa298d27a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannel.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelAllMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelAllMember.g.cs index 483fb68c862..8347fe02185 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelAllMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelAllMember.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelEmail.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelEmail.g.cs index ce057f380e7..fe9e008d520 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelEmail.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelEmail.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelFileFolderContent.g.cs index 6d8321a3817..8c99c0ccf75 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMember.g.cs index 314b15a751d..80d6668df70 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessage.g.cs index 10bc51eb606..b30d9a6b634 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs index d89f63cad46..f81f6a4cb3e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReply.g.cs index ff564aa7eee..a890c9f84a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReply.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs index f8ed67e2fba..4074808f660 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs index a9d8a2b52c0..1ddeb5921cd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelTab.g.cs index af7a93d0466..45586b413ed 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkDeletedTeamChannelTab.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkTeamAppSetting.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkTeamAppSetting.g.cs index 6f16c0a5ff3..73f1c4f4ef1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkTeamAppSetting.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkTeamAppSetting.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkWorkforceIntegration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkWorkforceIntegration.g.cs index 649fa9e3703..8ac40d18589 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkWorkforceIntegration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgTeamworkWorkforceIntegration.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkforceIntegrationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChat.g.cs index 6a2ce143e0c..7494469792e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChat.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatAccessForUser.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatAccessForUser.g.cs index ef6fc710984..f5f65d4e67a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatAccessForUser.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatAccessForUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatInstalledApp.g.cs index ae366a0882b..65630d04200 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatInstalledApp.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatLastMessagePreview.g.cs index b45300c45af..6eae1340a85 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatLastMessagePreview.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMember.g.cs index 3198d73e5d7..7d74b3061c8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMember.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessage.g.cs index 7c0141f8529..2097fdbb1fa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageHostedContent.g.cs index c1fbe57454e..8c183bb0ebb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReply.g.cs index 499c0e7f722..4952f89efd3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReply.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReplyHostedContent.g.cs index 54c99867d93..8ef28d2fc21 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatMessageReplyHostedContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPermissionGrant.g.cs index 2108555c759..5257de9f2c7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPermissionGrant.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPinnedMessage.g.cs index 248c7f9be37..9b3a21dee3e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatPinnedMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTab.g.cs index 4fd48013bf2..5fe839d5e0e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTab.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessage.g.cs index 5f0bdeb17f6..e1981f23737 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessage.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageHostedContent.g.cs index 0ef6650d8e4..33b2ec19aad 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageHostedContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReply.g.cs index 775d52bb841..7481daabae4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReply.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReplyHostedContent.g.cs index f5a3a599b8e..a9ebafe3a09 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserChatTargetedMessageReplyHostedContent.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamChannelFileFolderContent.g.cs deleted file mode 100644 index aa21caf908b..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamChannelFileFolderContent.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("DELETE", "/users/{user-id}/joinedTeams/{team-id}/channels/{channel-id}/filesFolder/content")] - [Cmdlet(VerbsCommon.Remove, "MgUserJoinedTeamChannelFileFolderContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserJoinedTeamChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ChannelId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ChannelId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ChannelId); - return; - } - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs deleted file mode 100644 index 2d89f8ca3f9..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs +++ /dev/null @@ -1,58 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("DELETE", "/users/{user-id}/joinedTeams/{team-id}/primaryChannel/filesFolder/content")] - [Cmdlet(VerbsCommon.Remove, "MgUserJoinedTeamPrimaryChannelFileFolderContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserJoinedTeamPrimaryChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false, - HelpMessage = "Sets the 'If-Match' request header (for example an ETag for optimistic concurrency; some Graph APIs require it even where the spec marks it optional).")] - public string? IfMatch { get; set; } - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(TeamId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content.DeleteAsync(requestConfiguration => - { - - if (this.IsParameterBound(nameof(IfMatch))) - requestConfiguration.Headers.Add("If-Match", IfMatch!); - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, TeamId); - return; - } - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamwork.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamwork.g.cs index 9d9326c9253..2e10e1e7398 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamwork.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamwork.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkAssociatedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkAssociatedTeam.g.cs index 44a2c8ca9e3..2dbf3f3da72 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkAssociatedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkAssociatedTeam.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AssociatedTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkInstalledApp.g.cs index bab4b5a676f..7bdeabbf5c1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkInstalledApp.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserScopeTeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkTargetedMessage.g.cs index 3352cc9eb4a..c2a4f6d58fa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/RemoveMgUserTeamworkTargetedMessage.g.cs @@ -66,7 +66,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgChatActivityNotification.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgChatActivityNotification.g.cs index 0eea41a60cc..48e5012577b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgChatActivityNotification.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgChatActivityNotification.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgGroupTeamActivityNotification.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgGroupTeamActivityNotification.g.cs index 83c1c936a8c..3ffbe1bb1d7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgGroupTeamActivityNotification.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgGroupTeamActivityNotification.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamActivityNotification.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamActivityNotification.g.cs index b6e8446fbb1..d7db2511d08 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamActivityNotification.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamActivityNotification.g.cs @@ -94,7 +94,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamworkActivityNotificationToRecipient.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamworkActivityNotificationToRecipient.g.cs index ca160a03760..2992de67819 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamworkActivityNotificationToRecipient.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgTeamworkActivityNotificationToRecipient.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserChatActivityNotification.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserChatActivityNotification.g.cs index aba4d1f0c78..4a23d5c04cc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserChatActivityNotification.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserChatActivityNotification.g.cs @@ -96,7 +96,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserTeamworkActivityNotification.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserTeamworkActivityNotification.g.cs index 8b7112b69ac..0739f722592 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserTeamworkActivityNotification.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SendMgUserTeamworkActivityNotification.g.cs @@ -88,7 +88,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReaction.g.cs index da74171025d..e65a5805012 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReplyReaction.g.cs index 9cc6f4c00ba..d04011e8931 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatTargetedMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatTargetedMessageReplyReaction.g.cs index c52421e5ea3..1b3352ff581 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatTargetedMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgChatTargetedMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeam.g.cs index a0a35dcba37..f367bf2dab6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeam.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelFileFolderContent.g.cs index 93cd06238cf..37892f6c20e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReaction.g.cs index 68d3913988a..8e28361f0e4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReplyReaction.g.cs index 7de65ddf19a..b34db910cdd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelFileFolderContent.g.cs index d527ce1c027..f5b93b7951b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelFileFolderContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReaction.g.cs index db9c4aef372..7f7562ef3b3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs index 3c0354eb218..8a3e3e37e8b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamPrimaryChannelMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamSchedule.g.cs index 5592fef67d1..e1b7a48a0db 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgGroupTeamSchedule.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelFileFolderContent.g.cs index 00a6817818d..37374bd696c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReaction.g.cs index 2e9a02b429d..7c66fb87a77 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReplyReaction.g.cs index 70d3968d281..101c749338e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelFileFolderContent.g.cs index cc2dbe059f8..738c3f52214 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelFileFolderContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReaction.g.cs index ecb1f0ca8aa..37d8edfc97a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReaction.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReplyReaction.g.cs index df3bd8b5505..d568952ed45 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamPrimaryChannelMessageReplyReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamSchedule.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamSchedule.g.cs index 65c1ba418c8..243475dc360 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamSchedule.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamSchedule.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs index 058fbf5e1b7..17e97289a80 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelFileFolderContent.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReaction.g.cs index de799ff426a..277cd53614c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs index b03c0c6cb5a..17c6aae347e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgTeamworkDeletedTeamChannelMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReaction.g.cs index b505dc17cb4..13b4799a2a6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReaction.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReplyReaction.g.cs index 88eb96562fd..1eba3745c1f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatTargetedMessageReplyReaction.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatTargetedMessageReplyReaction.g.cs index 3bd05a783e5..179ed589688 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatTargetedMessageReplyReaction.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserChatTargetedMessageReplyReaction.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamChannelFileFolderContent.g.cs deleted file mode 100644 index 4fa1e3c180b..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamChannelFileFolderContent.g.cs +++ /dev/null @@ -1,62 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("PUT", "/users/{user-id}/joinedTeams/{team-id}/channels/{channel-id}/filesFolder/content")] - [Cmdlet(VerbsCommon.Set, "MgUserJoinedTeamChannelFileFolderContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Teams.Client.Models.DriveItem))] - public class SetMgUserJoinedTeamChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ChannelId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, - HelpMessage = "Path to the file whose contents are uploaded.")] - public string InFile { get; set; } = string.Empty; - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ChannelId, "Set")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Teams.Client.Models.DriveItem? result; - try - { - using var content = System.IO.File.OpenRead(InFile); - result = client.Users[UserId].JoinedTeams[TeamId].Channels[ChannelId].FilesFolder.Content.PutAsync(content, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, ChannelId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs deleted file mode 100644 index 3c79a1cef02..00000000000 --- a/src/Teams/wrapper/v1.0/Cmdlets/SetMgUserJoinedTeamPrimaryChannelFileFolderContent.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Teams.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Teams -{ - [GraphRoute("PUT", "/users/{user-id}/joinedTeams/{team-id}/primaryChannel/filesFolder/content")] - [Cmdlet(VerbsCommon.Set, "MgUserJoinedTeamPrimaryChannelFileFolderContent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Teams.Client.Models.DriveItem))] - public class SetMgUserJoinedTeamPrimaryChannelFileFolderContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TeamId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, - HelpMessage = "Path to the file whose contents are uploaded.")] - public string InFile { get; set; } = string.Empty; - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(TeamId, "Set")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Teams.Client.Models.DriveItem? result; - try - { - using var content = System.IO.File.OpenRead(InFile); - result = client.Users[UserId].JoinedTeams[TeamId].PrimaryChannel.FilesFolder.Content.PutAsync(content, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, TeamId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgChatMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgChatMigration.g.cs index 99591a87b20..d9d96b3702c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgChatMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgChatMigration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamChannelMigration.g.cs index 04c4e8101ed..b45c3221650 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamChannelMigration.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamPrimaryChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamPrimaryChannelMigration.g.cs index 70a714e3a1a..759aad1e30a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamPrimaryChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamPrimaryChannelMigration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamScheduleTimeCardBreak.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamScheduleTimeCardBreak.g.cs index b3cbdacd0e6..eddf90e9b0d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamScheduleTimeCardBreak.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgGroupTeamScheduleTimeCardBreak.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamChannelMigration.g.cs index adfecc1584b..8311ad087e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamChannelMigration.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamPrimaryChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamPrimaryChannelMigration.g.cs index c8dd267da44..f7657859f58 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamPrimaryChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamPrimaryChannelMigration.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamScheduleTimeCardBreak.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamScheduleTimeCardBreak.g.cs index d09e27b2cfa..10484fd5fc0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamScheduleTimeCardBreak.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamScheduleTimeCardBreak.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamworkDeletedTeamChannelMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamworkDeletedTeamChannelMigration.g.cs index b1157fceaf4..85eed312c9b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamworkDeletedTeamChannelMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgTeamworkDeletedTeamChannelMigration.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StartMgUserChatMigration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StartMgUserChatMigration.g.cs index 5681dab38b3..f5f0e7f6bd3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StartMgUserChatMigration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StartMgUserChatMigration.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StopMgGroupTeamScheduleTimeCardBreak.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StopMgGroupTeamScheduleTimeCardBreak.g.cs index 2f10ea8d262..f48df28d94a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StopMgGroupTeamScheduleTimeCardBreak.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StopMgGroupTeamScheduleTimeCardBreak.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/StopMgTeamScheduleTimeCardBreak.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/StopMgTeamScheduleTimeCardBreak.g.cs index 2118415f9e5..cf1ccab2014 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/StopMgTeamScheduleTimeCardBreak.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/StopMgTeamScheduleTimeCardBreak.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageReplySoftDelete.g.cs index 99f0e30f38f..56ae409b854 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageReplySoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageSoftDelete.g.cs index 408d4616688..640c35f690b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatMessageSoftDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatTargetedMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatTargetedMessageReplySoftDelete.g.cs index f769765f1b2..92f63ffafbc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatTargetedMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgChatTargetedMessageReplySoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageReplySoftDelete.g.cs index 752528d88c8..0e0dd87c15a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageReplySoftDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageSoftDelete.g.cs index e6e1f380128..60e6896c520 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamChannelMessageSoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageReplySoftDelete.g.cs index 112cd06d2b1..a06df2cf5b4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageReplySoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageSoftDelete.g.cs index 9b695d05432..c3a9be309cb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgGroupTeamPrimaryChannelMessageSoftDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageReplySoftDelete.g.cs index cc459ab9ef1..9b711da9251 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageReplySoftDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageSoftDelete.g.cs index bd848743a9a..18ba21ce366 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamChannelMessageSoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageReplySoftDelete.g.cs index 03444760022..7a734343b47 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageReplySoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageSoftDelete.g.cs index ddaa7a08b3e..a5ea9539394 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamPrimaryChannelMessageSoftDelete.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedChatDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedChatDelete.g.cs index 718b72117eb..f0a96354620 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedChatDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedChatDelete.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageReplySoftDelete.g.cs index f3554999572..ec6412ad368 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageReplySoftDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageSoftDelete.g.cs index e9f45cdea26..0b4d875484a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgTeamworkDeletedTeamChannelMessageSoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageReplySoftDelete.g.cs index a91fff7c316..336232a9995 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageReplySoftDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageSoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageSoftDelete.g.cs index b4ee3f23ac1..37316bd8db4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageSoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatMessageSoftDelete.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatTargetedMessageReplySoftDelete.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatTargetedMessageReplySoftDelete.g.cs index db7ded369c6..20ef92f3539 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatTargetedMessageReplySoftDelete.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UndoMgUserChatTargetedMessageReplySoftDelete.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamApp.g.cs index 587b827c621..338500137d3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamApp.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.AppCatalogs.TeamsApps[TeamsAppId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinition.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinition.g.cs index a1ff67431db..c4c751a31e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinition.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinition.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.AppCatalogs.TeamsApps[TeamsAppId].AppDefinitions[TeamsAppDefinitionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinitionBot.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinitionBot.g.cs index b74caecaac7..43dc8419eb1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinitionBot.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgAppCatalogTeamAppDefinitionBot.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.AppCatalogs.TeamsApps[TeamsAppId].AppDefinitions[TeamsAppDefinitionId].Bot.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppDefinitionId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChat.g.cs index 0541c2c4b1b..a9b48fae8e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChat.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; @@ -125,7 +125,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatInstalledApp.g.cs index d07a1305422..91c27670f31 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatInstalledApp.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatLastMessagePreview.g.cs index c360adc0604..4cec22d7425 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatLastMessagePreview.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; @@ -95,7 +95,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].LastMessagePreview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMember.g.cs index 6fa67e8a3f0..1eee9053b11 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].Members[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessage.g.cs index 8893dc2d9b6..3a905cfb8c8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -193,7 +193,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReply.g.cs index 71465b2884c..cab221f7634 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReplyHostedContent.g.cs index 475a486d070..cc3cc8128d6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPermissionGrant.g.cs index c588c7311d5..5d7e9aa82a0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].PermissionGrants[ResourceSpecificPermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPinnedMessage.g.cs index 664152f1899..2ea7c4799a4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatPinnedMessage.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].PinnedMessages[PinnedChatMessageInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTab.g.cs index 23cdef4efb5..3a2c6fa7663 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessage.g.cs index 68bacbfea86..d19b7f05211 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessage.g.cs @@ -185,7 +185,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; @@ -199,7 +199,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].TargetedMessages[TargetedChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageHostedContent.g.cs index d10919193ad..4ac6e32c12f 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].TargetedMessages[TargetedChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReply.g.cs index 3b4e48c6157..6ec33276f90 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReplyHostedContent.g.cs index 183cdd4337a..17870698956 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgChatTargetedMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannel.g.cs index 1d5fb010980..f3afe2202bd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannel.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; @@ -139,7 +139,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMember.g.cs index 95f4e053939..edec57361aa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].AllMembers[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessage.g.cs index a2da75aeeaf..23a150fe5a4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessage.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageHostedContent.g.cs index f24228ca4ca..299ceef572b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].Messages[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReply.g.cs index 0ff24104104..65ae76494a7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReply.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -197,7 +197,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReplyHostedContent.g.cs index a4005c15be6..5eb2e1b0d13 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelMessageReplyHostedContent.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelSharedWithTeam.g.cs index 190c29dabc5..c24f2d65516 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelSharedWithTeam.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].SharedWithTeams[SharedWithChannelTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelTab.g.cs index 1bc68c2adf8..c2b6552bce3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamChannelTab.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Channels[ChannelId].Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamInstalledApp.g.cs index 38a99936cbe..6f38ebcd4a4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamInstalledApp.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamMember.g.cs index cb1749ebb2e..dd6e66b28bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Members[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamOperation.g.cs index 0f5d58a8505..e490ae779d1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamOperation.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Operations[TeamsAsyncOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPermissionGrant.g.cs index 1e30a765f2f..61b5b904360 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PermissionGrants[ResourceSpecificPermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPhoto.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPhoto.g.cs index fef9db6caf1..03d2f864a17 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPhoto.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPhoto.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Photo.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannel.g.cs index 6f1b8100418..1e575717705 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannel.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, GroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMember.g.cs index b35984ea68f..246fbd3ebfb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.AllMembers[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessage.g.cs index 18afb656c8d..8f6e4bb0b5e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -193,7 +193,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageHostedContent.g.cs index a104b12ec84..9c35d4367fe 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageHostedContent.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -77,7 +77,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.Messages[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReply.g.cs index 72b0961ec35..61164d1a047 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs index 8b983605765..0cd5c35cc46 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelSharedWithTeam.g.cs index e5d431097a7..786428f3286 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelSharedWithTeam.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.SharedWithTeams[SharedWithChannelTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelTab.g.cs index 2a91000416f..c70fa0a85bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamPrimaryChannelTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.PrimaryChannel.Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleDayNote.g.cs index d1fbac11834..7c66b810ca3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleDayNote.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.DayNotes[DayNoteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOfferShiftRequest.g.cs index b06ebb0ac2f..41756aeedf8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOfferShiftRequest.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.OfferShiftRequests[OfferShiftRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShift.g.cs index eaaf90a38dd..c173f3af04e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShift.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.OpenShifts[OpenShiftId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShiftChangeRequest.g.cs index fd22890183e..24f6f0d026b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleOpenShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.OpenShiftChangeRequests[OpenShiftChangeRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSchedulingGroup.g.cs index cdfd21780e9..9a3bff61bf7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSchedulingGroup.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.SchedulingGroups[SchedulingGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleShift.g.cs index 64477da88ce..0d481b720bd 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.Shifts[ShiftId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSwapShiftChangeRequest.g.cs index 0489874d125..1022870f9c8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleSwapShiftChangeRequest.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.SwapShiftsChangeRequests[SwapShiftsChangeRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeCard.g.cs index edfc0d02927..87d7e23c654 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeCard.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.TimeCards[TimeCardId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOff.g.cs index 1c799b43175..7eb737700d5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOff.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.TimesOff[TimeOffId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffReason.g.cs index 6551dd50915..e13d7662127 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffReason.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.TimeOffReasons[TimeOffReasonId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffRequest.g.cs index e92adbdf645..ec69a65e19c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamScheduleTimeOffRequest.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Schedule.TimeOffRequests[TimeOffRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTag.g.cs index a8878580a50..5a9fb47e9e2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTag.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Tags[TeamworkTagId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTagMember.g.cs index 6785e6942d6..908ea2acc1d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgGroupTeamTagMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Groups[GroupId].Team.Tags[TeamworkTagId].Members[TeamworkTagMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeam.g.cs index 48be7590cad..76877d962ee 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeam.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; @@ -155,7 +155,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannel.g.cs index cb62464b2d8..bb1f22ab4a0 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannel.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; @@ -139,7 +139,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMember.g.cs index b1c4d211c04..52dd420175c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].AllMembers[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessage.g.cs index ab0c9917b40..db52d745fec 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessage.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReply.g.cs index 5c473743937..ac75a0409bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReply.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -197,7 +197,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReplyHostedContent.g.cs index 7c9aadf126b..dd5bde30c33 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelMessageReplyHostedContent.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelSharedWithTeam.g.cs index 224d3253358..1d3ea1f842e 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelSharedWithTeam.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].SharedWithTeams[SharedWithChannelTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelTab.g.cs index 42324a0120a..7aaad584c58 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamChannelTab.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Channels[ChannelId].Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamInstalledApp.g.cs index 48ab149970b..a9aa7f87f89 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamInstalledApp.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamMember.g.cs index ea8ba999c24..4aaa83638ee 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Members[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamOperation.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamOperation.g.cs index 79acb5a5a39..474113c1217 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamOperation.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamOperation.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Operations[TeamsAsyncOperationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAsyncOperationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPermissionGrant.g.cs index 7adabff4b76..1312b4a28bf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPermissionGrant.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; @@ -99,7 +99,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PermissionGrants[ResourceSpecificPermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPhoto.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPhoto.g.cs index 1bca90655b8..b7d96467562 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPhoto.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPhoto.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Photo.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannel.g.cs index 36330778167..7ec448f6ddb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannel.g.cs @@ -123,7 +123,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; @@ -137,7 +137,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMember.g.cs index 493339cf04d..eacc01649d6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMember.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.AllMembers[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessage.g.cs index 20d527dee56..32c1a65698d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessage.g.cs @@ -179,7 +179,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -193,7 +193,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReply.g.cs index 887e0475df2..67996c2cc72 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReply.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReplyHostedContent.g.cs index a4042017681..fba46a02509 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelMessageReplyHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelSharedWithTeam.g.cs index 1b6b2d18954..7347323bda4 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelSharedWithTeam.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.SharedWithTeams[SharedWithChannelTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelTab.g.cs index 41948a074d8..e8f97e37dff 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamPrimaryChannelTab.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].PrimaryChannel.Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleDayNote.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleDayNote.g.cs index 9130933f287..2ee08c201c9 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleDayNote.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleDayNote.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.DayNotes[DayNoteId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DayNoteId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOfferShiftRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOfferShiftRequest.g.cs index f7ccbb13a6f..bd1f35f15d5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOfferShiftRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOfferShiftRequest.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.OfferShiftRequests[OfferShiftRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OfferShiftRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShift.g.cs index a29011b1ed2..294767ab2bc 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShift.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.OpenShifts[OpenShiftId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShiftChangeRequest.g.cs index fe0f250ec3b..21e60f838b1 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleOpenShiftChangeRequest.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.OpenShiftChangeRequests[OpenShiftChangeRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OpenShiftChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSchedulingGroup.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSchedulingGroup.g.cs index fc006d4c529..9ebbf1afdfa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSchedulingGroup.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSchedulingGroup.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.SchedulingGroups[SchedulingGroupId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SchedulingGroupId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleShift.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleShift.g.cs index 6ef96b0fe50..66c1c7d9967 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleShift.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleShift.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.Shifts[ShiftId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ShiftId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSwapShiftChangeRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSwapShiftChangeRequest.g.cs index 184e07717eb..9dab9cf53bb 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSwapShiftChangeRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleSwapShiftChangeRequest.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.SwapShiftsChangeRequests[SwapShiftsChangeRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SwapShiftsChangeRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeCard.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeCard.g.cs index da3f2a2cbbd..b35ba594f70 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeCard.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeCard.g.cs @@ -101,7 +101,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; @@ -115,7 +115,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.TimeCards[TimeCardId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeCardId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOff.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOff.g.cs index e05a1f2db06..bb63992fff6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOff.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOff.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.TimesOff[TimeOffId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffReason.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffReason.g.cs index 75814b42337..06ace4bb7a5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffReason.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffReason.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.TimeOffReasons[TimeOffReasonId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffReasonId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffRequest.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffRequest.g.cs index 46e7c236a3f..7e8d89c5afa 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffRequest.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamScheduleTimeOffRequest.g.cs @@ -95,7 +95,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; @@ -109,7 +109,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Schedule.TimeOffRequests[TimeOffRequestId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TimeOffRequestId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTag.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTag.g.cs index d0f93005bcd..57130f727c2 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTag.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTag.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Tags[TeamworkTagId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTagMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTagMember.g.cs index 40f01dbcd97..131ad7efe63 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTagMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamTagMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Teams[TeamId].Tags[TeamworkTagId].Members[TeamworkTagMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamworkTagMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamwork.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamwork.g.cs index 9d4364a2cf6..35ce607ea1b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamwork.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamwork.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Teamwork.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedChat.g.cs index 19f5548af3e..13bf620dc28 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedChat.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedChatId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedChats[DeletedChatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeam.g.cs index a74ba0ebee6..f0a6450cbf5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeam.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DeletedTeamId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannel.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannel.g.cs index 9113b58c83b..68aa393eda3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannel.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannel.g.cs @@ -125,7 +125,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; @@ -139,7 +139,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChannelId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMember.g.cs index e6efdbe73e4..8ba06aea54b 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].AllMembers[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessage.g.cs index 0b57994fa7e..efcec43a310 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessage.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs index 07bb26e81af..c44a99ee9e3 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].Messages[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReply.g.cs index 5b23650fabd..e725cc5ffef 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReply.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -197,7 +197,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs index 9631e602bc4..ad56a9b8211 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelMessageReplyHostedContent.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs index aaa00c51469..5aba7540fcf 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelSharedWithTeam.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].SharedWithTeams[SharedWithChannelTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedWithChannelTeamInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelTab.g.cs index ac2d05a5cb4..72341f62205 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkDeletedTeamChannelTab.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Teamwork.DeletedTeams[DeletedTeamId].Channels[ChannelId].Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkTeamAppSetting.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkTeamAppSetting.g.cs index 9414d23eb80..30359dbf7f6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkTeamAppSetting.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkTeamAppSetting.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; @@ -72,7 +72,7 @@ protected override void ProcessRecord() { result = client.Teamwork.TeamsAppSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkWorkforceIntegration.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkWorkforceIntegration.g.cs index e87ceb9e6d3..b2b352a86e5 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkWorkforceIntegration.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgTeamworkWorkforceIntegration.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkforceIntegrationId); return; @@ -107,7 +107,7 @@ protected override void ProcessRecord() { result = client.Teamwork.WorkforceIntegrations[WorkforceIntegrationId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkforceIntegrationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChat.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChat.g.cs index a1cc5acb63c..f235342a1ed 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChat.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChat.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; @@ -127,7 +127,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatInstalledApp.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatInstalledApp.g.cs index bbfd8f55cce..74821b50909 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatInstalledApp.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatInstalledApp.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsAppInstallationId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatLastMessagePreview.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatLastMessagePreview.g.cs index edd11ecd820..0d42647b464 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatLastMessagePreview.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatLastMessagePreview.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].LastMessagePreview.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMember.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMember.g.cs index 8aef2c924df..bade1fc1c22 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMember.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMember.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; @@ -83,7 +83,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Members[ConversationMemberId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ConversationMemberId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessage.g.cs index ebe2801d73c..1e3f82f6bb6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessage.g.cs @@ -181,7 +181,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -195,7 +195,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Messages[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageHostedContent.g.cs index fbce5eb2d59..7f02f25802d 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Messages[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReply.g.cs index 09ad138d682..09aa8cc6c49 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReply.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; @@ -197,7 +197,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Messages[ChatMessageId].Replies[ChatMessageId1].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId1); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReplyHostedContent.g.cs index 5c110333c83..a7ec402584c 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatMessageReplyHostedContent.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Messages[ChatMessageId].Replies[ChatMessageId1].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPermissionGrant.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPermissionGrant.g.cs index b6bb9883bc8..7eaea2269f7 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPermissionGrant.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPermissionGrant.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; @@ -101,7 +101,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].PermissionGrants[ResourceSpecificPermissionGrantId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ResourceSpecificPermissionGrantId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPinnedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPinnedMessage.g.cs index f50ff1f5d4d..db22c852dec 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPinnedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatPinnedMessage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].PinnedMessages[PinnedChatMessageInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, PinnedChatMessageInfoId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTab.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTab.g.cs index b7470a343d4..dd3d0998695 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTab.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTab.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].Tabs[TeamsTabId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TeamsTabId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessage.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessage.g.cs index bf45fddfb1a..b6a3ff9d392 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessage.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessage.g.cs @@ -187,7 +187,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; @@ -201,7 +201,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TargetedChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageHostedContent.g.cs index c9791822150..6676b1f23e8 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageHostedContent.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReply.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReply.g.cs index 5a985a5accb..d41518e63e6 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReply.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReply.g.cs @@ -183,7 +183,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; @@ -197,7 +197,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReplyHostedContent.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReplyHostedContent.g.cs index c9477fc100a..bdc999b7012 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReplyHostedContent.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserChatTargetedMessageReplyHostedContent.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Chats[ChatId].TargetedMessages[TargetedChatMessageId].Replies[ChatMessageId].HostedContents[ChatMessageHostedContentId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChatMessageHostedContentId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamwork.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamwork.g.cs index 91aa1de508e..4c60cb2263a 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamwork.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamwork.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Teamwork.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamworkAssociatedTeam.g.cs b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamworkAssociatedTeam.g.cs index e4a91ba941c..b423b1d0408 100644 --- a/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamworkAssociatedTeam.g.cs +++ b/src/Teams/wrapper/v1.0/Cmdlets/UpdateMgUserTeamworkAssociatedTeam.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AssociatedTeamInfoId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Teamwork.AssociatedTeams[AssociatedTeamInfoId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AssociatedTeamInfoId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/Chat.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/Chat.cs index d0657390953..a94ce90b5be 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Users.Actions.Cli #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..84bd6070231 --- /dev/null +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..8e2c01c24b3 --- /dev/null +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/Group.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/Group.cs index 48fa3d6470a..09281af41b4 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Users.Actions.Cl #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/List.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/List.cs index 4796f44ada6..0ac9125d48d 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/List.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Users.Actions.Cli #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/ListItem.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/ListItem.cs index 8d8729f9ed3..654a1956b41 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Users.Actions #else public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index f60c76908ff..273e2961dda 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..a7ed159cc1f --- /dev/null +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index ca656018344..9e8f0c766d9 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index da462ee099d..5f99894d387 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Users.Actions.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/User.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/User.cs index 19555cc4402..ad6d9d1870e 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/User.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Users.Actions.Cli #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Actions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Users.Actions/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Users.Actions/wrapper/v1.0/Client/Models/UserActivityType.cs index e18043e8c3c..5ab4f7e23b9 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Users.Actions/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Users.Actions/wrapper/v1.0/Client/kiota-lock.json b/src/Users.Actions/wrapper/v1.0/Client/kiota-lock.json index 9954cea438b..1e8d0fb28de 100644 --- a/src/Users.Actions/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Users.Actions/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "48F1D3C8D35BC1A0B26BEA9A9EC49BDC7265407A65647F7917362F008D05FFDBE5038FD1D22E73DEB83D58E50A4C452ABC30F622B3DD817A32FD1BE69E0E347E", + "descriptionHash": "11A5738D0165FB04F7AA734D45CD237033BD6AC40F76EA9D38ACBE1A185E759F4968B256C9727F8D1CCC9E7C61014A62F7AF863084E0D3B067D16E56D1A21804", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Users.Actions.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberGroup.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberGroup.g.cs index 9f99e1e5335..3b20c793584 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberGroup.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberObject.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberObject.g.cs index 103cad60fe1..fe4bb263c06 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberObject.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/ConfirmMgUserMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/ExportMgUserPersonalData.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/ExportMgUserPersonalData.g.cs index 9577d4b7321..1ac4d5653be 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/ExportMgUserPersonalData.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/ExportMgUserPersonalData.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/FindMgUserMeetingTime.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/FindMgUserMeetingTime.g.cs index a37664d9911..2d0056c7b8c 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/FindMgUserMeetingTime.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/FindMgUserMeetingTime.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserById.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserById.g.cs index ec9791edd8f..15f2383891c 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserById.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserById.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMailTip.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMailTip.g.cs index 1a2bfa3d32f..9259c7677c9 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMailTip.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMailTip.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberGroup.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberGroup.g.cs index a38b6b35601..80cbaef4cd1 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberGroup.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberObject.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberObject.g.cs index e726e0bffcd..56dc346678f 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberObject.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/GetMgUserMemberObject.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgLicenseUser.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgLicenseUser.g.cs index 03238a97a7e..f45ac3528ad 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgLicenseUser.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgLicenseUser.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgRetryUserServiceProvisioning.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgRetryUserServiceProvisioning.g.cs index 54ca629b2e1..9329d3b3c4e 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgRetryUserServiceProvisioning.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgRetryUserServiceProvisioning.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgTranslateUserExchangeId.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgTranslateUserExchangeId.g.cs index 5114023ebed..52141cf3609 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgTranslateUserExchangeId.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/InvokeMgTranslateUserExchangeId.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/RemoveMgAllUserDeviceFromManagement.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/RemoveMgAllUserDeviceFromManagement.g.cs index 626edc4b169..086e8f15a5d 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/RemoveMgAllUserDeviceFromManagement.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/RemoveMgAllUserDeviceFromManagement.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/RevokeMgUserSignInSession.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/RevokeMgUserSignInSession.g.cs index 8f872ff98f7..1184d195e6e 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/RevokeMgUserSignInSession.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/RevokeMgUserSignInSession.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/SendMgUserMail.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/SendMgUserMail.g.cs index f2b3268147e..4dd5b5df1c5 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/SendMgUserMail.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/SendMgUserMail.g.cs @@ -58,7 +58,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/SetMgUserLicense.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/SetMgUserLicense.g.cs index 7a04405ee77..044a07abb8c 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/SetMgUserLicense.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/SetMgUserLicense.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/TestMgUserProperty.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/TestMgUserProperty.g.cs index 46616324194..4318d3e32a3 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/TestMgUserProperty.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/TestMgUserProperty.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Users.Actions/wrapper/v1.0/Cmdlets/UpdateMgUserPassword.g.cs b/src/Users.Actions/wrapper/v1.0/Cmdlets/UpdateMgUserPassword.g.cs index 5d851d91576..4fd35dcc516 100644 --- a/src/Users.Actions/wrapper/v1.0/Cmdlets/UpdateMgUserPassword.g.cs +++ b/src/Users.Actions/wrapper/v1.0/Cmdlets/UpdateMgUserPassword.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/Chat.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/Chat.cs index 484f7846784..b47965f8f6a 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Users.Functions.C #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..1c77c7be1d5 --- /dev/null +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Users.Functions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..737813f260a --- /dev/null +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Functions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/Group.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/Group.cs index 77ab27efd4a..9da1f6dd447 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Users.Functions. #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/List.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/List.cs index 062bca3e341..7a49cef139e 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/List.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Users.Functions.C #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/ListItem.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/ListItem.cs index 5f9d498790a..c1259136a1a 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Users.Functio #else public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index e6f00f68b2f..f56740e4032 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..65579ae0f51 --- /dev/null +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Functions.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index bce6b68f3fe..a25f5e5851b 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index b77e16e6671..3ad54b834d8 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Users.Functions.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/User.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/User.cs index a240c2c411f..6dbd04171a0 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/User.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Users.Functions.C #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Functions.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Users.Functions/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Users.Functions/wrapper/v1.0/Client/Models/UserActivityType.cs index 7683f5938a7..1cddde69d6e 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Users.Functions/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Users.Functions/wrapper/v1.0/Client/kiota-lock.json b/src/Users.Functions/wrapper/v1.0/Client/kiota-lock.json index 22b1fa42309..fec95fb4874 100644 --- a/src/Users.Functions/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Users.Functions/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "0F72E15533F2882A4B638CEED5983BAA31A310A4B8A0EC6ECCE99D6F394F600197A1B79F7EAA3F74FCDF5CB50998C683F65396A0A0F2D694A50A4AB10B15A724", + "descriptionHash": "D5B1E2CA61B8FA574C013C4EF5660D5B0AF0968A5F2B194B90049CA391768E635FC26904CDB4C88713CB4F3FB3F939A4B602F8979FC8C0010848851CECE35AA4", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Users.Functions.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/ExportMgUserDeviceAndAppManagementData.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/ExportMgUserDeviceAndAppManagementData.g.cs index b9757deebf5..4056b14836c 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/ExportMgUserDeviceAndAppManagementData.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/ExportMgUserDeviceAndAppManagementData.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserDelta.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserDelta.g.cs index 9dfd0fee3a3..27b99ea1045 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserDelta.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserDelta.g.cs @@ -166,7 +166,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserExportDeviceAndAppManagementDataWithSkipWithTop.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserExportDeviceAndAppManagementDataWithSkipWithTop.g.cs index c6de52dc77f..dc399518980 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserExportDeviceAndAppManagementDataWithSkipWithTop.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserExportDeviceAndAppManagementDataWithSkipWithTop.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppDiagnosticStatus.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppDiagnosticStatus.g.cs index d84084d69cc..361eb402f93 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppDiagnosticStatus.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppDiagnosticStatus.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppPolicy.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppPolicy.g.cs index 4497f6fa58d..6bba536da7a 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppPolicy.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedAppPolicy.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWithAppFailure.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWithAppFailure.g.cs index 8854d1821ff..ae380b79684 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWithAppFailure.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserManagedDeviceWithAppFailure.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserReminderViewWithStartDateTimeWithEndDateTime.g.cs b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserReminderViewWithStartDateTimeWithEndDateTime.g.cs index efadca54986..599c0232592 100644 --- a/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserReminderViewWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Users.Functions/wrapper/v1.0/Cmdlets/GetMgUserReminderViewWithStartDateTimeWithEndDateTime.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Client/Models/Chat.cs b/src/Users/wrapper/v1.0/Client/Models/Chat.cs index f5b21427e47..b8f072ca1ef 100644 --- a/src/Users/wrapper/v1.0/Client/Models/Chat.cs +++ b/src/Users/wrapper/v1.0/Client/Models/Chat.cs @@ -88,7 +88,7 @@ public partial class Chat : global::Microsoft.Graph.PowerShell.Users.Client.Mode #else public List Tabs { get; set; } #endif - /// The targetedMessages property + /// A collection of targeted messages in the chat that are visible only to specific users. Nullable. You can't expand this relationship using $expand. Targeted messages can also be retrieved via the userTeamwork: getAllTargetedMessages API. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? TargetedMessages { get; set; } diff --git a/src/Users/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs b/src/Users/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs new file mode 100644 index 00000000000..2f75a061be2 --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Models/CloudVideoInteropInfo.cs @@ -0,0 +1,95 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CloudVideoInteropInfo : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { get; set; } + /// Provides other video teleconferencing (VTC) dial-in options. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MoreInfoWebUrl { get; set; } +#nullable restore +#else + public string MoreInfoWebUrl { get; set; } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { get; set; } +#nullable restore +#else + public string OdataType { get; set; } +#endif + /// The tenant key that is used to dial into the interactive voice response (IVR) of the partner CVI service. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantKey { get; set; } +#nullable restore +#else + public string TenantKey { get; set; } +#endif + /// The video teleconferencing ID. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoTeleconferenceId { get; set; } +#nullable restore +#else + public string VideoTeleconferenceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudVideoInteropInfo() + { + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// A + /// The parse node to use to read the discriminator value and create the object + public static global::Microsoft.Graph.PowerShell.Users.Client.Models.CloudVideoInteropInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Users.Client.Models.CloudVideoInteropInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "moreInfoWebUrl", n => { MoreInfoWebUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "tenantKey", n => { TenantKey = n.GetStringValue(); } }, + { "videoTeleconferenceId", n => { VideoTeleconferenceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("moreInfoWebUrl", MoreInfoWebUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("tenantKey", TenantKey); + writer.WriteStringValue("videoTeleconferenceId", VideoTeleconferenceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users/wrapper/v1.0/Client/Models/ContentCategory.cs b/src/Users/wrapper/v1.0/Client/Models/ContentCategory.cs new file mode 100644 index 00000000000..8af098b202e --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Models/ContentCategory.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ContentCategory + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "ai")] + #pragma warning disable CS1591 + Ai, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users/wrapper/v1.0/Client/Models/Group.cs b/src/Users/wrapper/v1.0/Client/Models/Group.cs index 4e68bc08cda..da3fc1744ef 100644 --- a/src/Users/wrapper/v1.0/Client/Models/Group.cs +++ b/src/Users/wrapper/v1.0/Client/Models/Group.cs @@ -316,6 +316,14 @@ public partial class Group : global::Microsoft.Graph.PowerShell.Users.Client.Mod #endif /// true if this group is synced from an on-premises directory; false if this group was originally synced from an on-premises directory but is no longer synced; null if this object has never synced from an on-premises directory (default). Returned by default. Read-only. Supports $filter (eq, ne, not, in, and eq on null values). public bool? OnPremisesSyncEnabled { get; set; } + /// The organizationId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrganizationId { get; set; } +#nullable restore +#else + public string OrganizationId { get; set; } +#endif /// The owners of the group who can be users or service principals. Limited to 100 owners. Nullable. If this property isn't specified when creating a Microsoft 365 group the calling user (admin or non-admin) is automatically assigned as the group owner. A non-admin user can't explicitly add themselves to this collection when they're creating the group. For more information, see the related known issue. For security groups, the admin user isn't automatically added to this collection. For more information, see the related known issue. Supports $filter (/$count eq 0, /$count ne 0, /$count eq 1, /$count ne 1); Supports $expand including nested $select. For example, /groups?$filter=startsWith(displayName,'Role')&$select=id,displayName&$expand=owners($select=id,userPrincipalName,displayName). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -579,6 +587,7 @@ public override IDictionary> GetFieldDeserializers() { "onPremisesSyncBehavior", n => { OnPremisesSyncBehavior = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.OnPremisesSyncBehavior.CreateFromDiscriminatorValue); } }, { "onPremisesSyncEnabled", n => { OnPremisesSyncEnabled = n.GetBoolValue(); } }, { "onenote", n => { Onenote = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.Onenote.CreateFromDiscriminatorValue); } }, + { "organizationId", n => { OrganizationId = n.GetStringValue(); } }, { "owners", n => { Owners = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "permissionGrants", n => { PermissionGrants = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Client.Models.ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue)?.AsList(); } }, { "photo", n => { Photo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.ProfilePhoto.CreateFromDiscriminatorValue); } }, @@ -667,6 +676,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteStringValue("onPremisesSecurityIdentifier", OnPremisesSecurityIdentifier); writer.WriteObjectValue("onPremisesSyncBehavior", OnPremisesSyncBehavior); writer.WriteBoolValue("onPremisesSyncEnabled", OnPremisesSyncEnabled); + writer.WriteStringValue("organizationId", OrganizationId); writer.WriteCollectionOfObjectValues("owners", Owners); writer.WriteCollectionOfObjectValues("permissionGrants", PermissionGrants); writer.WriteObjectValue("photo", Photo); diff --git a/src/Users/wrapper/v1.0/Client/Models/List.cs b/src/Users/wrapper/v1.0/Client/Models/List.cs index eaab9f345c4..2e77dd5d322 100644 --- a/src/Users/wrapper/v1.0/Client/Models/List.cs +++ b/src/Users/wrapper/v1.0/Client/Models/List.cs @@ -68,7 +68,7 @@ public partial class List : global::Microsoft.Graph.PowerShell.Users.Client.Mode #else public List Operations { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users/wrapper/v1.0/Client/Models/ListItem.cs b/src/Users/wrapper/v1.0/Client/Models/ListItem.cs index cbcb3927ba1..fb59ac8468f 100644 --- a/src/Users/wrapper/v1.0/Client/Models/ListItem.cs +++ b/src/Users/wrapper/v1.0/Client/Models/ListItem.cs @@ -60,7 +60,7 @@ public partial class ListItem : global::Microsoft.Graph.PowerShell.Users.Client. #else public global::Microsoft.Graph.PowerShell.Users.Client.Models.FieldValueSet Fields { get; set; } #endif - /// The permissions property + /// The set of permissions for the item. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Permissions { get; set; } diff --git a/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs b/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs index 75da25fc140..7dd9e0b7081 100644 --- a/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs +++ b/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingBase.cs @@ -71,6 +71,14 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Client.Models.ChatRestrictions ChatRestrictions { get; set; } +#endif + /// Conferencing device integration settings for Cloud Video Interop (CVI). Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Users.Client.Models.CloudVideoInteropInfo? CloudVideoInteropInfo { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Users.Client.Models.CloudVideoInteropInfo CloudVideoInteropInfo { get; set; } #endif /// Indicates the date and time when the meeting resource expires. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ExpiryDateTime { get; set; } @@ -126,6 +134,8 @@ public partial class OnlineMeetingBase : global::Microsoft.Graph.PowerShell.User #else public string MeetingSpokenLanguageTag { get; set; } #endif + /// The type of the online meeting. The possible values are: adhoc, scheduled, recurring, broadcast, meetnow, unknownFutureValue. Read-only. + public global::Microsoft.Graph.PowerShell.Users.Client.Models.OnlineMeetingType? MeetingType { get; set; } /// Indicates whether to record the meeting automatically. public bool? RecordAutomatically { get; set; } /// Specifies the sensitivity label applied to the Teams meeting. @@ -203,6 +213,7 @@ public override IDictionary> GetFieldDeserializers() { "audioConferencing", n => { AudioConferencing = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.AudioConferencing.CreateFromDiscriminatorValue); } }, { "chatInfo", n => { ChatInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.ChatInfo.CreateFromDiscriminatorValue); } }, { "chatRestrictions", n => { ChatRestrictions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.ChatRestrictions.CreateFromDiscriminatorValue); } }, + { "cloudVideoInteropInfo", n => { CloudVideoInteropInfo = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.CloudVideoInteropInfo.CreateFromDiscriminatorValue); } }, { "expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, { "isEndToEndEncryptionEnabled", n => { IsEndToEndEncryptionEnabled = n.GetBoolValue(); } }, { "isEntryExitAnnounced", n => { IsEntryExitAnnounced = n.GetBoolValue(); } }, @@ -212,6 +223,7 @@ public override IDictionary> GetFieldDeserializers() { "lobbyBypassSettings", n => { LobbyBypassSettings = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.LobbyBypassSettings.CreateFromDiscriminatorValue); } }, { "meetingOptionsWebUrl", n => { MeetingOptionsWebUrl = n.GetStringValue(); } }, { "meetingSpokenLanguageTag", n => { MeetingSpokenLanguageTag = n.GetStringValue(); } }, + { "meetingType", n => { MeetingType = n.GetEnumValue(); } }, { "recordAutomatically", n => { RecordAutomatically = n.GetBoolValue(); } }, { "sensitivityLabelAssignment", n => { SensitivityLabelAssignment = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.OnlineMeetingSensitivityLabelAssignment.CreateFromDiscriminatorValue); } }, { "shareMeetingChatHistoryDefault", n => { ShareMeetingChatHistoryDefault = n.GetEnumValue(); } }, @@ -246,6 +258,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("audioConferencing", AudioConferencing); writer.WriteObjectValue("chatInfo", ChatInfo); writer.WriteObjectValue("chatRestrictions", ChatRestrictions); + writer.WriteObjectValue("cloudVideoInteropInfo", CloudVideoInteropInfo); writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); writer.WriteBoolValue("isEndToEndEncryptionEnabled", IsEndToEndEncryptionEnabled); writer.WriteBoolValue("isEntryExitAnnounced", IsEntryExitAnnounced); @@ -255,6 +268,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteObjectValue("lobbyBypassSettings", LobbyBypassSettings); writer.WriteStringValue("meetingOptionsWebUrl", MeetingOptionsWebUrl); writer.WriteStringValue("meetingSpokenLanguageTag", MeetingSpokenLanguageTag); + writer.WriteEnumValue("meetingType", MeetingType); writer.WriteBoolValue("recordAutomatically", RecordAutomatically); writer.WriteObjectValue("sensitivityLabelAssignment", SensitivityLabelAssignment); writer.WriteEnumValue("shareMeetingChatHistoryDefault", ShareMeetingChatHistoryDefault); diff --git a/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingType.cs b/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingType.cs new file mode 100644 index 00000000000..d9e3e60777d --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Models/OnlineMeetingType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "adhoc")] + #pragma warning disable CS1591 + Adhoc, + #pragma warning restore CS1591 + [EnumMember(Value = "scheduled")] + #pragma warning disable CS1591 + Scheduled, + #pragma warning restore CS1591 + [EnumMember(Value = "recurring")] + #pragma warning disable CS1591 + Recurring, + #pragma warning restore CS1591 + [EnumMember(Value = "broadcast")] + #pragma warning disable CS1591 + Broadcast, + #pragma warning restore CS1591 + [EnumMember(Value = "meetnow")] + #pragma warning disable CS1591 + Meetnow, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Users/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs b/src/Users/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs index 69286ed6edd..bc120de36df 100644 --- a/src/Users/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs +++ b/src/Users/wrapper/v1.0/Client/Models/ProcessContentMetadataBase.cs @@ -22,6 +22,8 @@ public partial class ProcessContentMetadataBase : IAdditionalDataHolder, IParsab #else public global::Microsoft.Graph.PowerShell.Users.Client.Models.ContentBase Content { get; set; } #endif + /// The contentCategory property + public global::Microsoft.Graph.PowerShell.Users.Client.Models.ContentCategory? ContentCategory { get; set; } /// An identifier used to group multiple related content entries (for example, different parts of the same file upload, messages in a conversation). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -90,6 +92,7 @@ public virtual IDictionary> GetFieldDeserializers() return new Dictionary> { { "content", n => { Content = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.ContentBase.CreateFromDiscriminatorValue); } }, + { "contentCategory", n => { ContentCategory = n.GetEnumValue(); } }, { "correlationId", n => { CorrelationId = n.GetStringValue(); } }, { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, { "identifier", n => { Identifier = n.GetStringValue(); } }, @@ -109,6 +112,7 @@ public virtual void Serialize(ISerializationWriter writer) { if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); writer.WriteObjectValue("content", Content); + writer.WriteEnumValue("contentCategory", ContentCategory); writer.WriteStringValue("correlationId", CorrelationId); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("identifier", Identifier); diff --git a/src/Users/wrapper/v1.0/Client/Models/TargetedChatMessage.cs b/src/Users/wrapper/v1.0/Client/Models/TargetedChatMessage.cs index 9caa3ff9d79..62e37475ca4 100644 --- a/src/Users/wrapper/v1.0/Client/Models/TargetedChatMessage.cs +++ b/src/Users/wrapper/v1.0/Client/Models/TargetedChatMessage.cs @@ -12,7 +12,7 @@ namespace Microsoft.Graph.PowerShell.Users.Client.Models public partial class TargetedChatMessage : global::Microsoft.Graph.PowerShell.Users.Client.Models.ChatMessage, IParsable #pragma warning restore CS1591 { - /// The recipient property + /// The intended recipient of the targeted message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public global::Microsoft.Graph.PowerShell.Users.Client.Models.Identity? Recipient { get; set; } diff --git a/src/Users/wrapper/v1.0/Client/Models/User.cs b/src/Users/wrapper/v1.0/Client/Models/User.cs index bfab10f89b5..ed04e0b66aa 100644 --- a/src/Users/wrapper/v1.0/Client/Models/User.cs +++ b/src/Users/wrapper/v1.0/Client/Models/User.cs @@ -913,6 +913,14 @@ public partial class User : global::Microsoft.Graph.PowerShell.Users.Client.Mode #nullable restore #else public global::Microsoft.Graph.PowerShell.Users.Client.Models.UserSolutionRoot Solutions { get; set; } +#endif + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SponsorOf { get; set; } +#nullable restore +#else + public List SponsorOf { get; set; } #endif /// The users and groups responsible for this guest's privileges in the tenant and keeping the guest's information and access updated. (HTTP Methods: GET, POST, DELETE.). Supports $expand. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -1143,6 +1151,7 @@ public override IDictionary> GetFieldDeserializers() { "signInSessionsValidFromDateTime", n => { SignInSessionsValidFromDateTime = n.GetDateTimeOffsetValue(); } }, { "skills", n => { Skills = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, { "solutions", n => { Solutions = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Users.Client.Models.UserSolutionRoot.CreateFromDiscriminatorValue); } }, + { "sponsorOf", n => { SponsorOf = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "sponsors", n => { Sponsors = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject.CreateFromDiscriminatorValue)?.AsList(); } }, { "state", n => { State = n.GetStringValue(); } }, { "streetAddress", n => { StreetAddress = n.GetStringValue(); } }, @@ -1287,6 +1296,7 @@ public override void Serialize(ISerializationWriter writer) writer.WriteDateTimeOffsetValue("signInSessionsValidFromDateTime", SignInSessionsValidFromDateTime); writer.WriteCollectionOfPrimitiveValues("skills", Skills); writer.WriteObjectValue("solutions", Solutions); + writer.WriteCollectionOfObjectValues("sponsorOf", SponsorOf); writer.WriteCollectionOfObjectValues("sponsors", Sponsors); writer.WriteStringValue("state", State); writer.WriteStringValue("streetAddress", StreetAddress); diff --git a/src/Users/wrapper/v1.0/Client/Models/UserActivityType.cs b/src/Users/wrapper/v1.0/Client/Models/UserActivityType.cs index 24089b3b9a7..22c1254cece 100644 --- a/src/Users/wrapper/v1.0/Client/Models/UserActivityType.cs +++ b/src/Users/wrapper/v1.0/Client/Models/UserActivityType.cs @@ -28,5 +28,21 @@ public enum UserActivityType #pragma warning disable CS1591 UnknownFutureValue, #pragma warning restore CS1591 + [EnumMember(Value = "copyToClipboard")] + #pragma warning disable CS1591 + CopyToClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "pasteFromClipboard")] + #pragma warning disable CS1591 + PasteFromClipboard, + #pragma warning restore CS1591 + [EnumMember(Value = "print")] + #pragma warning disable CS1591 + Print, + #pragma warning restore CS1591 + [EnumMember(Value = "accessDebugTools")] + #pragma warning disable CS1591 + AccessDebugTools, + #pragma warning restore CS1591 } } diff --git a/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Count/CountRequestBuilder.cs b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..db6a18877c9 --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\sponsorOf\$count + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf/$count{?%24filter,%24search}", pathParameters) + { + } + /// + /// Instantiates a new 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) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf/$count{?%24filter,%24search}", rawUrl) + { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the number of the resource + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count.CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetQueryParameters + { + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Item/DirectoryObjectItemRequestBuilder.cs new file mode 100644 index 00000000000..40a7cd3a2d5 --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/Item/DirectoryObjectItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Users.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\sponsorOf\{directoryObject-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DirectoryObjectItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf/{directoryObject%2Did}{?%24expand,%24select}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DirectoryObjectItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf/{directoryObject%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item.DirectoryObjectItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item.DirectoryObjectItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Directory objects that this user sponsors, such as guest users, agent users, agent blueprints, agent blueprint principals, and agent identities. If the user is a member of a group that's a sponsor, the objects sponsored by that group are also included. Read-only. Nullable. Supports $filter, $count, $select, $expand, $top, and $skip. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DirectoryObjectItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/SponsorOfRequestBuilder.cs b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/SponsorOfRequestBuilder.cs new file mode 100644 index 00000000000..881810a7999 --- /dev/null +++ b/src/Users/wrapper/v1.0/Client/Users/Item/SponsorOf/SponsorOfRequestBuilder.cs @@ -0,0 +1,184 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Users.Client.Models; +using Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count; +using Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\sponsorOf + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SponsorOfRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Users.Client.users.item.sponsorOf.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item.DirectoryObjectItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("directoryObject%2Did", position); + return new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.Item.DirectoryObjectItemRequestBuilder(urlTplParams, RequestAdapter); + } + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SponsorOfRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SponsorOfRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/sponsorOf{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get the directory objects that a user sponsors. Sponsored objects can include users, agent users, agent blueprints, agent blueprint principals, and agent identities. Because a group can also be a sponsor, the response includes both objects the user directly sponsors and objects the user sponsors through group membership. + /// Find more info here + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Users.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObjectCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the directory objects that a user sponsors. Sponsored objects can include users, agent users, agent blueprints, agent blueprint principals, and agent identities. Because a group can also be a sponsor, the response includes both objects the user directly sponsors and objects the user sponsors through group membership. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.SponsorOfRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.SponsorOfRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the directory objects that a user sponsors. Sponsored objects can include users, agent users, agent blueprints, agent blueprint principals, and agent identities. Because a group can also be a sponsor, the response includes both objects the user directly sponsors and objects the user sponsors through group membership. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SponsorOfRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// 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. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SponsorOfRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Users/wrapper/v1.0/Client/Users/Item/UserItemRequestBuilder.cs b/src/Users/wrapper/v1.0/Client/Users/Item/UserItemRequestBuilder.cs index e5062cc7257..f5e3fe73eba 100644 --- a/src/Users/wrapper/v1.0/Client/Users/Item/UserItemRequestBuilder.cs +++ b/src/Users/wrapper/v1.0/Client/Users/Item/UserItemRequestBuilder.cs @@ -19,6 +19,7 @@ using Microsoft.Graph.PowerShell.Users.Client.Users.Item.Photos; using Microsoft.Graph.PowerShell.Users.Client.Users.Item.RegisteredDevices; using Microsoft.Graph.PowerShell.Users.Client.Users.Item.Settings; +using Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf; using Microsoft.Graph.PowerShell.Users.Client.Users.Item.Sponsors; using Microsoft.Graph.PowerShell.Users.Client.Users.Item.Todo; using Microsoft.Graph.PowerShell.Users.Client.Users.Item.TransitiveMemberOf; @@ -123,6 +124,11 @@ public partial class UserItemRequestBuilder : BaseRequestBuilder { get => new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.Settings.SettingsRequestBuilder(PathParameters, RequestAdapter); } + /// The sponsorOf property + public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.SponsorOfRequestBuilder SponsorOf + { + get => new global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.SponsorOf.SponsorOfRequestBuilder(PathParameters, RequestAdapter); + } /// The sponsors property public global::Microsoft.Graph.PowerShell.Users.Client.Users.Item.Sponsors.SponsorsRequestBuilder Sponsors { diff --git a/src/Users/wrapper/v1.0/Client/kiota-lock.json b/src/Users/wrapper/v1.0/Client/kiota-lock.json index 8da5a9190d4..1417174642b 100644 --- a/src/Users/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Users/wrapper/v1.0/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "28EA28EDE80458E17E7A89C4D4AB54AA5DFB4F9FCD020571A1E7B8041F4FC4DCE23E092E5C276A68E36D43433A239B0B58F5E16DC1CF046B58656D0DC817B0D3", + "descriptionHash": "DEA65375D6342E7DEB17A370618687E96FCB48444FCE94A80F12AAF911A6EE4DAC98FCE8F372AC5C9A03FB7C3A808EB24AE82149D53109C4198696A4EA63F89B", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Users.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.32.2", diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser.g.cs index 5a95b187cea..068b1da5bbb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UserId : null); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCount.g.cs index 8e81ffaacfd..4ad1e959062 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCount.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject.g.cs index d58c747090d..40788b170b9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal.g.cs index 8fdf5c6d39d..dc2621e7003 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_Get.g.cs index e4899cc4c03..bb4a579cd98 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_List.g.cs index d3e456daf66..fa4191def01 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectAsServicePrincipal_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCount.g.cs index 258f4e1260d..032c927ae2d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCountAsServicePrincipal.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCountAsServicePrincipal.g.cs index 9bb5202f32c..20b0502ffcb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCountAsServicePrincipal.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObjectCountAsServicePrincipal.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_Get.g.cs index a9a11eb06e0..22cfe6d35e1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_List.g.cs index 23c5cf12a59..70d232c52d2 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserCreatedObject_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport.g.cs index 47cfbc834b1..4d02c41b4f7 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact.g.cs index 537714fa75b..f4254f55f80 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_Get.g.cs index 9611b954c20..690d766a0f5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_List.g.cs index 1942a0b85c4..45c79913efe 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsOrgContact_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser.g.cs index 67008530b3e..4b70bfe90d9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_Get.g.cs index f5febc34fb5..380708b9d0b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_List.g.cs index b88917369f1..3b266be193f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportAsUser_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCount.g.cs index f1998834020..0be39c93a5a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsOrgContact.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsOrgContact.g.cs index 0c2fc9485a8..36b22cc8abd 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsOrgContact.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsOrgContact.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsUser.g.cs index 2d7575ff340..e9eb46072b1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReportCountAsUser.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_Get.g.cs index 7d2e1dff93c..c9237549fb9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_List.g.cs index e6af066a752..a23caf33d3a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserDirectReport_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension.g.cs index 47bda0bc536..4135174c988 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtensionCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtensionCount.g.cs index 9f31d26e86b..87ac017d8ec 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtensionCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtensionCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_Get.g.cs index 557930cf647..32f7e824efc 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_List.g.cs index 5459dec0917..338035be70f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserExtension_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsight.g.cs index 3c5ef9502e3..629ed26db19 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsight.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared.g.cs index 9645cc6685b..d717b72177a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? SharedInsightId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedCount.g.cs index bfb70922218..0f5f7cd61a2 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedLastSharedMethod.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedLastSharedMethod.g.cs index e212c229cb0..127e0e51fe3 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedLastSharedMethod.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedLastSharedMethod.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedResource.g.cs index ac544c48518..94fc785933d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightSharedResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_Get.g.cs index d90c5067f97..235e823a63a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_List.g.cs index a8fcf53f2d5..28a69e7e971 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightShared_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending.g.cs index 7c61b6d617b..ed7f6c9f689 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TrendingId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingCount.g.cs index e86cc6fe2a3..372571fb6ef 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingResource.g.cs index fcd7c8590d6..c5942b8a5b0 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrendingResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrendingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_Get.g.cs index 6181927996c..5724ed3b900 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrendingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_List.g.cs index ee7117672e3..7f73bed3555 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightTrending_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed.g.cs index b35494c11de..792ed91c7ae 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? UsedInsightId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedCount.g.cs index 134942ceeb3..b253bc2b83b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedResource.g.cs index 5e624155c97..7193018be90 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsedResource.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UsedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_Get.g.cs index 47da296905a..7fb2b277c60 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UsedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_List.g.cs index afdd014c64e..c056067130c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserInsightUsed_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail.g.cs index e6ea506a6d8..35e98dc823c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LicenseDetailsId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailCount.g.cs index 41c294ac9e8..448c53e4e7f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailTeamLicensingDetail.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailTeamLicensingDetail.g.cs index 3fd2417e0a3..40a7be44cf5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailTeamLicensingDetail.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetailTeamLicensingDetail.g.cs @@ -45,7 +45,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_Get.g.cs index cd9d7fbba01..cafcb677a99 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LicenseDetailsId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_List.g.cs index 8759c5019e6..8bbee470227 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserLicenseDetail_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMailboxSetting.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMailboxSetting.g.cs index d1a08403b59..f196a16d900 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMailboxSetting.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMailboxSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManager.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManager.g.cs index cfda92c004d..8733c410908 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManager.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManager.g.cs @@ -60,7 +60,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManagerByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManagerByRef.g.cs index b5ef345ff3a..4eced6f0c6d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManagerByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserManagerByRef.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf.g.cs index 47668080032..b4d21c6927d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit.g.cs index 2709ca5fed8..2da4d0ed906 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_Get.g.cs index f9f43a8e261..0b62db8fe29 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_List.g.cs index 0bae87397c3..cc3c3057258 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole.g.cs index f0c785b042f..e361bfd1da9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_Get.g.cs index 2cade04f909..4a57c438f2d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_List.g.cs index 72dd7727ed0..e9dab8054df 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsDirectoryRole_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup.g.cs index f961d6b7b61..80d01a156e3 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_Get.g.cs index acb6d146e6e..5108f5e0c72 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_List.g.cs index 4e11d761402..6bb147ae0db 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCount.g.cs index 3e2dbfff181..7516e453c5b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsAdministrativeUnit.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsAdministrativeUnit.g.cs index 39bec68f8a6..7f6b257f8de 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsDirectoryRole.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsDirectoryRole.g.cs index a974526a9ad..f5f32e653f0 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsDirectoryRole.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsDirectoryRole.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsGroup.g.cs index 0bb2c646a76..5c65e3851bb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_Get.g.cs index d0b7e9cbd63..26eebfbfca6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_List.g.cs index f8c91249822..076bb2cb30a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant.g.cs index 3da011d7fd1..54dade82102 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OAuth2PermissionGrantId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrantCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrantCount.g.cs index 6228d088c54..939936fb143 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrantCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrantCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_Get.g.cs index 5dbb6438ed6..6607d8e1dd5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OAuth2PermissionGrantId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_List.g.cs index 6919f3c0efc..2dbed8f768d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOauth2PermissionGrant_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOnPremiseSyncBehavior.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOnPremiseSyncBehavior.g.cs index 124842d0819..6322d77cb05 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOnPremiseSyncBehavior.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory.g.cs index 4edc8b75920..9bd6d07e505 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? OutlookCategoryId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategoryCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategoryCount.g.cs index e48a8c331cf..bfac20862a5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategoryCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategoryCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_Get.g.cs index 517dfa35d45..fa91a8386e4 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OutlookCategoryId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_List.g.cs index e0e3bf5deb6..945e187ac59 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookMasterCategory_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookSupportedTimeZonesWithTimeZoneStandard.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookSupportedTimeZonesWithTimeZoneStandard.g.cs index 39b02002421..ceb07ad1c42 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookSupportedTimeZonesWithTimeZoneStandard.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOutlookSupportedTimeZonesWithTimeZoneStandard.g.cs @@ -82,7 +82,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice.g.cs index 5c0207cfdb3..6b74eb62095 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment.g.cs index 13084c19cc1..af5c6c17f73 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_Get.g.cs index f941d8d25d2..7d4f17027a9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_List.g.cs index 39b1193cf26..efb40401e2c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice.g.cs index 171b1ff8b4f..f62e28c2214 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_Get.g.cs index f84a3cf4767..d64901322f4 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_List.g.cs index 4fb66b0718a..ca8bc59f2db 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint.g.cs index b87db96dad5..fff56dc3a74 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_Get.g.cs index 414cf4f9656..1f0d6b2c209 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_List.g.cs index 2061a74330a..7f8dac18b0b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCount.g.cs index 3f5be3ca233..c2c5f8a9a30 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsAppRoleAssignment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsAppRoleAssignment.g.cs index 7efa44b145a..3a9bb186772 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsAppRoleAssignment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsDevice.g.cs index 39c43e57e63..32db5d016f5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsEndpoint.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsEndpoint.g.cs index 03c7daa6b69..5be620fc581 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsEndpoint.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDeviceCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_Get.g.cs index a45ba951692..5f9f0c87a7a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_List.g.cs index 6bb8fe887fe..0bb65760e14 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject.g.cs index 8e305a5d1e9..0d585d72397 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication.g.cs index f93e7b8fc50..fb8a84b0e9e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_Get.g.cs index 683cde170ab..54b4514f88c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_List.g.cs index 0252262ac60..13b68e62fca 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsApplication_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup.g.cs index e2219c9f3e5..13467b402d8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_Get.g.cs index a8e884069d4..b1f04e8ce38 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_List.g.cs index b2396118247..4f57d6ecebf 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal.g.cs index d60019b553b..6dba66fcd79 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_Get.g.cs index c8a6efa28d7..fe87d5d69f1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_List.g.cs index 556c44b43d2..f4bbefcf4a4 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectAsServicePrincipal_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCount.g.cs index 9c3ab608b1b..feddd24741d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsApplication.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsApplication.g.cs index 5219c1e3479..a562afe967d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsApplication.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsApplication.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsGroup.g.cs index 8d17b7b7927..acfd01fde80 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsServicePrincipal.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsServicePrincipal.g.cs index 76201864efe..55e81a2c6a6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsServicePrincipal.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObjectCountAsServicePrincipal.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_Get.g.cs index 2a51dc97064..bf1ee566a3e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_List.g.cs index 65d0acc750d..314dc64fa12 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserOwnedObject_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhoto.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhoto.g.cs index c8fa5393b0b..31e41320c8b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhoto.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhoto.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhotoContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhotoContent.g.cs index 9c1285010f8..ed54b1cc522 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhotoContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserPhotoContent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice.g.cs index 9f8bd1db68f..178923f6cd4 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment.g.cs index abf914218b8..483d2468440 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_Get.g.cs index e109a24f5fe..5f166dc5ed9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_List.g.cs index 709b844b43f..c87b55e5c9c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsAppRoleAssignment_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice.g.cs index 2fb6f4730a3..b8cde44993b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_Get.g.cs index 54f4e3e86d0..01ecc80647b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_List.g.cs index 6033d02d870..aa18ec3fd15 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint.g.cs index 59cefe453f8..822c08bf439 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_Get.g.cs index 8302ab49f1f..718f7c701eb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_List.g.cs index 8fbbe22d3b8..ff0386b1c92 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceAsEndpoint_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCount.g.cs index 5389c3c4af7..d0a6d13849a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsAppRoleAssignment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsAppRoleAssignment.g.cs index 71827d7fb32..f72e8b0ba6b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsAppRoleAssignment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsAppRoleAssignment.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsDevice.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsDevice.g.cs index 9192d5dea8b..72c1fca490a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsDevice.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsDevice.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsEndpoint.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsEndpoint.g.cs index 18c5511b9e0..cd9c0a6a53a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsEndpoint.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDeviceCountAsEndpoint.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_Get.g.cs index b97d34c9584..4c03935d08b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_List.g.cs index 69cfe8839fb..3c5c6bed194 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserRegisteredDevice_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSetting.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSetting.g.cs index 2dde5e524a3..cedeeca8a80 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSetting.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSetting.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingExchange.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingExchange.g.cs index 6889f9e4344..860bf4a0e85 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingExchange.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingExchange.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingItemInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingItemInsight.g.cs index d7f71f3c9d6..0c00baeb47a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingItemInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingItemInsight.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingShiftPreference.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingShiftPreference.g.cs index e215a0d167c..f8362c5ad27 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingShiftPreference.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingShiftPreference.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorage.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorage.g.cs index ad71ed0e72a..50268de0d05 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorage.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorage.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuota.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuota.g.cs index 9aa391b4a28..7b308e04ff0 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuota.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuota.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService.g.cs index 97bae4034d5..765ddc4d7fd 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ServiceStorageQuotaBreakdownId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaServiceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaServiceCount.g.cs index 0ec9de12371..da8b4728689 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaServiceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaServiceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_Get.g.cs index 495b9ca74cb..1d3a2ef6df1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceStorageQuotaBreakdownId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_List.g.cs index 37124072f2b..2bc2d7b8be9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingStorageQuotaService_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows.g.cs index 111c35f6ce3..5f8ff27709e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsSettingId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsCount.g.cs index 813a74d095d..55d7a0db025 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance.g.cs index d6774141e0a..5a785c05e99 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WindowsSettingInstanceId : WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstanceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstanceCount.g.cs index b9eb4bb4bc7..723a0389fef 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstanceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstanceCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_Get.g.cs index 3e0000d1035..68c6f1d43af 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingInstanceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_List.g.cs index 650d2fecbd4..9013a3fc206 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindowsInstance_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_Get.g.cs index e1e071e4166..9102587c952 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_List.g.cs index 3ac3e27d64c..422d70e8b23 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWindows_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocation.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocation.g.cs index da5e917d349..a7f1e74deb5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocation.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocation.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence.g.cs index 64facd3729f..51cb869a856 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkPlanOccurrenceId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrenceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrenceCount.g.cs index 39b25a3a105..4e5c15ec738 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrenceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrenceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_Get.g.cs index 693bb732bdc..19e24f367ac 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanOccurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_List.g.cs index 1bbe150cb88..02fe0c9f985 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrence_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrencesViewWithStartDateTimeWithEndDateTime.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrencesViewWithStartDateTimeWithEndDateTime.g.cs index 677efc26da1..23ffa3253a8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrencesViewWithStartDateTimeWithEndDateTime.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationOccurrencesViewWithStartDateTimeWithEndDateTime.g.cs @@ -108,7 +108,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence.g.cs index 9dc46fc5c9b..50785a55f3a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? WorkPlanRecurrenceId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrenceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrenceCount.g.cs index a29dc2430c6..dd4a4fd5633 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrenceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrenceCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_Get.g.cs index eb15e45a942..4d823959b72 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanRecurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_List.g.cs index e13261de213..251d1e267fb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSettingWorkHourAndLocationRecurrence_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsor.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsor.g.cs index b32a6b394da..ea46270e752 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsor.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsor.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorByRef.g.cs index 481a170a9dd..1b531aee340 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorByRef.g.cs @@ -102,7 +102,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -118,7 +118,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorCount.g.cs index 6eefe862436..a2711bc837d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf.g.cs new file mode 100644 index 00000000000..ee935afeb60 --- /dev/null +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf.g.cs @@ -0,0 +1,93 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Management.Automation.Runspaces; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Users.Client.Models; + +namespace Microsoft.Graph.PowerShell.Users +{ + [GraphRoute("GET", "/users/{user-id}/sponsorOf")] + [Cmdlet(VerbsCommon.Get, "MgUserSponsorOf", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObjectCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject), ParameterSetName = new[] { "Get" })] + public class GetMgUserSponsorOfCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string DirectoryObjectId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter Count { get; set; } + + // Declared here because the binder rejects a parameter the dispatcher does not accept + // before ProcessRecord ever runs; once declared, the wholesale BoundParameters splat + // forwards it to the list worker with no further plumbing. + [Parameter(Mandatory = false, ParameterSetName = "List")] + public SwitchParameter All { get; set; } + + + + + + // Delegates to Get-MgUserSponsorOf_Get or Get-MgUserSponsorOf_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserSponsorOf_Get" : "Get-MgUserSponsorOf_List"; + try + { + InvokeCommand.InvokeScript( + "param($BoundParameters, $CmdletName) & $CmdletName @BoundParameters", + false, + PipelineResultTypes.Output | PipelineResultTypes.Error, + null, + MyInvocation.BoundParameters, internalCmdletName); + } + // The workers signal failure via ThrowTerminatingError, which InvokeScript surfaces + // as a RuntimeException carrying the worker's ErrorRecord. Rethrow that record + // unchanged so the caller sees the worker's error identity (NoGraphSession, + // GraphRequestFailed, ...) instead of every failure collapsing into a generic + // dispatcher error. A pipeline stop is a RuntimeException too and must NOT be + // rethrown as a terminating error - both filters here let it pass to the engine. + catch (RuntimeException rex) when (rex is not PipelineStoppedException && rex.ErrorRecord is not null) + { + ThrowTerminatingError(rex.ErrorRecord); + return; + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); + return; + } + } + } +} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOfCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOfCount.g.cs new file mode 100644 index 00000000000..c0c56c46512 --- /dev/null +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOfCount.g.cs @@ -0,0 +1,62 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Users.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Users +{ + [GraphRoute("GET", "/users/{user-id}/sponsorOf/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserSponsorOfCount")] + [OutputType(typeof(int))] + public class GetMgUserSponsorOfCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + int? result; + try + { + result = client.Users[UserId].SponsorOf.Count.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UserId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_Get.g.cs new file mode 100644 index 00000000000..70ac344964c --- /dev/null +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_Get.g.cs @@ -0,0 +1,67 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Users.Client; +using Microsoft.Graph.PowerShell.Users.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Users +{ + [GraphRoute("GET", "/users/{user-id}/sponsorOf/{directoryObject-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserSponsorOf_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject))] + public class GetMgUserSponsorOf_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string DirectoryObjectId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject? result; + try + { + result = client.Users[UserId].SponsorOf[DirectoryObjectId].GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, DirectoryObjectId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_List.g.cs new file mode 100644 index 00000000000..a976dfe9820 --- /dev/null +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserSponsorOf_List.g.cs @@ -0,0 +1,142 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Users.Client; +using Microsoft.Graph.PowerShell.Users.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Users +{ + [GraphRoute("GET", "/users/{user-id}/sponsorOf")] + [Cmdlet(VerbsCommon.Get, "MgUserSponsorOf_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObject))] + public class GetMgUserSponsorOf_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false)] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false)] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false)] + public string? Search { get; set; } + + [Parameter(Mandatory = false)] + public int Top { get; set; } + + [Parameter(Mandatory = false)] + public int Skip { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter Count { get; set; } + + // Follows every @odata.nextLink until the collection is exhausted (a bound -Top caps + // the total). Without it only the first page returns, plus a truncation warning when + // more pages existed. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Users.Client.Models.DirectoryObjectCollectionResponse? result; + try + { + result = client.Users[UserId].SponsorOf.GetAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + if (this.IsParameterBound(nameof(Property))) + requestConfiguration.QueryParameters.Select = Property; + + if (this.IsParameterBound(nameof(ExpandProperty))) + requestConfiguration.QueryParameters.Expand = ExpandProperty; + + if (this.IsParameterBound(nameof(Sort))) + requestConfiguration.QueryParameters.Orderby = Sort; + + if (this.IsParameterBound(nameof(Search))) + requestConfiguration.QueryParameters.Search = Search; + + if (this.IsParameterBound(nameof(Top))) + requestConfiguration.QueryParameters.Top = Top; + + if (this.IsParameterBound(nameof(Skip))) + requestConfiguration.QueryParameters.Skip = Skip; + + if (Count.IsPresent) + requestConfiguration.QueryParameters.Count = true; + + + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + + // A collection response and its Value are both nullable on the kiota client; an + // empty page writes nothing rather than dereferencing null. Each page streams to + // the pipeline before the next request is issued, matching the published SDK. + if (result?.Value is { } items) + WriteObject(items, enumerateCollection: true); + + if (All.IsPresent) + { + var fetched = result?.Value?.Count ?? 0; + var nextLink = result?.OdataNextLink; + while (!string.IsNullOrEmpty(nextLink) && !Stopping && (!this.IsParameterBound(nameof(Top)) || fetched < Top)) + { + // The nextLink already carries the original query state, and a raw-URL + // builder ignores templated query parameters anyway - so the continuation + // re-applies headers only; query bindings here would be dead code. + result = client.Users[UserId].SponsorOf.WithUrl(nextLink).GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }, StoppingToken).GetAwaiter().GetResult(); + if (result?.Value is { } page) + { + WriteObject(page, enumerateCollection: true); + fetched += page.Count; + } + nextLink = result?.OdataNextLink; + } + } + else if (!string.IsNullOrEmpty(result?.OdataNextLink)) + { + // Deliberately stronger than the published SDK, which truncates silently; + // approved in the design spec. One line, no extra request. + WriteWarning("More results are available. Use -All to return all pages."); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UserId); + return; + } + } + } +} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList.g.cs index 07771b4f3db..d6a06b869a5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TodoTaskListId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListCount.g.cs index 9470c80b17b..91ec5d84de5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListCount.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListDelta.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListDelta.g.cs index 10818a409df..4062a48fde8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListDelta.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListDelta.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension.g.cs index 8c8c2f3e2bf..7661ee98766 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtensionCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtensionCount.g.cs index bfe8cedf0a0..30201f151bb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtensionCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtensionCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_Get.g.cs index 0c33b69e4aa..2bf7cf289b8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_List.g.cs index 13719e03cf0..6dc5934a45b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListExtension_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListTaskAttachmentSessionContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListTaskAttachmentSessionContent.g.cs deleted file mode 100644 index b2bcddc5cfa..00000000000 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoListTaskAttachmentSessionContent.g.cs +++ /dev/null @@ -1,77 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Users.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Users -{ - [GraphRoute("GET", "/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/attachmentSessions/{attachmentSession-id}/content")] - [Cmdlet(VerbsCommon.Get, "MgUserTodoListTaskAttachmentSessionContent")] - [OutputType(typeof(byte[]))] - public class GetMgUserTodoListTaskAttachmentSessionContentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string TodoTaskListId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string TodoTaskId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string AttachmentSessionId { get; set; } = string.Empty; - - - - - - - [Parameter(Mandatory = false, - HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] - public string? OutFile { get; set; } - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - System.IO.Stream? result; - try - { - result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId].Content.GetAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException) - { - ThrowGraphRequestFailed(ex, AttachmentSessionId); - return; - } - - if (result is not null) - { - using (result) - { - if (this.IsParameterBound(nameof(OutFile))) - { - using var file = System.IO.File.Create(OutFile!); - result.CopyTo(file); - } - else - { - using var buffer = new System.IO.MemoryStream(); - result.CopyTo(buffer); - WriteObject(buffer.ToArray()); - } - } - } - } - } -} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_Get.g.cs index 04208530036..c6fbe66ae06 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_Get.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_List.g.cs index e6aaf82b016..8632050d158 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoList_List.g.cs @@ -116,7 +116,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -132,7 +132,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask.g.cs index edc528c2ed2..796b85c8eeb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask.g.cs @@ -85,7 +85,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? TodoTaskId : TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment.g.cs index 49a867c3633..b142cd52204 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentBaseId : TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentContent.g.cs index 34a3b8ba23a..0d2dc42727f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentContent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentBaseId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentCount.g.cs index 8bc482350b1..1a38d5d32cd 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession.g.cs index c52fb45ff0b..2930df485ce 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? AttachmentSessionId : TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionContent.g.cs new file mode 100644 index 00000000000..f3919a6a4b1 --- /dev/null +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionContent.g.cs @@ -0,0 +1,77 @@ +#nullable enable + +using System; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Users.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Users +{ + [GraphRoute("GET", "/users/{user-id}/todo/lists/{todoTaskList-id}/tasks/{todoTask-id}/attachmentSessions/{attachmentSession-id}/content")] + [Cmdlet(VerbsCommon.Get, "MgUserTodoTaskAttachmentSessionContent")] + [OutputType(typeof(byte[]))] + public class GetMgUserTodoTaskAttachmentSessionContentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string TodoTaskListId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string TodoTaskId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string AttachmentSessionId { get; set; } = string.Empty; + + + + + + + [Parameter(Mandatory = false, + HelpMessage = "Writes the response content to this path instead of returning it as bytes.")] + public string? OutFile { get; set; } + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + System.IO.Stream? result; + try + { + result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId].Content.GetAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, AttachmentSessionId); + return; + } + + if (result is not null) + { + using (result) + { + if (this.IsParameterBound(nameof(OutFile))) + { + using var file = System.IO.File.Create(OutFile!); + result.CopyTo(file); + } + else + { + using var buffer = new System.IO.MemoryStream(); + result.CopyTo(buffer); + WriteObject(buffer.ToArray()); + } + } + } + } + } +} diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionCount.g.cs index bb1241ae444..2c769cff766 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSessionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_Get.g.cs index 75726ef0176..8a37c7831d1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_List.g.cs index fea977c9880..0b1c453fe09 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachmentSession_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_Get.g.cs index be119fd5425..f31c058937e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentBaseId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_List.g.cs index bd29c802c51..763c26db640 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskAttachment_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem.g.cs index 4d07f29a45e..5f67f0a1dc9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ChecklistItemId : TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItemCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItemCount.g.cs index 0c932b7822f..df8c018344b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItemCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItemCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_Get.g.cs index a2bb4e7b0c7..f1777f33fcb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChecklistItemId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_List.g.cs index f72df22f4e1..5bd38ce83fa 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskChecklistItem_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskCount.g.cs index 6e33049abb7..3455d61f029 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskCount.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskDelta.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskDelta.g.cs index 43b5d52bd24..6998d27e650 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskDelta.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskDelta.g.cs @@ -169,7 +169,7 @@ protected override void ProcessRecord() }).GetAwaiter().GetResult(); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension.g.cs index a1a44e5e511..aeb821fe2c5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? ExtensionId : TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtensionCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtensionCount.g.cs index 0e6255c69fd..ea9ca7ed233 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtensionCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtensionCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_Get.g.cs index 97ef71902df..1078f8d1e2d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_List.g.cs index 9576dc4918b..9b2a85b38b8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskExtension_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource.g.cs index dd98a847c98..8f5ae48f40b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? LinkedResourceId : TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResourceCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResourceCount.g.cs index f22ac91dacb..9749eefc5a0 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResourceCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResourceCount.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_Get.g.cs index a1c75a58567..01b70d29eed 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_Get.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LinkedResourceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_List.g.cs index 6a3a90b69aa..bdecfb9ca6b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTaskLinkedResource_List.g.cs @@ -120,7 +120,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -136,7 +136,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_Get.g.cs index ed83edff8d3..33770736358 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_Get.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_List.g.cs index 063352b9897..deaad41fc2e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTodoTask_List.g.cs @@ -118,7 +118,7 @@ protected override void ProcessRecord() { AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -134,7 +134,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf.g.cs index fb6059b7e3a..3bf5c0b40ac 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit.g.cs index 1d782368c5a..c0996a76544 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_Get.g.cs index 8bb1062afc4..cab1deb4501 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_List.g.cs index 333ff2a6a9e..27f43740afe 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsAdministrativeUnit_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole.g.cs index a02b0b76e42..31cd947deda 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_Get.g.cs index 091bc215b9f..fea84db7a29 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_List.g.cs index c5720741455..f19c9a9dcf9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsDirectoryRole_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup.g.cs index 45103ad7382..7ce9a467edb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() ThrowTerminatingError(rex.ErrorRecord); return; } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ParameterSetName == "Get" ? DirectoryObjectId : UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_Get.g.cs index 98538ee6c62..4f862aa4ca1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_List.g.cs index 7eb9cbc6d25..bab9627f5dd 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfAsGroup_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCount.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCount.g.cs index 8e1a5c81277..1b8113ae419 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCount.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCount.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsAdministrativeUnit.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsAdministrativeUnit.g.cs index 3adbb5b1ecf..d5d6451a441 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsAdministrativeUnit.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsAdministrativeUnit.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsDirectoryRole.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsDirectoryRole.g.cs index 7e7038c4f7c..edb99a86a42 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsDirectoryRole.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsDirectoryRole.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsGroup.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsGroup.g.cs index e7d5ac019ef..0f8e3d75d33 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsGroup.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOfCountAsGroup.g.cs @@ -56,7 +56,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_Get.g.cs index 42822e67453..f1665590831 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_Get.g.cs @@ -62,7 +62,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_List.g.cs index 5d4e5932fc6..a609601fb42 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUserTransitiveMemberOf_List.g.cs @@ -126,7 +126,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -142,7 +142,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_Get.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_Get.g.cs index d84234d43fe..bf896862d17 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_Get.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_Get.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_List.g.cs b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_List.g.cs index 22007ce8646..c9329eed78d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_List.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/GetMgUser_List.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() requestConfiguration.Headers.Add("ConsistencyLevel", ConsistencyLevel!); AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); + }, StoppingToken).GetAwaiter().GetResult(); if (result?.Value is { } page) { WriteObject(page, enumerateCollection: true); @@ -135,7 +135,7 @@ protected override void ProcessRecord() WriteWarning("More results are available. Use -All to return all pages."); } } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, null); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/InvokeMgSupportedUserOutlookLanguage.g.cs b/src/Users/wrapper/v1.0/Cmdlets/InvokeMgSupportedUserOutlookLanguage.g.cs index e01b8386e98..5347d8229c8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/InvokeMgSupportedUserOutlookLanguage.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/InvokeMgSupportedUserOutlookLanguage.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/InvokeMgTimeUserOutlook.g.cs b/src/Users/wrapper/v1.0/Cmdlets/InvokeMgTimeUserOutlook.g.cs index 609dcff538a..85c43be3a93 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/InvokeMgTimeUserOutlook.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/InvokeMgTimeUserOutlook.g.cs @@ -72,7 +72,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUser.g.cs index f1e64b105b6..81f10e2eff2 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUser.g.cs @@ -524,7 +524,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserExtension.g.cs index 83fdc2b087f..16d48410946 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserExtension.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightShared.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightShared.g.cs index 0078016bd58..b2c229733fc 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightShared.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightShared.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightTrending.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightTrending.g.cs index eb1e385d95e..6b1482def2c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightTrending.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightTrending.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightUsed.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightUsed.g.cs index ddf930e12ec..bff50eeefe7 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightUsed.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserInsightUsed.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserOutlookMasterCategory.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserOutlookMasterCategory.g.cs index 2029379fb7a..4ec0c913d03 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserOutlookMasterCategory.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserOutlookMasterCategory.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingStorageQuotaService.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingStorageQuotaService.g.cs index 2802709e3f2..148fa296c51 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingStorageQuotaService.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingStorageQuotaService.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindows.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindows.g.cs index c82d65a36e3..24006ec0321 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindows.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindows.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindowsInstance.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindowsInstance.g.cs index 0ca53c8ca42..cc99599f1e6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindowsInstance.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWindowsInstance.g.cs @@ -73,7 +73,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationOccurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationOccurrence.g.cs index c207c9b4192..d38827faed8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationOccurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationOccurrence.g.cs @@ -81,7 +81,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationRecurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationRecurrence.g.cs index 89d6b368ad7..c22f7d4c05b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationRecurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSettingWorkHourAndLocationRecurrence.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSponsorByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSponsorByRef.g.cs index c99b562d917..0fc1b701a38 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSponsorByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserSponsorByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoList.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoList.g.cs index ebec2f78f94..50cce9f8ca5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoList.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoList.g.cs @@ -69,7 +69,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListExtension.g.cs index d45b6f1d7c3..ee8a6efd3fa 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTask.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTask.g.cs index 530f6c3235f..9936df6f1b4 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTask.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTask.g.cs @@ -137,7 +137,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachment.g.cs index 661a5e246c7..660e982281f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachment.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachmentUploadSession.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachmentUploadSession.g.cs index 5851e18e501..b9c70f0c572 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachmentUploadSession.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskAttachmentUploadSession.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskChecklistItem.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskChecklistItem.g.cs index dd8b6d79c25..bd3b5b3079b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskChecklistItem.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskChecklistItem.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskExtension.g.cs index 7ddf684c730..96ab443e840 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskLinkedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskLinkedResource.g.cs index c0c9c2105d9..c57fae7e205 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskLinkedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/NewMgUserTodoListTaskLinkedResource.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, body); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUser.g.cs index e9ed00177f7..352b08b1ee8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUser.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserExtension.g.cs index e5072be458e..09f0ca1ae29 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserExtension.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsight.g.cs index 9bf730c7aa1..2948c5551ca 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsight.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightShared.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightShared.g.cs index 17db8ba6605..d2b16637f94 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightShared.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightShared.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightTrending.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightTrending.g.cs index c2b146f6377..d6f5c3765ce 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightTrending.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightTrending.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrendingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightUsed.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightUsed.g.cs index 9ef97344f92..fcae234655d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightUsed.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserInsightUsed.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UsedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserLicenseDetail.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserLicenseDetail.g.cs index f23e57a3dbf..8339087ab8e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserLicenseDetail.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserLicenseDetail.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LicenseDetailsId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserManagerByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserManagerByRef.g.cs index ac2ba6d6a68..75ed501237b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserManagerByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserManagerByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOnPremiseSyncBehavior.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOnPremiseSyncBehavior.g.cs index 9942a04f5b6..1d842bedb6a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOnPremiseSyncBehavior.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOnPremiseSyncBehavior.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOutlookMasterCategory.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOutlookMasterCategory.g.cs index 6fd78548880..3a723d0f396 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOutlookMasterCategory.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserOutlookMasterCategory.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OutlookCategoryId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhoto.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhoto.g.cs index c4995193135..fc44607cda0 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhoto.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhoto.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhotoContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhotoContent.g.cs index 58e71de0c11..0b3ae097624 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhotoContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserPhotoContent.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSetting.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSetting.g.cs index 53e4fdf4529..d4faa9953a6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSetting.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSetting.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingItemInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingItemInsight.g.cs index dfffcd04d5b..eeed5646e1c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingItemInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingItemInsight.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingShiftPreference.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingShiftPreference.g.cs index 2b7df73f2f8..910577810b1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingShiftPreference.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingShiftPreference.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorage.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorage.g.cs index b3335ca3f2a..475e7e01b1b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorage.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorage.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuota.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuota.g.cs index acea6d55818..44a911c39d1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuota.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuota.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuotaService.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuotaService.g.cs index d82c011d241..761ce0e2fb6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuotaService.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingStorageQuotaService.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceStorageQuotaBreakdownId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindows.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindows.g.cs index 156ae43de9d..c0da571bf17 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindows.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindows.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindowsInstance.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindowsInstance.g.cs index c2f004014f6..0b890778122 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindowsInstance.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWindowsInstance.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingInstanceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationOccurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationOccurrence.g.cs index d98f3df7805..3d68656089c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationOccurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationOccurrence.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanOccurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationRecurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationRecurrence.g.cs index cb6fe69c722..a04a7fbcd2e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationRecurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSettingWorkHourAndLocationRecurrence.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanRecurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorByRef.g.cs index 67654885f70..5e19cf8870b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorByRef.g.cs @@ -46,7 +46,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorDirectoryObjectByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorDirectoryObjectByRef.g.cs index 23c2479918c..a595c9567f7 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorDirectoryObjectByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserSponsorDirectoryObjectByRef.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, DirectoryObjectId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoList.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoList.g.cs index cdbe296fa9e..6a1d82c7f8f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoList.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoList.g.cs @@ -48,7 +48,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListExtension.g.cs index f1bec9e7a4a..513d3fd18b1 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListExtension.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTask.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTask.g.cs index bbe101140d7..7ae8e888d95 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTask.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTask.g.cs @@ -50,7 +50,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachment.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachment.g.cs index cd5f2c535a3..d8023f9d575 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachment.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachment.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentBaseId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentContent.g.cs index 32a9b44e705..ae18bb018bf 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentBaseId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSession.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSession.g.cs index 783d9d80f19..c543503d983 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSession.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSession.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSessionContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSessionContent.g.cs index 11d8fdd8259..b88f8406173 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSessionContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskAttachmentSessionContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskChecklistItem.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskChecklistItem.g.cs index cbf56441c97..edc82b64677 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskChecklistItem.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskChecklistItem.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChecklistItemId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskExtension.g.cs index 9a62932e914..af269f2a1bb 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskExtension.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskLinkedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskLinkedResource.g.cs index bc8d42eb1fa..96087157a9f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskLinkedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/RemoveMgUserTodoListTaskLinkedResource.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LinkedResourceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserManagerByRef.g.cs b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserManagerByRef.g.cs index 1ec87b10da1..059d816f2ed 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserManagerByRef.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserManagerByRef.g.cs @@ -54,7 +54,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrence.g.cs index 3ab9f026b9a..b9ed27b31e8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrence.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanOccurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrenceCurrentLocation.g.cs b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrenceCurrentLocation.g.cs index 6d9ab4f99a2..0dcc5234aed 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrenceCurrentLocation.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationOccurrenceCurrentLocation.g.cs @@ -64,7 +64,7 @@ protected override void ProcessRecord() }) .GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationRecurrence.g.cs b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationRecurrence.g.cs index 32ea872cec5..e542529e535 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationRecurrence.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserSettingWorkHourAndLocationRecurrence.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WorkPlanRecurrenceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserTodoListTaskAttachmentSessionContent.g.cs b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserTodoListTaskAttachmentSessionContent.g.cs index c687385332a..2dc90b6081b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/SetMgUserTodoListTaskAttachmentSessionContent.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/SetMgUserTodoListTaskAttachmentSessionContent.g.cs @@ -52,7 +52,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUser.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUser.g.cs index e5969c6e682..ec37d3afa51 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUser.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUser.g.cs @@ -525,7 +525,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -539,7 +539,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserExtension.g.cs index 65faa580669..57827329421 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserExtension.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -65,7 +65,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsight.g.cs index 80fb5437d0c..b6da85b9c2e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsight.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Insights.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightShared.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightShared.g.cs index e8a44b5c2e9..5e52d82b1c7 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightShared.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightShared.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Insights.Shared[SharedInsightId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, SharedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightTrending.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightTrending.g.cs index ba81ad5964d..fa3fdefd43d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightTrending.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightTrending.g.cs @@ -61,7 +61,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrendingId); return; @@ -75,7 +75,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Insights.Trending[TrendingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TrendingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightUsed.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightUsed.g.cs index 77c4bb4defe..f5bb2010d9c 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightUsed.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserInsightUsed.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UsedInsightId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Insights.Used[UsedInsightId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UsedInsightId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserLicenseDetail.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserLicenseDetail.g.cs index 09e5b3c5dc1..83eb6236811 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserLicenseDetail.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserLicenseDetail.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LicenseDetailsId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].LicenseDetails[LicenseDetailsId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LicenseDetailsId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserMailboxSetting.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserMailboxSetting.g.cs index 74eea3e349d..ca09fa652e5 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserMailboxSetting.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserMailboxSetting.g.cs @@ -99,7 +99,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -113,7 +113,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].MailboxSettings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOnPremiseSyncBehavior.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOnPremiseSyncBehavior.g.cs index f1a48423554..69603ea703e 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOnPremiseSyncBehavior.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOnPremiseSyncBehavior.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].OnPremisesSyncBehavior.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOutlookMasterCategory.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOutlookMasterCategory.g.cs index 55ac13e893c..671dbd7063d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOutlookMasterCategory.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserOutlookMasterCategory.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OutlookCategoryId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Outlook.MasterCategories[OutlookCategoryId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, OutlookCategoryId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSetting.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSetting.g.cs index 8e2148bb9a2..1976527b17d 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSetting.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSetting.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingItemInsight.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingItemInsight.g.cs index 912e0c76be0..1c921645d2f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingItemInsight.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingItemInsight.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.ItemInsights.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingShiftPreference.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingShiftPreference.g.cs index a7661cb7de8..c9a7b58871f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingShiftPreference.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingShiftPreference.g.cs @@ -59,7 +59,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -73,7 +73,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.ShiftPreferences.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorage.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorage.g.cs index d1b54226173..8c6ac4ca9a8 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorage.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorage.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -63,7 +63,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.Storage.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuota.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuota.g.cs index 7bf6920cfe5..9f5355012a9 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuota.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuota.g.cs @@ -83,7 +83,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -97,7 +97,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.Storage.Quota.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuotaService.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuotaService.g.cs index f1acee83c47..f617b2fea5b 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuotaService.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingStorageQuotaService.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceStorageQuotaBreakdownId); return; @@ -81,7 +81,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.Storage.Quota.Services[ServiceStorageQuotaBreakdownId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ServiceStorageQuotaBreakdownId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindows.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindows.g.cs index a561462d64c..9c599cc70e6 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindows.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindows.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; @@ -79,7 +79,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.Windows[WindowsSettingId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindowsInstance.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindowsInstance.g.cs index e5caa29aaca..4d3e05450ee 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindowsInstance.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWindowsInstance.g.cs @@ -75,7 +75,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingInstanceId); return; @@ -89,7 +89,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.Windows[WindowsSettingId].Instances[WindowsSettingInstanceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, WindowsSettingInstanceId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWorkHourAndLocation.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWorkHourAndLocation.g.cs index b4d72ff404d..adea7d28772 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWorkHourAndLocation.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserSettingWorkHourAndLocation.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Settings.WorkHoursAndLocations.GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, UserId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoList.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoList.g.cs index 0df548cf7d4..ee0a2631bcd 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoList.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoList.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskListId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListExtension.g.cs index e68d7493081..03ae3fc06ea 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListExtension.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -67,7 +67,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTask.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTask.g.cs index 664991fa55e..9e4c73f24dc 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTask.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTask.g.cs @@ -139,7 +139,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; @@ -153,7 +153,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, TodoTaskId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskAttachmentSession.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskAttachmentSession.g.cs index 499252bd071..9cd53d0b51a 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskAttachmentSession.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskAttachmentSession.g.cs @@ -71,7 +71,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; @@ -85,7 +85,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].AttachmentSessions[AttachmentSessionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, AttachmentSessionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskChecklistItem.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskChecklistItem.g.cs index 778c58e7e9a..f90ce8fab9f 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskChecklistItem.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskChecklistItem.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChecklistItemId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].ChecklistItems[ChecklistItemId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ChecklistItemId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskExtension.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskExtension.g.cs index 2dced44a89f..a879d516e72 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskExtension.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskExtension.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; @@ -69,7 +69,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, ExtensionId); return; diff --git a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskLinkedResource.g.cs b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskLinkedResource.g.cs index a1157eea802..b62d012fa77 100644 --- a/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskLinkedResource.g.cs +++ b/src/Users/wrapper/v1.0/Cmdlets/UpdateMgUserTodoListTaskLinkedResource.g.cs @@ -77,7 +77,7 @@ protected override void ProcessRecord() AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LinkedResourceId); return; @@ -91,7 +91,7 @@ protected override void ProcessRecord() { result = client.Users[UserId].Todo.Lists[TodoTaskListId].Tasks[TodoTaskId].LinkedResources[LinkedResourceId].GetAsync().GetAwaiter().GetResult(); } - catch (Exception ex) when (ex is not PipelineStoppedException) + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) { ThrowGraphRequestFailed(ex, LinkedResourceId); return;